From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/libadalang/
Date: Sun, 02 Feb 2025 14:39:46 +0000 (UTC) [thread overview]
Message-ID: <1738507165.4315d486024c1eaae04586136afba5ab28eab08c.tupone@gentoo> (raw)
commit: 4315d486024c1eaae04586136afba5ab28eab08c
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 2 14:36:36 2025 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun Feb 2 14:39:25 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4315d486
dev-ada/libadalang: add 25.0.0
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-ada/libadalang/Manifest | 1 +
...4.0.0-r1.ebuild => libadalang-24.0.0-r2.ebuild} | 2 +-
dev-ada/libadalang/libadalang-25.0.0.ebuild | 112 +++++++++++++++++++++
3 files changed, 114 insertions(+), 1 deletion(-)
diff --git a/dev-ada/libadalang/Manifest b/dev-ada/libadalang/Manifest
index 93d661d69c02..639a0a9e977f 100644
--- a/dev-ada/libadalang/Manifest
+++ b/dev-ada/libadalang/Manifest
@@ -1 +1,2 @@
DIST libadalang-24.0.0.tar.gz 2783238 BLAKE2B 6d3b3df1dbb645ea8cba8f8088c7cdd40e9114ce2a5100bf93fefe8089d944f185fe343f5fefc35e17f64f5bf4f3dde358a398614db7d1a1b62dd136efdbb334 SHA512 fb2ed8aee075ef5dd66527a099acb5eef9103a8bf244ed437ff9fa38360d7de1712e6375ed98b691a745fa27ef841eb5daa6651641c552c5146986c5ed977131
+DIST libadalang-25.0.0.tar.gz 3056796 BLAKE2B 63719c23716d529398c68ccd203ecb3229e72dd5991a23334e1fd6fa5655acdf2a7e0a997d7b91e449d1a21935256c2c3209ab60cc532e1e5264577215c4c7ae SHA512 c625cc0018e4683bf1de18e066a806d9ed834c5e3d976904c3ad2cecc729afeb83fe9a9e00ce830dedab068e75516ac0901602c46fac33d22991bc614ab2f6aa
diff --git a/dev-ada/libadalang/libadalang-24.0.0-r1.ebuild b/dev-ada/libadalang/libadalang-24.0.0-r2.ebuild
similarity index 97%
rename from dev-ada/libadalang/libadalang-24.0.0-r1.ebuild
rename to dev-ada/libadalang/libadalang-24.0.0-r2.ebuild
index 7e8f738042a1..e50477fb41e4 100644
--- a/dev-ada/libadalang/libadalang-24.0.0-r1.ebuild
+++ b/dev-ada/libadalang/libadalang-24.0.0-r2.ebuild
@@ -28,7 +28,7 @@ RDEPEND="dev-python/pyyaml
${ADA_DEPS}
${PYTHON_DEPS}
>=dev-ada/gpr-24.0.0[${ADA_USEDEP},shared,static-libs?,static-pic?]
- >=dev-ada/langkit-24.0.0[${ADA_USEDEP},shared,static-libs?,static-pic?]
+ >=dev-ada/langkit-24.0.0[${ADA_USEDEP},shared(+),static-libs?,static-pic?]
$(python_gen_cond_dep '
dev-ada/langkit[${PYTHON_USEDEP}]
')"
diff --git a/dev-ada/libadalang/libadalang-25.0.0.ebuild b/dev-ada/libadalang/libadalang-25.0.0.ebuild
new file mode 100644
index 000000000000..ed1423ba5ddc
--- /dev/null
+++ b/dev-ada/libadalang/libadalang-25.0.0.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{11..13} )
+ADA_COMPAT=( gcc_12 gcc_13 gcc_14 )
+
+inherit ada python-single-r1 multiprocessing
+
+DESCRIPTION="high performance semantic engine for the Ada programming language"
+HOMEPAGE="https://github.com/AdaCore/libadalang"
+SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc test static-libs static-pic"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}
+ ${ADA_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ ${ADA_DEPS}
+ ${PYTHON_DEPS}
+ ~dev-ada/gpr-25.0.0[${ADA_USEDEP},shared,static-libs?,static-pic?]
+ ~dev-ada/langkit-contrib-25.0.0[${ADA_USEDEP},${PYTHON_SINGLE_USEDEP},static-libs?,static-pic?]
+ dev-python/pyyaml"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ dev-ada/gprbuild[${ADA_USEDEP}]
+ doc? (
+ $(python_gen_cond_dep '
+ dev-python/sphinx[${PYTHON_USEDEP}]
+ dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]
+ ')
+ )
+ test? ( dev-ada/e3-testsuite )"
+
+PATCHES=( "${FILESDIR}"/${PN}-23.0.0-test.patch )
+
+pkg_setup() {
+ python-single-r1_pkg_setup
+ ada_pkg_setup
+}
+
+src_prepare() {
+ default
+ rm -r testsuite/tests/{c_api,python}/gpr_ada_only || die
+}
+
+src_configure() {
+ ${EPYTHON} manage.py generate -v debug || die
+}
+
+src_compile() {
+ build () {
+ gprbuild -v -p -j$(makeopts_jobs) -Pbuild/libadalang.gpr \
+ -XLIBRARY_TYPE=$1 -XGPR_BUILD=$1 -XXMLADA_BUILD=$1 \
+ -XLIBADALANG_WARNINGS=true \
+ -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} -largs ${LDFLAGS} \
+ || die
+ }
+ build relocatable
+ use static-libs && build static
+ use static-pic && build static-pic
+ gprbuild -v -p -j$(makeopts_jobs) -Pbuild/mains.gpr \
+ -XLIBRARY_TYPE=relocatable -XGPR_BUILD=relocatable \
+ -XXMLADA_BUILD=relocatable -XLIBADALANG_WARNINGS=true nameres.adb \
+ gnat_compare.adb lal_dda.adb parse.adb lal_prep.adb unparse.adb \
+ navigate.adb -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} \
+ -largs ${LDFLAGS} || die
+ if use doc; then
+ PYTHONPATH="${S}/build/python" \
+ LD_LIBRARY_PATH="${S}/build/lib/relocatable/dev" \
+ emake -C dev_manual html
+ # Needs adadomain
+ #PYTHONPATH="${S}/build/python" \
+ # LD_LIBRARY_PATH="${S}/build/lib/relocatable/dev" \
+ # emake -C user_manual html
+ fi
+}
+
+src_test() {
+ PATH="${S}/build/obj-mains/dev/:${PATH}" \
+ GPR_PROJECT_PATH="${S}/build" \
+ PYTHONPATH="${S}/build/python" \
+ LD_LIBRARY_PATH="${S}/build/lib/relocatable/dev" \
+ ${EPYTHON} testsuite/testsuite.py || die
+}
+
+src_install() {
+ build() {
+ gprinstall -v -p -Pbuild/libadalang.gpr --prefix="${D}"/usr \
+ --build-var=LIBRARY_TYPE --build-var=LIBADALANG_LIBRARY_TYPE \
+ --sources-subdir=include/libadalang --build-name=$1 \
+ -XLIBRARY_TYPE=$1 -XGPR_BUILD=$1 -XXMLADA_BUILD=$1 || die
+ }
+ build relocatable
+ use static-libs && build static
+ use static-pic && build static-pic
+ gprinstall -v -p -Pbuild/mains.gpr --prefix="${D}"/usr \
+ --build-var=LIBRARY_TYPE --build-var=MAINS_LIBRARY_TYPE \
+ --mode=usage --build-name=relocatable -XLIBRARY_TYPE=relocatable \
+ -XGPR_BUILD=relocatable -XXMLADA_BUILD=relocatable || die
+ python_domodule build/python/libadalang
+ if use doc; then
+ HTML_DOCS=(dev_manual/_build/html/*)
+ fi
+ einstalldocs
+}
next reply other threads:[~2025-02-02 14:39 UTC|newest]
Thread overview: 63+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-02 14:39 Alfredo Tupone [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-04-27 14:27 [gentoo-commits] repo/gentoo:master commit in: dev-ada/libadalang/ Sam James
2025-04-05 16:02 Alfredo Tupone
2025-02-24 20:33 Alfredo Tupone
2025-02-23 14:07 Alfredo Tupone
2025-02-23 8:50 Alfredo Tupone
2025-02-23 8:27 Alfredo Tupone
2025-02-18 21:02 Alfredo Tupone
2025-02-02 15:34 Alfredo Tupone
2025-01-27 20:39 Alfredo Tupone
2024-12-15 4:30 Sam James
2024-12-15 4:30 Sam James
2024-03-18 8:10 Alfredo Tupone
2024-03-17 21:26 Alfredo Tupone
2023-12-10 16:14 Alfredo Tupone
2023-03-21 21:02 Alfredo Tupone
2023-03-19 19:48 Alfredo Tupone
2023-03-19 19:45 Alfredo Tupone
2023-01-10 14:31 Michał Górny
2022-12-13 18:32 Alfredo Tupone
2022-12-12 19:55 Alfredo Tupone
2022-12-12 18:19 Alfredo Tupone
2022-12-11 21:10 Alfredo Tupone
2022-12-05 13:23 Alfredo Tupone
2022-11-21 17:57 Alfredo Tupone
2022-10-08 21:50 Alfredo Tupone
2022-10-02 17:52 Alfredo Tupone
2022-09-30 20:38 Alfredo Tupone
2022-02-03 20:03 Alfredo Tupone
2021-12-24 22:12 Alfredo Tupone
2021-12-24 21:46 Alfredo Tupone
2021-12-23 21:03 Alfredo Tupone
2021-12-23 13:10 Alfredo Tupone
2021-12-23 9:40 Alfredo Tupone
2021-12-23 8:14 Alfredo Tupone
2021-12-22 20:56 Alfredo Tupone
2021-12-21 7:15 Alfredo Tupone
2021-12-19 10:13 Alfredo Tupone
2021-12-15 22:00 Alfredo Tupone
2020-02-09 21:38 Alfredo Tupone
2019-11-03 20:26 Alfredo Tupone
2019-10-21 7:03 Alfredo Tupone
2019-10-21 6:41 Alfredo Tupone
2019-09-21 11:48 Alfredo Tupone
2019-09-19 17:21 Alfredo Tupone
2019-09-19 12:45 Alfredo Tupone
2019-06-24 19:47 Alfredo Tupone
2019-06-24 19:23 Alfredo Tupone
2019-06-24 16:57 Alfredo Tupone
2019-06-20 7:27 Alfredo Tupone
2019-06-15 16:45 Alfredo Tupone
2019-06-15 16:40 Alfredo Tupone
2019-06-12 18:44 Alfredo Tupone
2019-05-30 19:18 Alfredo Tupone
2018-11-27 8:15 Alfredo Tupone
2018-11-26 20:57 Alfredo Tupone
2018-11-26 20:54 Alfredo Tupone
2018-11-22 7:07 Alfredo Tupone
2018-07-08 9:05 Alfredo Tupone
2018-04-22 7:47 Alfredo Tupone
2018-03-12 13:44 Alfredo Tupone
2017-12-27 19:15 Alfredo Tupone
2017-12-19 17:55 Alfredo Tupone
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1738507165.4315d486024c1eaae04586136afba5ab28eab08c.tupone@gentoo \
--to=tupone@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox