From: Alfredo Tupone Date: Sat, 4 Apr 2020 19:17:03 +0000 (+0200) Subject: dev-lang/gnat-gpl: use the toolchain eclass ada facilities X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cc230d9f771bcbd4628090260a42a24529be834f;p=gentoo.git dev-lang/gnat-gpl: use the toolchain eclass ada facilities Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alfredo Tupone --- diff --git a/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild index 555b2df05631..b10bbb93de4e 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2016-r4.ebuild @@ -53,7 +53,7 @@ SRC_URI+=" LICENSE+=" GPL-2 GPL-3" SLOT="${TOOLCHAIN_GCC_PV}" KEYWORDS="amd64 x86" -IUSE="+bootstrap" +IUSE="+ada +bootstrap" RESTRICT="!test? ( test )" RDEPEND="!sys-devel/gcc:${TOOLCHAIN_GCC_PV}" @@ -145,22 +145,11 @@ src_prepare() { src_configure() { downgrade_arch_flags "$(gcc-version)" toolchain_src_configure \ - --enable-languages=ada \ - --disable-libada \ CC=${GCC} \ GNATBIND=${GNATBIND} \ GNATMAKE=yes } -src_compile() { - unset ADAFLAGS - toolchain_src_compile - gcc_do_make "-C gcc gnatlib-shared" - ln -s gcc ../build/prev-gcc || die - ln -s ${CHOST} ../build/prev-${CHOST} || die - gcc_do_make "-C gcc gnattools" -} - pkg_postinst() { toolchain_pkg_postinst einfo "This provide the GNAT compiler with gcc for ada/c/c++ and more" diff --git a/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild index 8a6cf4555b8c..a0efa9b463c1 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2017-r1.ebuild @@ -40,7 +40,7 @@ HOMEPAGE="http://libre.adacore.com/" LICENSE+=" GPL-2 GPL-3" SLOT="${TOOLCHAIN_GCC_PV}" KEYWORDS="amd64 x86" -IUSE="+bootstrap" +IUSE="+ada +bootstrap" RESTRICT="!test? ( test )" RDEPEND="!sys-devel/gcc:${TOOLCHAIN_GCC_PV}" @@ -130,18 +130,7 @@ src_prepare() { src_configure() { export PATH=${PWD}/bin:${PATH} downgrade_arch_flags "$(gcc-version)" - toolchain_src_configure \ - --enable-languages=ada \ - --disable-libada -} - -src_compile() { - unset ADAFLAGS - toolchain_src_compile - gcc_do_make "-C gcc gnatlib-shared" - ln -s gcc ../build/prev-gcc || die - ln -s ${CHOST} ../build/prev-${CHOST} || die - gcc_do_make "-C gcc gnattools" + toolchain_src_configure } pkg_postinst() { diff --git a/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild index 6559a30cfa32..239c00d759da 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2018-r3.ebuild @@ -39,7 +39,7 @@ HOMEPAGE="http://libre.adacore.com/" LICENSE+=" GPL-2 GPL-3" KEYWORDS="amd64 x86" -IUSE="+bootstrap" +IUSE="+ada +bootstrap" RESTRICT="!test? ( test )" RDEPEND="!sys-devel/gcc:${TOOLCHAIN_GCC_PV}" @@ -128,18 +128,7 @@ src_prepare() { src_configure() { export PATH=${PWD}/bin:${PATH} downgrade_arch_flags "$(gcc-version)" - toolchain_src_configure \ - --enable-languages=ada \ - --disable-libada -} - -src_compile() { - unset ADAFLAGS - toolchain_src_compile - gcc_do_make "-C gcc gnatlib-shared" - ln -s gcc ../build/prev-gcc || die - ln -s ${CHOST} ../build/prev-${CHOST} || die - gcc_do_make "-C gcc gnattools" + toolchain_src_configure } pkg_postinst() { diff --git a/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild index 2d74d35e7a04..34a131541eaa 100644 --- a/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild +++ b/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild @@ -41,7 +41,7 @@ HOMEPAGE="http://libre.adacore.com/" LICENSE+=" GPL-2 GPL-3" KEYWORDS="amd64 x86" -IUSE="+bootstrap" +IUSE="+ada +bootstrap" RESTRICT="!test? ( test )" RDEPEND="!sys-devel/gcc:${TOOLCHAIN_GCC_PV}" @@ -127,18 +127,7 @@ src_prepare() { src_configure() { export PATH=${PWD}/bin:${PATH} downgrade_arch_flags "$(gcc-version)" - toolchain_src_configure \ - --enable-languages=ada \ - --disable-libada -} - -src_compile() { - unset ADAFLAGS - toolchain_src_compile - gcc_do_make "-C gcc gnatlib-shared" - ln -s gcc ../build/prev-gcc || die - ln -s ${CHOST} ../build/prev-${CHOST} || die - gcc_do_make "-C gcc gnattools" + toolchain_src_configure } pkg_postinst() { diff --git a/dev-lang/gnat-gpl/metadata.xml b/dev-lang/gnat-gpl/metadata.xml index 923cfc961fa4..d3aadec0e515 100644 --- a/dev-lang/gnat-gpl/metadata.xml +++ b/dev-lang/gnat-gpl/metadata.xml @@ -5,6 +5,7 @@ ada@gentoo.org + Build the ADA language (GNAT) frontend Useful only when building GCJ, this enables Abstract Window Toolkit (AWT) peer support on top of GTK+ Used to bootstrap gnat-gpl