-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="+gnat_2016 gnat_2017 +shared static static-pic"
+IUSE="+gnat_2016 gnat_2017 +shared static-libs static-pic"
RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 )
gnat_2017? ( dev-lang/gnat-gpl:6.3.0 )"
GNATMAKE=${CHOST}-gnatmake-${GCC_PV}
emake GNATMAKE="${GNATMAKE} ${ADAFLAGS}" \
BUILDER="gprbuild -j$(makeopts_jobs)" generate_sources
- for kind in shared static static-pic; do
+ if use ${kind}; then
+ emake CC="${GCC}" BUILDER="gprbuild -v -j$(makeopts_jobs)" build-static
+ fi
+ for kind in shared static-pic; do
if use ${kind}; then
emake CC="${GCC}" BUILDER="gprbuild -v -j$(makeopts_jobs)" \
build-${kind}
}
src_install() {
- for kind in shared static static-pic; do
+ if use static-libs; then
+ emake prefix="${D}"/usr install-static
+ fi
+ for kind in shared static-pic; do
if use ${kind}; then
emake prefix="${D}"/usr install-${kind}
fi
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="gnat_2016 +gnat_2017 +shared static static-pic"
+IUSE="gnat_2016 +gnat_2017 +shared static-libs static-pic"
RDEPEND="dev-lang/gnat-gpl:6.3.0"
DEPEND="${RDEPEND}
GNATMAKE=${CHOST}-gnatmake-${GCC_PV}
emake GNATMAKE="${GNATMAKE} ${ADAFLAGS}" \
BUILDER="gprbuild -j$(makeopts_jobs)" generate_sources
- for kind in shared static static-pic; do
+ if use static-libs; then
+ emake CC="${GCC}" BUILDER="gprbuild -v -j$(makeopts_jobs)" build-static
+ fi
+ for kind in shared static-pic; do
if use ${kind}; then
emake CC="${GCC}" BUILDER="gprbuild -v -j$(makeopts_jobs)" \
build-${kind}
}
src_install() {
- for kind in shared static static-pic; do
+ if use static-libs; then
+ emake prefix="${D}"/usr install-static
+ fi
+ for kind in shared static-pic; do
if use ${kind}; then
emake prefix="${D}"/usr install-${kind}
fi
<flag name="gnat_2016">Compile with dev-lang/gnat-gpl-2016</flag>
<flag name="gnat_2017">Compile with dev-lang/gnat-gpl-2017</flag>
<flag name="shared">Build gnat_util shared library</flag>
- <flag name="static">Build gnat_util static library</flag>
<flag name="static-pic">Build gnat_util static library with pic code</flag>
</use>
<longdescription lang="en">