diff options
author | Tupone Alfredo <tupone@gentoo.org> | 2020-02-03 21:07:26 +0100 |
---|---|---|
committer | Tupone Alfredo <tupone@gentoo.org> | 2020-02-03 21:07:26 +0100 |
commit | e23bc40bf699767408d9e8356573f73ff959194d (patch) | |
tree | 2661bff53c8203465083b62c097f89bd05fcb5f9 /dev-lang | |
parent | www-apps/drupal: 8.8.2 version bump. (diff) | |
download | gentoo-e23bc40bf699767408d9e8356573f73ff959194d.tar.gz gentoo-e23bc40bf699767408d9e8356573f73ff959194d.tar.bz2 gentoo-e23bc40bf699767408d9e8356573f73ff959194d.zip |
dev-lang/gnat-gpl: use the new toolchain.eclass
Closes: https://bugs.gentoo.org/706588
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/gnat-gpl/Manifest | 3 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild | 22 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild | 33 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild | 35 | ||||
-rw-r--r-- | dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild | 38 |
5 files changed, 48 insertions, 83 deletions
diff --git a/dev-lang/gnat-gpl/Manifest b/dev-lang/gnat-gpl/Manifest index 74eb16bbae8f..c656e1a98a23 100644 --- a/dev-lang/gnat-gpl/Manifest +++ b/dev-lang/gnat-gpl/Manifest @@ -7,13 +7,10 @@ DIST gcc-4.9.4-uclibc-patches-1.0.tar.bz2 2618 BLAKE2B bff85a4088fb94fdb7a8b0bd5 DIST gcc-4.9.4.tar.bz2 90097606 BLAKE2B 373ff939ea72d6c4a7f3ab899b852b4c919481af2cfe3291281d9354c58a270d2eba73a0f301d90840dfabf423c82b368e113df7a2cb6cc28b2a703b0b6eb585 SHA512 93abb78e16277454f41a8e9810f41f66c0fdffdc539a762ff6b67d3037f78db971378683fd2ebf707d1d51c059fad2161fe42d110c330027f40214b7db0f3efe DIST gcc-6-gpl-2017-src.tar.gz 88045488 BLAKE2B 5df712eadef723df9057653e49d215cef6b59032e4b4a62c8622a7b735c660f42ec4135dba628a2080a7540d407186a4e4b1eb373e937374bc4e407dc9afe97d SHA512 bf8f786b5ad28a6b7d184fb5263424b7ed62154e308e259b61c24a577efdae56939fbaabc1fc53a0f467702c1e6d8598dc6e489ce074724799130a793cfb146e DIST gcc-6.3.0-patches-1.0.tar.bz2 7596 BLAKE2B e3c298bd80b83e72d6ea9b4ec777d4f28153bf959da1e54307909383efecd2bf0e7e0cc9d9b27529e5f00b2e27132bf5ff6afd2129d061d3b111f9cfe732a874 SHA512 8fc96086bd3da3726687ee9d180d3b5d0a7d5814141d44eac8eb01566a783ec780c8fb8f55f75d6e9c9006b2e407e20cdb5835d541b0b66a47dd60642861734c -DIST gcc-6.3.0.tar.bz2 99903185 BLAKE2B 3dc1e965afcad665d659fbb953978ef297ddbdd4d8918d36b35e977f8a2786b986f6875af2f12c599cc827b2b725d8b79ac021c9b51fb1d6d274318a59aa182c SHA512 234dd9b1bdc9a9c6e352216a7ef4ccadc6c07f156006a59759c5e0e6a69f0abcdc14630eff11e3826dd6ba5933a8faa43043f3d1d62df6bd5ab1e82862f9bf78 DIST gcc-7-gpl-2018-src.tar.gz 90302033 BLAKE2B 2f79137e176bff04c4fb17ab863302943588226d5b599dfa1acf0e495111be1c581f4e130f911c312916669c4f2707eec5218601db090d5060248b2fe481d710 SHA512 79f06deca5753251de82a703f4a9698c117706290df779291a5405edb06f1c225d1d2416bda0e67dcd87cc308bf79504e89d4bd8e22aa0eedfbf06d88bc37f33 DIST gcc-7.3.0-patches-1.8.tar.bz2 14435 BLAKE2B 3e5c1abad56ccd6e0aa7739cb7cd651ec07ef9bf25be554343f1fa0444f251de41bde5fe6f8bb9e85e3f7a5cf8b2b83515647d93d62f338fa7843581fcaff2f8 SHA512 4d9d76b3d47f1af4f23cae15278d165b22065a3d1512323d1e31b5e0cb47e4654733dc43fa11906a3bd18e827621c9a5ec62b73563f8e5ead663c29f7d0d7345 -DIST gcc-7.3.0.tar.xz 62462388 BLAKE2B dc8f132b21bd0543c3d9dd17557038aafe65675aa73c540954234a3c972b4c31c939149bd50183d072ab6c8d16919e19daeaaffd619ce2ccd62dbdf9a5bb3302 SHA512 ad41a7e4584e40e92cdf860bc0288500fbaf5dfb7e8c3fcabe9eba809c87bcfa85b46c19c19921b0cdf6d05483faede8287bb9ea120c0d1559449a70e602c8d4 DIST gcc-8-2019-20190517-18C94-src.tar.gz 95266904 BLAKE2B 8dc1983317517e9d7221ffd3d1c804367c98a7142b3964e6382ee037da2cfebc9e044640549c77905646727e97ba108445b00f36916a65c326e862230608a7dc SHA512 50933d7eab927a2d118e01c5cb85336203544f6fbc3f245a148e952320d6f8452fcd5d355019a144e8af03357d129bb145397506db0a62fddf1f746b6671e7fc DIST gcc-8.3.0-patches-3.tar.bz2 15944 BLAKE2B f1ae61be794123f34ca88c279bfe33abadd37eea0ca0267ac9c0c77707dc8305063a7ecc2e23511c281f7e903dff349fef016d3fbbf3237acf383fe1639d4b7b SHA512 f43d86a55c932df4a494c6b687101a2992b91b1a4e01677165ed0f04de6108150ef713762f71d0ef764dbd4bad97a99d15fcb42c23e4bb42d83a866ff2d0c614 -DIST gcc-8.3.0.tar.xz 63694700 BLAKE2B 71df2ff5bd6874d57519c2e9af6b22152c8c4d7fab906a5f427b41bc4e8e742127592a8684120d9d3c9ce6241439531850be08ec0a4f29dbfdee95435655fdca SHA512 1811337ae3add9680cec64968a2509d085b6dc5b6783fc1e8c295e3e47416196fd1a3ad8dfe7e10be2276b4f62c357659ce2902f239f60a8648548231b4b5802 DIST gcc-interface-4.9-gpl-2016-src.tar.gz 339037 BLAKE2B 8218ea3a3e3ddb11febb5f2fbcfad69ec25251d3ed6bf4f9c70dc9b3720cc2fb3310d704db40bd0c749be89b17a2b3766ddae3d6158313480073856057ad4bcf SHA512 507df314d1890c228c19f458bd51197377deaaa2d6082fe1e71b62b683252ee5fba4adfe2386246e14618b1c77288e0dcb5bf501e2daaca249b6299462c2f6bd DIST gcc-interface-6-gpl-2017-src.tar.gz 347016 BLAKE2B 934c6dac491abece9a6868d28fe9d2a6a1109238fe25c9b94abe83dfc22a1085489f0e0384626da0a3abeebe7537c5715df49a7e2d40577c96eb7ac897b84fd8 SHA512 5833303fce5bf812ccbc71f3d3726c0cb877937d75327edb15097c0b7dba58024a52688392906695ab92fb4e5d7a6623671eac9a05d17937dc0270bafcde920a DIST gcc-interface-7-gpl-2018-src.tar.gz 339461 BLAKE2B e6009c0b287b1cd8f055226e6919c12f2ba08f8ef24101608691b05b70a7fb0ca708e2ecd126499fb84a126436d3841f1a13be0b6d3442ef3bd3871391f8e1d5 SHA512 9dc942a39dd983778756be2951b4c66ac3835bf456dc389f80ffbafdacde4ebcb80720ac9eca8fef8734d6d052c061db37c88dba642d85add10940164d120381 diff --git a/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild index 15eafdcd92a8..ae8bf794939c 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild @@ -1,8 +1,9 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 +PATCH_GCC_VER=4.9.4 PATCH_VER="1.4" UCLIBC_VER="1.0" @@ -21,15 +22,16 @@ SSP_UCLIBC_STABLE="x86 amd64 mips ppc ppc64 arm" TOOLCHAIN_GCC_PV=4.9.4 -inherit toolchain-funcs toolchain - REL=4.9 MYP=gcc-${REL}-gpl-${PV}-src BTSTRP_X86=gnat-gpl-2014-x86-linux-bin BTSTRP_AMD64=gnat-gpl-2014-x86_64-linux-bin +inherit toolchain-funcs toolchain + DESCRIPTION="GNAT Ada Compiler - GPL version" HOMEPAGE="http://libre.adacore.com/" +# we provide own tarball below SRC_URI+=" http://mirrors.cdn.adacore.com/art/57399304c7a447658e0aff7f -> ${P}-src.tar.gz @@ -52,6 +54,7 @@ LICENSE+=" GPL-2 GPL-3" SLOT="${TOOLCHAIN_GCC_PV}" KEYWORDS="amd64 x86" IUSE="+bootstrap" +RESTRICT="!test? ( test )" RDEPEND="!sys-devel/gcc:${TOOLCHAIN_GCC_PV}" DEPEND="${RDEPEND} @@ -98,14 +101,6 @@ src_unpack() { die "ada compiler not available" fi - GCC_A_FAKEIT="${P}-src.tar.gz - ${MYP}.tar.gz - ${FSFGCC}.tar.bz2 - gcc-interface-${REL}-gpl-${PV}-src.tar.gz" - if use bootstrap; then - GCC_A_FAKEIT="${GCC_A_FAKEIT} ${BTSTRP}.tar.gz" - fi - toolchain_src_unpack if use bootstrap; then rm ${BTSTRP}/libexec/gcc/${CHOST}/4.7.4/ld || die @@ -148,10 +143,7 @@ src_prepare() { } src_configure() { - local trueGCC_BRANCH_VER=${GCC_BRANCH_VER} - GCC_BRANCH_VER=$(gcc-version) - downgrade_arch_flags - GCC_BRANCH_VER=${trueGCC_BRANCH_VER} + downgrade_arch_flags "$(gcc-version)" toolchain_src_configure \ --enable-languages=ada \ --disable-libada \ diff --git a/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild index 3c90857c905a..759588fab428 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild @@ -1,22 +1,20 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 +PATCH_GCC_VER=6.3.0 PATCH_VER="1.0" -TOOLCHAIN_GCC_PV=6.3.0 - -inherit toolchain-funcs toolchain +TOOLCHAIN_GCC_PV=6.3.0 # upstream is 6.3.1 but ada.eclass already assumes 6.3.0 REL=6 MYP=gcc-${REL}-gpl-${PV}-src BTSTRP_X86=gnat-gpl-2014-x86-linux-bin BTSTRP_AMD64=gnat-gpl-2014-x86_64-linux-bin -DESCRIPTION="GNAT Ada Compiler - GPL version" -HOMEPAGE="http://libre.adacore.com/" -SRC_URI+=" +# we provide own tarball below +GCC_TARBALL_SRC_URI=" http://mirrors.cdn.adacore.com/art/591adbb4c7a4473fcc4532a3 -> ${P}-src.tar.gz http://mirrors.cdn.adacore.com/art/591adb65c7a4473fcbb153ac @@ -34,10 +32,16 @@ SRC_URI+=" ) )" +inherit toolchain-funcs toolchain + +DESCRIPTION="GNAT Ada Compiler - GPL version" +HOMEPAGE="http://libre.adacore.com/" + LICENSE+=" GPL-2 GPL-3" SLOT="${TOOLCHAIN_GCC_PV}" KEYWORDS="amd64 x86" IUSE="+bootstrap" +RESTRICT="!test? ( test )" RDEPEND="!sys-devel/gcc:${TOOLCHAIN_GCC_PV}" DEPEND="${RDEPEND} @@ -46,7 +50,6 @@ DEPEND="${RDEPEND} S="${WORKDIR}"/${MYP} PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.13 )" -FSFGCC=gcc-${TOOLCHAIN_GCC_PV} pkg_setup() { toolchain_pkg_setup @@ -80,14 +83,6 @@ src_unpack() { die "ada compiler not available" fi - GCC_A_FAKEIT=" - ${P}-src.tar.gz - ${MYP}.tar.gz - gcc-interface-${REL}-gpl-${PV}-src.tar.gz" - if use bootstrap; then - GCC_A_FAKEIT="${GCC_A_FAKEIT} ${BTSTRP}.tar.gz" - fi - toolchain_src_unpack if use bootstrap; then rm ${BTSTRP}/libexec/gcc/${CHOST}/4.7.4/ld || die @@ -114,6 +109,7 @@ src_prepare() { ln -s $(which ${GNATLINK}) bin/gnatlink || die ln -s $(which ${GNATLS}) bin/gnatls || die + # upstream is 6.3.1 but ada.eclass already assumes 6.3.0 echo ${TOOLCHAIN_GCC_PV} > gcc/BASE-VER cd .. @@ -133,10 +129,7 @@ src_prepare() { src_configure() { export PATH=${PWD}/bin:${PATH} - local trueGCC_BRANCH_VER=${GCC_BRANCH_VER} - GCC_BRANCH_VER=$(gcc-version) - downgrade_arch_flags - GCC_BRANCH_VER=${trueGCC_BRANCH_VER} + downgrade_arch_flags "$(gcc-version)" toolchain_src_configure \ --enable-languages=ada \ --disable-libada diff --git a/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild index 40b80c33c61e..35dc9364a3d4 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild @@ -1,23 +1,20 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 +PATCH_GCC_VER=7.3.0 PATCH_VER="1.8" -TOOLCHAIN_GCC_PV=7.3.0 -GCC_CONFIG_VER=7.3.1 - -inherit toolchain-funcs toolchain +TOOLCHAIN_GCC_PV=7.3.1 REL=7 MYP=gcc-${REL}-gpl-${PV}-src BTSTRP_X86=gnat-gpl-2014-x86-linux-bin BTSTRP_AMD64=gnat-gpl-2014-x86_64-linux-bin -DESCRIPTION="GNAT Ada Compiler - GPL version" -HOMEPAGE="http://libre.adacore.com/" -SRC_URI+=" +# we provide own tarball below +GCC_TARBALL_SRC_URI=" http://mirrors.cdn.adacore.com/art/5b0819dfc7a447df26c27aa5 -> ${P}-src.tar.gz http://mirrors.cdn.adacore.com/art/5b0819dfc7a447df26c27aa7 @@ -35,18 +32,23 @@ SRC_URI+=" ) )" +inherit toolchain-funcs toolchain + +DESCRIPTION="GNAT Ada Compiler - GPL version" +HOMEPAGE="http://libre.adacore.com/" + LICENSE+=" GPL-2 GPL-3" KEYWORDS="amd64 x86" IUSE="+bootstrap" +RESTRICT="!test? ( test )" -RDEPEND="!sys-devel/gcc:${GCC_CONFIG_VER}" +RDEPEND="!sys-devel/gcc:${TOOLCHAIN_GCC_PV}" DEPEND="${RDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.13 ) >=sys-devel/binutils-2.20" S="${WORKDIR}"/${MYP} PDEPEND="${PDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.13 )" -FSFGCC=gcc-${TOOLCHAIN_GCC_PV} pkg_setup() { toolchain_pkg_setup @@ -80,14 +82,6 @@ src_unpack() { die "ada compiler not available" fi - GCC_A_FAKEIT=" - ${P}-src.tar.gz - ${MYP}.tar.gz - gcc-interface-${REL}-gpl-${PV}-src.tar.gz" - if use bootstrap; then - GCC_A_FAKEIT="${GCC_A_FAKEIT} ${BTSTRP}.tar.gz" - fi - toolchain_src_unpack if use bootstrap; then rm ${BTSTRP}/libexec/gcc/${CHOST}/4.7.4/ld || die @@ -133,10 +127,7 @@ src_prepare() { src_configure() { export PATH=${PWD}/bin:${PATH} - local trueGCC_BRANCH_VER=${GCC_BRANCH_VER} - GCC_BRANCH_VER=$(gcc-version) - downgrade_arch_flags - GCC_BRANCH_VER=${trueGCC_BRANCH_VER} + downgrade_arch_flags "$(gcc-version)" toolchain_src_configure \ --enable-languages=ada \ --disable-libada diff --git a/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild index 5aa08b147d38..3a2b6cba1540 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild @@ -1,14 +1,12 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="6" +EAPI=6 +PATCH_GCC_VER=8.3.0 PATCH_VER="3" -TOOLCHAIN_GCC_PV=8.3.0 -GCC_CONFIG_VER=8.3.1 - -inherit toolchain-funcs toolchain +TOOLCHAIN_GCC_PV=8.3.1 REL=8 MYP=gcc-${REL}-${PV}-20190517-18C94-src @@ -17,9 +15,8 @@ INTFDIR=gcc-interface-${REL}-${PV}-20190510-18F59-src BTSTRP_X86=gnat-gpl-2014-x86-linux-bin BTSTRP_AMD64=gnat-gpl-2014-x86_64-linux-bin -DESCRIPTION="GNAT Ada Compiler - GPL version" -HOMEPAGE="http://libre.adacore.com/" -SRC_URI+=" +# we provide own tarball below +GCC_TARBALL_SRC_URI=" http://mirrors.cdn.adacore.com/art/5cdf865331e87aa2cdf16b49 -> ${GNATDIR}.tar.gz http://mirrors.cdn.adacore.com/art/5cdf8a0731e87a8f1d425049 @@ -37,12 +34,17 @@ SRC_URI+=" ) )" +inherit toolchain-funcs toolchain + +DESCRIPTION="GNAT Ada Compiler - GPL version" +HOMEPAGE="http://libre.adacore.com/" + LICENSE+=" GPL-2 GPL-3" KEYWORDS="amd64 x86" IUSE="+bootstrap" RESTRICT="!test? ( test )" -RDEPEND="!sys-devel/gcc:${GCC_CONFIG_VER}" +RDEPEND="!sys-devel/gcc:${TOOLCHAIN_GCC_PV}" DEPEND="${RDEPEND} elibc_glibc? ( >=sys-libs/glibc-2.13 ) >=sys-devel/binutils-2.20" @@ -82,14 +84,6 @@ src_unpack() { die "ada compiler not available" fi - GCC_A_FAKEIT=" - ${MYP}.tar.gz - ${GNATDIR}.tar.gz - ${INTFDIR}.tar.gz" - if use bootstrap; then - GCC_A_FAKEIT="${GCC_A_FAKEIT} ${BTSTRP}.tar.gz" - fi - toolchain_src_unpack if use bootstrap; then rm ${BTSTRP}/libexec/gcc/${CHOST}/4.7.4/ld || die @@ -132,10 +126,7 @@ src_prepare() { src_configure() { export PATH=${PWD}/bin:${PATH} - local trueGCC_BRANCH_VER=${GCC_BRANCH_VER} - GCC_BRANCH_VER=$(gcc-version) - downgrade_arch_flags - GCC_BRANCH_VER=${trueGCC_BRANCH_VER} + downgrade_arch_flags "$(gcc-version)" toolchain_src_configure \ --enable-languages=ada \ --disable-libada @@ -151,8 +142,9 @@ src_compile() { } pkg_postinst () { + toolchain_pkg_postinst einfo "This provide the GNAT compiler with gcc for ada/c/c++ and more" - einfo "The compiler binary is ${CTARGET}-gcc-${GCC_CONFIG_VER}" + einfo "The compiler binary is ${CTARGET}-gcc-${TOOLCHAIN_GCC_PV}" einfo "Even if the c/c++ compilers are using almost the same patched" einfo "source as the sys-devel/gcc package its use is not extensively" einfo "tested, and not supported for updating your system, except for ada" |