commit: 68ac4ceef8b853588aa38a4f907203e634c1ca68
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 5 08:53:16 2026 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Jan 5 08:53:16 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68ac4cee
dev-ada/prettier-ada: add 26.0.0
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
dev-ada/prettier-ada/Manifest | 1 +
dev-ada/prettier-ada/prettier-ada-26.0.0.ebuild | 107 ++++++++++++++++++++++++
2 files changed, 108 insertions(+)
diff --git a/dev-ada/prettier-ada/Manifest b/dev-ada/prettier-ada/Manifest
index b1946280867e..2a7ccfc2b644 100644
--- a/dev-ada/prettier-ada/Manifest
+++ b/dev-ada/prettier-ada/Manifest
@@ -1 +1,2 @@
DIST prettier-ada-25.0.0.tar.gz 60082 BLAKE2B
7fa18f3557b0f4e031d24421b7e5876477ed9468886e8d74165c7eae3f4ecdba8dfa7efa6ac298b3065b23eff5f531c4194107be6d36aa4153670350f19f3fc0
SHA512
5e31bedf76f6051a1e40a298953d9aa269f24d374b619fba1de934d4b85efc358532d9d695084b41607ae7d8d87bf91f27a151760c1f010782b2af3f64783c6a
+DIST prettier-ada-26.0.0.tar.gz 60908 BLAKE2B
1fd8530337fd1f06c59abef98d2b74a014c67670b86c3e6f7d1c2c1f72a0b1d19858575322eaef4118a42e62724c402aa64da4004f06b9ea2d6cd2a8372af11c
SHA512
9e3456ae6ebfd168c82f09bd04ada2db1dcff10c805567710af67c667923a8b3c4c230af190e0ba2b05da149d2e4ac5ba7d9f7a753bbff3b3daa1c4895ce7e78
diff --git a/dev-ada/prettier-ada/prettier-ada-26.0.0.ebuild
b/dev-ada/prettier-ada/prettier-ada-26.0.0.ebuild
new file mode 100644
index 000000000000..4c7aff583a70
--- /dev/null
+++ b/dev-ada/prettier-ada/prettier-ada-26.0.0.ebuild
@@ -0,0 +1,107 @@
+# Copyright 2025-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+ADA_COMPAT=( gcc_{13..16} )
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit ada python-any-r1 multiprocessing
+
+DESCRIPTION="Port of the Prettier formatter to the Ada programming language"
+HOMEPAGE="https://github.com/AdaCore/prettier-ada"
+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 ~arm64 ~x86"
+IUSE="+shared static-libs static-pic test"
+
+RDEPEND="${ADA_DEPS}
+ dev-ada/vss-text:=[${ADA_USEDEP},shared(+)?,static-libs?,static-pic?]
+ dev-ada/gnatcoll-core:=[${ADA_USEDEP},shared?,static-libs?,static-pic?]"
+DEPEND="${RDEPEND}
+ dev-ada/gprbuild[${ADA_USEDEP}]"
+BDEPEND="test? (
+ $(python_gen_any_dep '
+ dev-ada/e3-testsuite[${PYTHON_USEDEP}]
+ ')
+)"
+
+REQUIRED_USE="${ADA_REQUIRED_USE}
+ || ( shared static-libs static-pic )
+ test? ( static-libs )"
+RESTRICT="!test? ( test )"
+
+python_check_deps() {
+ use test || return 0
+ python_has_version "dev-ada/e3-testsuite[${PYTHON_USEDEP}]"
+}
+
+pkg_setup() {
+ use test && python-any-r1_pkg_setup
+ ada_pkg_setup
+}
+
+src_compile() {
+ build() {
+ gprbuild \
+ -v \
+ -k \
+ -XLIBRARY_TYPE=$1 \
+ -XPRETTIER_ADA_LIBRARY_TYPE=$1 \
+ -P prettier_ada.gpr \
+ -p \
+ -j$(makeopts_jobs) \
+ -largs ${LDFLAGS} \
+ -cargs ${ADAFLAGS} \
+ || die "gprbuild failed"
+ }
+ use shared && build relocatable
+ use static-libs && build static
+ use static-pic && build static-pic
+}
+
+src_install() {
+ build() {
+ gprinstall \
+ -XPRETTIER_ADA_LIBRARY_TYPE=$1 \
+ -XLIBRARY_TYPE=$1 \
+ --prefix="${D}"/usr \
+ --install-name=prettier_ada \
+ --build-name=$1 \
+ --build-var=LIBRARY_TYPE \
+ -P prettier_ada.gpr -p -f \
+ || die "gprinstall failed"
+
+ }
+ use shared && build relocatable
+ use static-libs && build static
+ use static-pic && build static-pic
+ einstalldocs
+}
+
+src_test() {
+ rm -rf testsuite/tests/json/label || die
+ gprbuild \
+ -v \
+ -k \
+ -XLIBRARY_TYPE=static \
+ -XPRETTIER_ADA_LIBRARY_TYPE=static \
+ -P testsuite/test_programs/test_programs.gpr \
+ -p \
+ -j$(makeopts_jobs) \
+ || die
+ gprinstall \
+ -XLIBRARY_TYPE=static \
+ -XPRETTIER_ADA_LIBRARY_TYPE=static \
+ --prefix="${TMP}"/usr \
+ --install-name=test_programs \
+ --mode=usage \
+ -P testsuite/test_programs/test_programs.gpr \
+ -p \
+ -f \
+ || die
+ PATH=${PATH}:"${TMP}"/usr/bin \
+ ${EPYTHON} testsuite/testsuite.py || die
+}