1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 ADA_COMPAT=( gnat_201{8,9} )
7 inherit ada toolchain-funcs multiprocessing
11 DESCRIPTION="Provides access to GNAT compiler internals for AdaCore utilities"
12 HOMEPAGE="http://libre.adacore.com"
13 SRC_URI="http://mirrors.cdn.adacore.com/art/5b0819dfc7a447df26c27a6b
19 IUSE="+shared static-libs static-pic"
23 dev-ada/gprbuild[${ADA_USEDEP}]"
24 REQUIRED_USE="${ADA_REQUIRED_USE}"
26 S="${WORKDIR}"/${MYP}-src
28 PATCHES=( "${FILESDIR}"/${PN}-2017-gentoo.patch )
31 emake GNATMAKE="gnatmake ${ADAFLAGS}" \
32 BUILDER="gprbuild -j$(makeopts_jobs)" generate_sources
33 if use static-libs; then
34 emake BUILDER="gprbuild -v -j$(makeopts_jobs)" build-static
36 for kind in shared static-pic; do
38 emake BUILDER="gprbuild -v -j$(makeopts_jobs)" \
45 if use static-libs; then
46 emake prefix="${D}"/usr install-static
48 for kind in shared static-pic; do
50 emake prefix="${D}"/usr install-${kind}