Skip to content

Commit

Permalink
dev-ada/libadalang: Build shared/static library
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.40, Repoman-2.3.9
  • Loading branch information
atupone committed Jul 8, 2018
1 parent a4e79c3 commit 3481a6c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
20 changes: 15 additions & 5 deletions dev-ada/libadalang/libadalang-2018.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,15 @@ SRC_URI="http://mirrors.cdn.adacore.com/art/5b0cf9adc7a4475263382c18
LICENSE="GPL-3 gcc-runtime-library-exception-3.1"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gnat_2016 gnat_2017 +gnat_2018"
IUSE="gnat_2016 gnat_2017 +gnat_2018 +shared static-libs"

RDEPEND="dev-python/pyyaml
|| (
dev-ada/gnatcoll[projects,shared,gnat_2016=,gnat_2017=]
dev-ada/gnatcoll-bindings[iconv,shared,gnat_2016=,gnat_2017=,gnat_2018]
(
dev-ada/gnatcoll-bindings[gnat_2016=,gnat_2017=,gnat_2018=]
dev-ada/gnatcoll-bindings[iconv,shared=,static-libs=]
)
)
${PYTHON_DEPS}"
DEPEND="${RDEPEND}
Expand All @@ -33,18 +36,25 @@ S="${WORKDIR}"/${MYP}
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )

src_configure() {
ada/manage.py generate || die
ada/manage.py -v debug generate || die
}

src_compile() {
ada/manage.py build || die
ada/manage.py \
-v \
$(use_enable shared) \
$(use_enable static-libs static) \
build || die
}

src_test () {
ada/manage.py test | grep FAILED && die
}

src_install () {
ada/manage.py install "${D}"usr
ada/manage.py \
$(use_enable shared) \
$(use_enable static-libs static) \
install "${D}"usr || die
python_domodule build/python/libadalang.py
}
1 change: 1 addition & 0 deletions dev-ada/libadalang/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<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="gnat_2018">Compile with dev-lang/gnat-gpl-2018</flag>
<flag name="shared">Build shared library</flag>
</use>
<longdescription lang="en">
Libadalang is a project to build a high performance semantic engine for
Expand Down

0 comments on commit 3481a6c

Please sign in to comment.