mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-28 17:11:34 +02:00
eclass/toolchain: Sync with Gentoo
It's from Gentoo commit 2cba2db27919bc449ed2a7bf7ed3259c6b96e65f.
This commit is contained in:
parent
e21b300e09
commit
5da03e91c3
@ -12,17 +12,17 @@
|
|||||||
# instead.
|
# instead.
|
||||||
|
|
||||||
case ${EAPI} in
|
case ${EAPI} in
|
||||||
7) inherit eutils ;;
|
7|8) ;;
|
||||||
8) ;;
|
|
||||||
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
*) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ ! ${_TOOLCHAIN_ECLASS} ]]; then
|
if [[ -z ${_TOOLCHAIN_ECLASS} ]]; then
|
||||||
_TOOLCHAIN_ECLASS=1
|
_TOOLCHAIN_ECLASS=1
|
||||||
|
|
||||||
DESCRIPTION="The GNU Compiler Collection"
|
DESCRIPTION="The GNU Compiler Collection"
|
||||||
HOMEPAGE="https://gcc.gnu.org/"
|
HOMEPAGE="https://gcc.gnu.org/"
|
||||||
|
|
||||||
|
[[ ${EAPI} == 7 ]] && inherit eutils
|
||||||
inherit edo flag-o-matic gnuconfig libtool multilib pax-utils toolchain-funcs prefix
|
inherit edo flag-o-matic gnuconfig libtool multilib pax-utils toolchain-funcs prefix
|
||||||
|
|
||||||
tc_is_live() {
|
tc_is_live() {
|
||||||
@ -2828,9 +2828,6 @@ toolchain_death_notice() {
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
EXPORT_FUNCTIONS pkg_pretend pkg_setup src_unpack src_prepare src_configure \
|
|
||||||
src_compile src_test src_install pkg_postinst pkg_postrm
|
|
||||||
|
|
||||||
# Note [implicitly enabled flags]
|
# Note [implicitly enabled flags]
|
||||||
# -------------------------------
|
# -------------------------------
|
||||||
# Usually configure-based packages handle explicit feature requests
|
# Usually configure-based packages handle explicit feature requests
|
||||||
@ -2848,3 +2845,5 @@ EXPORT_FUNCTIONS pkg_pretend pkg_setup src_unpack src_prepare src_configure \
|
|||||||
# Thus safer way to enable/disable the feature is to rely on implicit
|
# Thus safer way to enable/disable the feature is to rely on implicit
|
||||||
# enabled-by-default state:
|
# enabled-by-default state:
|
||||||
# econf $(usex foo '' --disable-foo)
|
# econf $(usex foo '' --disable-foo)
|
||||||
|
|
||||||
|
EXPORT_FUNCTIONS pkg_pretend pkg_setup src_unpack src_prepare src_configure src_compile src_test src_install pkg_postinst pkg_postrm
|
||||||
|
Loading…
x
Reference in New Issue
Block a user