aboutsummaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2022-07-13 05:57:29 +0500
committerAnna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>2022-07-13 05:58:36 +0500
commit8ece3a840b18eda8a9ade86c93765b7dc154ba2a (patch)
treec03c9440f221b3cafe460c9d4d3de947218d5e51 /eclass
parentR-packages.eclass: simplify pkg_postinst (diff)
downloadguru-8ece3a840b18eda8a9ade86c93765b7dc154ba2a.tar.gz
guru-8ece3a840b18eda8a9ade86c93765b7dc154ba2a.tar.bz2
guru-8ece3a840b18eda8a9ade86c93765b7dc154ba2a.zip
R-packages.eclass: EAPI 8 support
Add inherit guard. Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/R-packages.eclass19
1 files changed, 12 insertions, 7 deletions
diff --git a/eclass/R-packages.eclass b/eclass/R-packages.eclass
index 32bbce52d..d399da9b0 100644
--- a/eclass/R-packages.eclass
+++ b/eclass/R-packages.eclass
@@ -3,24 +3,24 @@
# @ECLASS: R-packages.eclass
# @AUTHOR:
+# Alessandro Barbieri <lssndrbarbieri@gmail.com>
# André Erdmann <dywi@mailerd.de>
-# Denis Dupeyron <calchan@gentoo.org>
# Benda Xu <heroxbd@gentoo.org>
-# Alessandro Barbieri <lssndrbarbieri@gmail.com>
+# Denis Dupeyron <calchan@gentoo.org>
# Robert Greener <me@r0bert.dev>
# @BLURB: eclass to build R packages
# @MAINTAINER:
# Alessandro Barbieri <lssndrbarbieri@gmail.com>
-# @SUPPORTED_EAPIS: 7
-
-inherit edo eutils optfeature toolchain-funcs
+# @SUPPORTED_EAPIS: 7 8
case ${EAPI} in
- 7) ;;
+ 7|8) ;;
*) die "${ECLASS}: EAPI ${EAPI} unsupported."
esac
-EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install pkg_postinst
+if [ ! ${_R_PACKAGES_ECLASS} ]; then
+
+inherit edo eutils optfeature toolchain-funcs
# @ECLASS_VARIABLE: SUGGESTED_PACKAGES
# @DEPRECATED: none
@@ -161,3 +161,8 @@ R-packages_pkg_postinst() {
optfeature "having the upstream suggested package" "${p}"
done
}
+
+_R_PACKAGES_ECLASS=1
+fi
+
+EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install pkg_postinst