mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 05:53:12 -04:00
R-packages.eclass: EAPI 8 support
Add inherit guard. Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
@@ -3,24 +3,24 @@
|
|||||||
|
|
||||||
# @ECLASS: R-packages.eclass
|
# @ECLASS: R-packages.eclass
|
||||||
# @AUTHOR:
|
# @AUTHOR:
|
||||||
# André Erdmann <dywi@mailerd.de>
|
|
||||||
# Denis Dupeyron <calchan@gentoo.org>
|
|
||||||
# Benda Xu <heroxbd@gentoo.org>
|
|
||||||
# Alessandro Barbieri <lssndrbarbieri@gmail.com>
|
# Alessandro Barbieri <lssndrbarbieri@gmail.com>
|
||||||
|
# André Erdmann <dywi@mailerd.de>
|
||||||
|
# Benda Xu <heroxbd@gentoo.org>
|
||||||
|
# Denis Dupeyron <calchan@gentoo.org>
|
||||||
# Robert Greener <me@r0bert.dev>
|
# Robert Greener <me@r0bert.dev>
|
||||||
# @BLURB: eclass to build R packages
|
# @BLURB: eclass to build R packages
|
||||||
# @MAINTAINER:
|
# @MAINTAINER:
|
||||||
# Alessandro Barbieri <lssndrbarbieri@gmail.com>
|
# Alessandro Barbieri <lssndrbarbieri@gmail.com>
|
||||||
# @SUPPORTED_EAPIS: 7
|
# @SUPPORTED_EAPIS: 7 8
|
||||||
|
|
||||||
inherit edo eutils optfeature toolchain-funcs
|
|
||||||
|
|
||||||
case ${EAPI} in
|
case ${EAPI} in
|
||||||
7) ;;
|
7|8) ;;
|
||||||
*) die "${ECLASS}: EAPI ${EAPI} unsupported."
|
*) die "${ECLASS}: EAPI ${EAPI} unsupported."
|
||||||
esac
|
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
|
# @ECLASS_VARIABLE: SUGGESTED_PACKAGES
|
||||||
# @DEPRECATED: none
|
# @DEPRECATED: none
|
||||||
@@ -161,3 +161,8 @@ R-packages_pkg_postinst() {
|
|||||||
optfeature "having the upstream suggested package" "${p}"
|
optfeature "having the upstream suggested package" "${p}"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_R_PACKAGES_ECLASS=1
|
||||||
|
fi
|
||||||
|
|
||||||
|
EXPORT_FUNCTIONS src_unpack src_prepare src_configure src_compile src_install pkg_postinst
|
||||||
|
|||||||
Reference in New Issue
Block a user