mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-10 15:45:15 -04:00
boinc-app.eclass: use standard inherit guard style
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user