summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2019-06-19 22:55:56 +0200
committerTupone Alfredo <tupone@gentoo.org>2019-06-20 09:16:43 +0200
commitde51b225b025aadfe050cfb7290829c2a160cde1 (patch)
treec6dbe62bb3ab438369945f1df5f7db7bd8a9b80f /dev-ada
parentnet-firewall/ipt_netflow: Check for CONFIG_VLAN_8021Q (diff)
downloadgentoo-de51b225b025aadfe050cfb7290829c2a160cde1.tar.gz
gentoo-de51b225b025aadfe050cfb7290829c2a160cde1.tar.bz2
gentoo-de51b225b025aadfe050cfb7290829c2a160cde1.zip
dev-ada/libadalang: can build static or shared
Signed-off-by: Alfredo Tupone <tupone@gentoo.org> Package-Manager: Portage-2.3.66, Repoman-2.3.11
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/libadalang/libadalang-2019.ebuild19
1 files changed, 17 insertions, 2 deletions
diff --git a/dev-ada/libadalang/libadalang-2019.ebuild b/dev-ada/libadalang/libadalang-2019.ebuild
index 456a0f54f86f..823b7b6d2d1c 100644
--- a/dev-ada/libadalang/libadalang-2019.ebuild
+++ b/dev-ada/libadalang/libadalang-2019.ebuild
@@ -37,7 +37,19 @@ src_configure() {
}
src_compile() {
- ada/manage.py -v debug build --build-mode='prod' || die
+ libtype=relocatable
+ if use shared; then
+ if use static-libs; then
+ libtype=static,relocatable
+ fi
+ elif use static-libs; then
+ libtype=static
+ fi
+ ada/manage.py \
+ -v \
+ --library-types $libtype \
+ build \
+ --build-mode='prod' || die
}
src_test () {
@@ -46,7 +58,10 @@ src_test () {
}
src_install () {
- ada/manage.py install "${D}"/usr || die
+ ada/manage.py \
+ -v \
+ --library-types $libtype \
+ install "${D}"/usr || die
python_domodule build/python/libadalang
rm -r "${D}"/usr/python || die
}