diff options
author | Sergei Trofimovich <slyfox@gentoo.org> | 2019-03-02 21:59:25 +0000 |
---|---|---|
committer | Sergei Trofimovich <slyfox@gentoo.org> | 2019-03-02 22:27:26 +0000 |
commit | a5b3543d44f04c1e560ea622efa883f0196eee69 (patch) | |
tree | ccd29645211ce22072e773d41536155562a2da4e /eclass | |
parent | dev-util/spirv-tools: Fix dependency (diff) | |
download | gentoo-a5b3543d44f04c1e560ea622efa883f0196eee69.tar.gz gentoo-a5b3543d44f04c1e560ea622efa883f0196eee69.tar.bz2 gentoo-a5b3543d44f04c1e560ea622efa883f0196eee69.zip |
toolchain.eclass: add support for EAPI=6
This is s small incremental change over EAPI=5.
For example epatch() is still heavily used, we'll sort
it out for EAPI=7.
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/toolchain.eclass | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index 68cf63887f22..be94db869d52 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # Maintainer: Toolchain Ninjas <toolchain@gentoo.org> -# @SUPPORTED_EAPIS: 5 +# @SUPPORTED_EAPIS: 5 6 DESCRIPTION="The GNU Compiler Collection" HOMEPAGE="https://gcc.gnu.org/" @@ -26,7 +26,7 @@ FEATURES=${FEATURES/multilib-strict/} case ${EAPI:-0} in 0|1|2|3|4*) die "Need to upgrade to at least EAPI=5" ;; - 5*) inherit eapi7-ver ;; + 5*|6) inherit eapi7-ver ;; *) die "I don't speak EAPI ${EAPI}." ;; esac EXPORT_FUNCTIONS pkg_pretend pkg_setup src_unpack src_prepare src_configure \ @@ -535,7 +535,12 @@ toolchain_src_prepare() { do_gcc_HTB_patches do_gcc_PIE_patches do_gcc_CYGWINPORTS_patches - epatch_user + + case ${EAPI:-0} in + 5*) epatch_user;; + 6) eapply_user ;; + *) die "Update toolchain_src_prepare() for ${EAPI}." ;; + esac if ( tc_version_is_at_least 4.8.2 || use_if_iuse hardened ) && ! use vanilla ; then make_gcc_hard |