boinc-app.eclass: use standard inherit guard style

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2024-07-12 13:40:43 +05:00
parent ce227aa165
commit 50b84aa2d1

View File

@@ -22,7 +22,7 @@
case ${EAPI} in
8) ;;
*) die "${ECLASS}: EAPI ${EAPI} unsupported."
*) die "${ECLASS}: EAPI ${EAPI:-0} unsupported"
esac
# @ECLASS_VARIABLE: BOINC_APP_OPTIONAL
@@ -34,10 +34,6 @@ esac
# If you enable BOINC_APP_OPTIONAL, you have to call boinc-app
# default phase functions and add dependencies manually.
if [[ ! ${BOINC_APP_OPTIONAL} ]]; then
EXPORT_FUNCTIONS pkg_postinst pkg_postrm
fi
if [[ ! ${_BOINC_APP_ECLASS} ]]; then
# @ECLASS_VARIABLE: BOINC_MASTER_URL
@@ -382,3 +378,7 @@ boinc-app_pkg_postrm() {
_BOINC_APP_ECLASS=1
fi
if [[ ! ${BOINC_APP_OPTIONAL} ]]; then
EXPORT_FUNCTIONS pkg_postinst pkg_postrm
fi