summaryrefslogtreecommitdiff
path: root/dev-ada/spawn
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-04 05:48:38 -0500
commitbfd9c39e4712ebdb442d4ca0673061faed1e70e1 (patch)
tree0d7a74b4463ee387f9cf9368ceb1b757f694f72a /dev-ada/spawn
parentf716a9fe6455d39eef01e718aae68dae61c19704 (diff)
downloadbaldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.gz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.tar.xz
baldeagleos-repo-bfd9c39e4712ebdb442d4ca0673061faed1e70e1.zip
Revert "Adding metadata"
This reverts commit f716a9fe6455d39eef01e718aae68dae61c19704.
Diffstat (limited to 'dev-ada/spawn')
-rw-r--r--dev-ada/spawn/Manifest2
-rw-r--r--dev-ada/spawn/metadata.xml18
-rw-r--r--dev-ada/spawn/spawn-25.0.0-r4.ebuild75
-rw-r--r--dev-ada/spawn/spawn-26.0.0-r1.ebuild75
4 files changed, 170 insertions, 0 deletions
diff --git a/dev-ada/spawn/Manifest b/dev-ada/spawn/Manifest
new file mode 100644
index 000000000000..d69e7491a461
--- /dev/null
+++ b/dev-ada/spawn/Manifest
@@ -0,0 +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/metadata.xml b/dev-ada/spawn/metadata.xml
new file mode 100644
index 000000000000..1567756f4cf4
--- /dev/null
+++ b/dev-ada/spawn/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>ada@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="static-pic">Build static library with pic code</flag>
+ </use>
+ <longdescription lang="en">
+ This library provides simple API to spawn processes and communicate
+ with them. We provide two implementations of the same API - the
+ integrated into Glib event loop and the independent.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">AdaCore/spawn</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-ada/spawn/spawn-25.0.0-r4.ebuild b/dev-ada/spawn/spawn-25.0.0-r4.ebuild
new file mode 100644
index 000000000000..8c3e33302e93
--- /dev/null
+++ b/dev-ada/spawn/spawn-25.0.0-r4.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$(get_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$(get_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
+}
diff --git a/dev-ada/spawn/spawn-26.0.0-r1.ebuild b/dev-ada/spawn/spawn-26.0.0-r1.ebuild
new file mode 100644
index 000000000000..2bc226de8307
--- /dev/null
+++ b/dev-ada/spawn/spawn-26.0.0-r1.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:=[${ADA_USEDEP},shared,static-libs?,static-pic?] )"
+DEPEND="${RDEPEND}"
+BDEPEND="dev-ada/gprbuild[${ADA_USEDEP}]"
+
+src_compile() {
+ build () {
+ gprbuild -p -j$(get_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$(get_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
+}