case ${EAPI} in
- 6|7|8) ;;
+ 6|7) ;;
+ 8) _DEFINE_VIM_PLUGIN_SRC_PREPARE=true ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ ! ${_VIM_PLUGIN_ECLASS} ]]; then
inherit vim-doc
+fi
+
+EXPORT_FUNCTIONS src_install pkg_postinst pkg_postrm
case ${EAPI} in
- 6|7|8) ;;
+ 6|7) ;;
+ 8) _DEFINE_VIM_PLUGIN_SRC_PREPARE=true ;;
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
esac
if [[ ! ${_VIM_PLUGIN_ECLASS} ]]; then
inherit vim-doc
+fi
+
+EXPORT_FUNCTIONS src_install pkg_postinst pkg_postrm
Not sure how to deal with this best, but EXPORT_FUNCTIONS should still go _after_ the inherit guard, at the bottom of the file.
On Thu, 14 Apr 2022, Anna Vyalkova wrote:
+fi
+
+EXPORT_FUNCTIONS src_install pkg_postinst pkg_postrm
+
+# src_prepare is only exported in EAPI >= 8
+case ${EAPI} in
+ 6|7) ;;
+ *) EXPORT_FUNCTIONS src_prepare ;;
+esac
+
+if [[ ! ${_VIM_PLUGIN_ECLASS} ]]; then
[...]
-EXPORT_FUNCTIONS src_install pkg_postinst pkg_postrm
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 488 |
Nodes: | 16 (2 / 14) |
Uptime: | 02:57:30 |
Calls: | 9,663 |
Calls today: | 5 |
Files: | 13,709 |
Messages: | 6,166,707 |
Posted today: | 2 |