summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlfredo Tupone <tupone@gentoo.org>2021-12-24 22:46:01 +0100
committerAlfredo Tupone <tupone@gentoo.org>2021-12-24 22:46:01 +0100
commit85ec0821667f4c9b44fab0b3b60dd8c481f3a159 (patch)
tree021016c940166258533b34b394900509906f7687 /dev-ada
parentsys-kernel/linux-headers: restrict tests (diff)
downloadgentoo-85ec0821667f4c9b44fab0b3b60dd8c481f3a159.tar.gz
gentoo-85ec0821667f4c9b44fab0b3b60dd8c481f3a159.tar.bz2
gentoo-85ec0821667f4c9b44fab0b3b60dd8c481f3a159.zip
dev-ada/libadalang: build examples
Closes: https://bugs.gentoo.org/829871 Closes: https://bugs.gentoo.org/829870 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'dev-ada')
-rw-r--r--dev-ada/libadalang/libadalang-22.0.0.ebuild32
-rw-r--r--dev-ada/libadalang/metadata.xml1
2 files changed, 22 insertions, 11 deletions
diff --git a/dev-ada/libadalang/libadalang-22.0.0.ebuild b/dev-ada/libadalang/libadalang-22.0.0.ebuild
index 9e708b92291c..5cdedddef0be 100644
--- a/dev-ada/libadalang/libadalang-22.0.0.ebuild
+++ b/dev-ada/libadalang/libadalang-22.0.0.ebuild
@@ -16,17 +16,16 @@ SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
LICENSE="GPL-3 gcc-runtime-library-exception-3.1"
SLOT="0/${PV}"
KEYWORDS="~amd64"
-IUSE="test shared +static-libs static-pic"
-REQUIRED_USE="|| ( shared static-libs static-pic )
- ${PYTHON_REQUIRED_USE}
+IUSE="test +static-libs static-pic"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
${ADA_REQUIRED_USE}"
RESTRICT="!test? ( test )"
RDEPEND="dev-python/pyyaml
- dev-ada/gnatcoll-bindings[${ADA_USEDEP},gmp,iconv,shared?,static-libs?,static-pic?]
+ dev-ada/gnatcoll-bindings[${ADA_USEDEP},gmp,iconv,shared,static-libs?,static-pic?]
${ADA_DEPS}
${PYTHON_DEPS}
- dev-ada/langkit[${ADA_USEDEP},shared?,static-libs?,static-pic?]
+ dev-ada/langkit[${ADA_USEDEP},shared,static-libs?,static-pic?]
$(python_gen_cond_dep '
dev-ada/langkit[${PYTHON_USEDEP}]
')"
@@ -51,12 +50,15 @@ pkg_setup() {
if use static-pic; then
libType+=',static-pic'
fi
- if use shared; then
- libType+=',relocatable'
- fi
+ libType+=',relocatable'
libType=${libType:1}
}
+src_prepare() {
+ default
+ rm -r testsuite/tests/misc/copyright || die
+}
+
src_configure() {
${EPYTHON} manage.py generate -v debug || die
}
@@ -67,11 +69,21 @@ src_compile() {
-j$(makeopts_jobs) \
--gargs "-cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS}" \
--library-types=${libType} || die
+ GPR_PROJECT_PATH="${S}"/build \
+ gprbuild -P contrib/highlight/highlight.gpr \
+ -j$(makeopts_jobs) -v \
+ -XBUILD_MODE=prod \
+ -XLIBRARY_TYPE=relocatable \
+ -XXMLADA_BUILD=relocatable \
+ -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} \
+ || die
}
src_test() {
- ${EPYTHON} manage.py test --restricted-env -j 1
- ${EPYTHON} manage.py test --restricted-env -j 1 |& tee libadalang.testOut
+ ${EPYTHON} manage.py test \
+ --build-mode "prod" \
+ --restricted-env -j 1 \
+ |& tee libadalang.testOut
grep -qw FAIL libadalang.testOut && die
}
diff --git a/dev-ada/libadalang/metadata.xml b/dev-ada/libadalang/metadata.xml
index 217288dff7b1..7752dcfa6bda 100644
--- a/dev-ada/libadalang/metadata.xml
+++ b/dev-ada/libadalang/metadata.xml
@@ -5,7 +5,6 @@
<email>ada@gentoo.org</email>
</maintainer>
<use>
- <flag name="shared">Build shared library</flag>
<flag name="static-pic">Build static library with pic code</flag>
</use>
<longdescription lang="en">