diff options
author | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2024-07-12 13:40:43 +0500 |
---|---|---|
committer | Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in> | 2024-07-14 12:22:19 +0500 |
commit | 50b84aa2d1160992a84dcfeefd7748a491147ccc (patch) | |
tree | d3f8e400782df50c52e6d1c33d44b1a9b8c17739 | |
parent | boinc-app.eclass: allow to set deps for boinc-optional apps (diff) | |
download | guru-50b84aa2d1160992a84dcfeefd7748a491147ccc.tar.gz guru-50b84aa2d1160992a84dcfeefd7748a491147ccc.tar.bz2 guru-50b84aa2d1160992a84dcfeefd7748a491147ccc.zip |
boinc-app.eclass: use standard inherit guard style
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
-rw-r--r-- | eclass/boinc-app.eclass | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/eclass/boinc-app.eclass b/eclass/boinc-app.eclass index 3a26e6738b..f6fb82034b 100644 --- a/eclass/boinc-app.eclass +++ b/eclass/boinc-app.eclass @@ -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 |