Skip to content

Commit

Permalink
dev-ada/libadalang: can build static or shared
Browse files Browse the repository at this point in the history
Signed-off-by: Alfredo Tupone <[email protected]>
Package-Manager: Portage-2.3.66, Repoman-2.3.11
  • Loading branch information
atupone committed Jun 20, 2019
1 parent 6fadca0 commit de51b22
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions dev-ada/libadalang/libadalang-2019.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand All @@ -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
}

0 comments on commit de51b22

Please sign in to comment.