1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs multiprocessing
10 DESCRIPTION="Provides access to GNAT compiler internals for AdaCore utilities"
11 HOMEPAGE="http://libre.adacore.com"
12 SRC_URI="http://mirrors.cdn.adacore.com/art/5b0819dfc7a447df26c27a6b
18 IUSE="+gnat_2018 gnat_2019 +shared static-libs static-pic"
20 RDEPEND="gnat_2018? ( dev-lang/gnat-gpl:7.3.1 )
21 gnat_2019? ( dev-lang/gnat-gpl:8.3.1 )"
23 dev-ada/gprbuild[gnat_2018(-)?,gnat_2019(-)?]"
24 REQUIRED_USE="^^ ( gnat_2018 gnat_2019 )"
26 S="${WORKDIR}"/${MYP}-src
28 PATCHES=( "${FILESDIR}"/${PN}-2017-gentoo.patch )
31 if use gnat_2018; then
36 GNATMAKE=${CHOST}-gnatmake-${GCC_PV}
37 emake GNATMAKE="${GNATMAKE} ${ADAFLAGS}" \
38 BUILDER="gprbuild -j$(makeopts_jobs)" generate_sources
39 if use static-libs; then
40 emake BUILDER="gprbuild -v -j$(makeopts_jobs)" build-static
42 for kind in shared static-pic; do
44 emake BUILDER="gprbuild -v -j$(makeopts_jobs)" \
51 if use static-libs; then
52 emake prefix="${D}"/usr install-static
54 for kind in shared static-pic; do
56 emake prefix="${D}"/usr install-${kind}