commit:     76f68b726ebcb4c325a835c945e5eb655cbbb86e
Author:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  5 09:05:22 2026 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Mon Jan  5 09:05:22 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76f68b72

dev-ada/spawn: add 26.0.0

Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 dev-ada/spawn/Manifest            |  1 +
 dev-ada/spawn/spawn-26.0.0.ebuild | 75 +++++++++++++++++++++++++++++++++++++++
 2 files changed, 76 insertions(+)

diff --git a/dev-ada/spawn/Manifest b/dev-ada/spawn/Manifest
index 2f89bbb274c5..d69e7491a461 100644
--- a/dev-ada/spawn/Manifest
+++ b/dev-ada/spawn/Manifest
@@ -1 +1,2 @@
 DIST spawn-25.0.0.tar.gz 66730 BLAKE2B 
45790fcce26594b583eea5cfa123dbd19449d9a38c9fa5f205b549b04f50686ed32609d7b63726815b8ba950e3f61b81f919caaed89d5baa1273e78cff27c1a5
 SHA512 
429442b1d308b552516bc872508f9d735f0f24acce7c7b705caa54837f3a2eadb7555cad49dbdf01872faf7d838d438b6b542d2196f50f8012ffc8faad4d6f9d
+DIST spawn-26.0.0.tar.gz 67430 BLAKE2B 
862b2e0ac8ed8ed81a2597363c9ae67b6b9b37f0d93548b12b14287024b0b00eff470f5af8cf7f792410ea7553ec38933179b6d49742105a20624d33b6c1b538
 SHA512 
e0c5252bee89216b44105e96080c194b81715e08f16ac844d2d6b771210f31b553ecf32cc2c57c0cbed1d6d33b94da20359bd2bfe0eddcdcb6ef3860a7e356b3

diff --git a/dev-ada/spawn/spawn-26.0.0.ebuild 
b/dev-ada/spawn/spawn-26.0.0.ebuild
new file mode 100644
index 000000000000..01abf3c5153b
--- /dev/null
+++ b/dev-ada/spawn/spawn-26.0.0.ebuild
@@ -0,0 +1,75 @@
+# Copyright 2021-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+ADA_COMPAT=( gcc_{12..15} )
+inherit ada multiprocessing
+
+DESCRIPTION="Simple API to spawn processes"
+HOMEPAGE="https://github.com/AdaCore/spawn";
+SRC_URI="https://github.com/AdaCore/${PN}/archive/refs/tags/v${PV}.tar.gz
+       -> ${P}.tar.gz"
+
+LICENSE="GPL-3 gcc-runtime-library-exception-3.1"
+SLOT="0/${PV}"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="gtk static-libs static-pic"
+REQUIRED_USE="${ADA_REQUIRED_USE}"
+
+RDEPEND="${ADA_DEPS}
+       gtk? ( dev-ada/gtkada )"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-ada/gprbuild[${ADA_USEDEP}]"
+
+src_compile() {
+       build () {
+               gprbuild -p -j$(makeopts_jobs) -XBUILD=production -v \
+                       -XLIBRARY_TYPE=$1 \
+                       gnat/$2.gpr -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} 
|| die
+       }
+       build relocatable spawn
+       use static-libs && build static spawn
+       use static-pic  && build static-pic spawn
+       if use gtk; then
+               build relocatable spawn_glib
+               use static-libs && build static spawn_glib
+               use static-pic  && build static-pic spawn_glib
+       fi
+}
+
+src_test() {
+       build () {
+               GPR_PROJECT_PATH=gnat \
+               gprbuild -p -j$(makeopts_jobs) -XBUILD=production -v \
+                       -XLIBRARY_TYPE=$1 gnat/tests/spawn_tests.gpr \
+                       -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} \
+                       || die
+       }
+       build relocatable
+       .obj/spawn_test/spawn_test || die
+       .obj/spawn_test/spawn_unexpected || die
+       .obj/spawn_test/wait_all || die
+       .obj/spawn_test/spawn_bad_exe || die
+       .obj/spawn_test/spawn_kill || die
+       .obj/spawn_test/spawn_stty || die
+}
+
+src_install() {
+       build() {
+               gprinstall --prefix=/usr 
--sources-subdir="${D}"/usr/include/spawn \
+                       -XLIBRARY_TYPE=$1 \
+                       --lib-subdir="${D}"/usr/$(get_libdir)/$2 \
+                       --project-subdir="${D}"/usr/share/gpr \
+                       --link-lib-subdir="${D}"/usr/$(get_libdir)/ -p \
+                       -P gnat/$2.gpr || die
+       }
+       build relocatable spawn
+       use static-libs && build static spawn
+       use static-pic  && build static-pic spawn
+       if use gtk; then
+               build relocatable spawn_glib
+               use static-libs && build static spawn_glib
+               use static-pic  && build static-pic spawn_glib
+       fi
+}

Reply via email to