summaryrefslogtreecommitdiff
path: root/dev-ada/libadalang
diff options
context:
space:
mode:
Diffstat (limited to 'dev-ada/libadalang')
-rw-r--r--dev-ada/libadalang/Manifest4
-rw-r--r--dev-ada/libadalang/libadalang-22.0.0.ebuild43
-rw-r--r--dev-ada/libadalang/metadata.xml1
3 files changed, 32 insertions, 16 deletions
diff --git a/dev-ada/libadalang/Manifest b/dev-ada/libadalang/Manifest
index 2be3d38c3b93..b74dae647bf8 100644
--- a/dev-ada/libadalang/Manifest
+++ b/dev-ada/libadalang/Manifest
@@ -1,3 +1,3 @@
DIST libadalang-22.0.0.tar.gz 2364531 BLAKE2B 3992baa7180dce696b2c8aa0d451117a12b90072e83274d96a8d971b627c82bc66c5c21fa1eb6dbdd7ce95e0264852c5702b3d7c90f7bdf093915178e0a4a659 SHA512 b874feb102fe221595ad4b9b95b3ea4c6593686f96097ace17ad3c57534dc801000819de0cf898489e3407fd201eb003dd75f4f743a53dfb76cadfa6c727d789
-EBUILD libadalang-22.0.0.ebuild 1957 BLAKE2B 4999606ed4a57777271770236b789d39a139001f13ec785aa3fde289f5832d1351734e45c8f1a44408b1e205c20329aa7c3820612b584b0e8a6f2d61d7c5e382 SHA512 604b37d5fdbc13098ce96945cbbfbc9cc45d1c6dce40bb4a83ae9b503387b0509d74c98c2f4938b6e4fc83f2143a775b2330890e7b58880965a9ef6dd55aadff
-MISC metadata.xml 642 BLAKE2B dbc4f55e5c9dc5fa56d8069493d9fed5041e66e18820b13492d313fb8dbfdfe4d371808ba5f8b614643696505ba8d4dd2804f9ee6047bfd037ea89716c42bea4 SHA512 b8bbf822ce38430142160564385df61f4c85e834109a675fff438771a2aed6843d1d00f6ea6392fbf055719378caf3bc0c40bb2ea25f00f784b000d5b49bc0b9
+EBUILD libadalang-22.0.0.ebuild 2317 BLAKE2B 08bcf967bc32983d252806c96d5a1b22e42f622c637db3e4f4ec7c0d21ed90e74e060a337c9ba744d134e5e6355844b8ddf57ee477d6dc4b9631231f52347a0d SHA512 3ad37b2fa779a44f4c5c3f7dd6cd237bcebf001f0ce1f017a69a3c767075db57ccf087df75aba4253f2cd718c2091ac31ed0573360b3577938d65cdfa13a43f5
+MISC metadata.xml 592 BLAKE2B fc665edfcdf96b77b66c142493ca9f950c0824423c26d4508a79f49ad9836de64ae7d1ad826dafd0a7fbdb2483f717351b41098295e7a628be28183c2b35b613 SHA512 64893c482867850f503bbd2a247604df275951d052a8b05f463d7198e8351f9a1ad5d1d9757a40e50d66373c91c0a6e965fc9c51d9218989ac5efd4cca35d32f
diff --git a/dev-ada/libadalang/libadalang-22.0.0.ebuild b/dev-ada/libadalang/libadalang-22.0.0.ebuild
index 0af159f8bff5..fb13c72f8afe 100644
--- a/dev-ada/libadalang/libadalang-22.0.0.ebuild
+++ b/dev-ada/libadalang/libadalang-22.0.0.ebuild
@@ -6,7 +6,7 @@ EAPI=7
PYTHON_COMPAT=( python3_{7,8,9} )
ADA_COMPAT=( gnat_202{0,1} )
-inherit ada python-single-r1
+inherit ada python-single-r1 multiprocessing
DESCRIPTION="high performance semantic engine for the Ada programming language"
HOMEPAGE="https://libre.adacore.com/"
@@ -16,18 +16,18 @@ 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?]
$(python_gen_cond_dep '
- dev-ada/langkit[${PYTHON_USEDEP},shared?,static-libs?,static-pic?]
+ dev-ada/langkit[${PYTHON_USEDEP}]
')"
DEPEND="${RDEPEND}
dev-ada/gprbuild[${ADA_USEDEP}]
@@ -37,6 +37,7 @@ BDEPEND="test? (
dev-ml/zarith
dev-ml/camomile
dev-ml/ocaml-ctypes
+ dev-ada/e3-testsuite
)"
pkg_setup() {
@@ -49,32 +50,48 @@ 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
}
src_compile() {
${EPYTHON} manage.py build -v \
- --gargs "-cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS}" \
+ --build-mode "prod" \
+ -j$(makeopts_jobs) \
+ --gargs "-cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} -largs:C ${LDFLAGS}" \
--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} \
+ -largs:C ${LDFLAGS} \
+ || die
}
src_test() {
- #eval $(${EPYTHON} ./manage.py setenv)
- ${EPYTHON} manage.py test --restricted-env -j 1 |& > /dev/null
- ${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
}
src_install() {
${EPYTHON} manage.py \
install "${D}"/usr \
+ --build-mode "prod" \
--library-types=${libType} || die
rm -r "${D}"/usr/python || die
python_domodule build/python/libadalang
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">