From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D26C915812D for ; Thu, 02 Jan 2025 12:22:12 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0D0CEE0845; Thu, 02 Jan 2025 12:22:12 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D0216E0845 for ; Thu, 02 Jan 2025 12:22:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8A8D533BEB9 for ; Thu, 02 Jan 2025 12:22:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D8F761870 for ; Thu, 02 Jan 2025 12:22:06 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1735820476.beb9ab001f750aff9f8d4168b6a46895da30ae6c.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ada/spawn/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-ada/spawn/Manifest dev-ada/spawn/spawn-25.0.0.ebuild X-VCS-Directories: dev-ada/spawn/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: beb9ab001f750aff9f8d4168b6a46895da30ae6c X-VCS-Branch: master Date: Thu, 02 Jan 2025 12:22:06 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 6688defa-73f2-4b8b-983c-b12408e180af X-Archives-Hash: a63df532ef826c9f265c1d553cfb49f8 commit: beb9ab001f750aff9f8d4168b6a46895da30ae6c Author: Alfredo Tupone gentoo org> AuthorDate: Thu Jan 2 12:21:01 2025 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Thu Jan 2 12:21:16 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=beb9ab00 dev-ada/spawn: add 25.0.0 Signed-off-by: Alfredo Tupone gentoo.org> dev-ada/spawn/Manifest | 1 + dev-ada/spawn/spawn-25.0.0.ebuild | 83 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 84 insertions(+) diff --git a/dev-ada/spawn/Manifest b/dev-ada/spawn/Manifest index 27d233735b9b..c8c0f406b546 100644 --- a/dev-ada/spawn/Manifest +++ b/dev-ada/spawn/Manifest @@ -1 +1,2 @@ DIST spawn-24.0.0.tar.gz 66727 BLAKE2B 12da7485b27ff75ce75efbbe4e9c71542faf2c283f843cc903530b9e8829f86e3ea1aff73f8f9efb80fd9924c695039456f3b63ff6d635161ed8b33daeb2da88 SHA512 948bcaa7963d79f7a42fe05c80586bce669b7ff01bb756c087f237b35892956d2ababc274e594e9bda82a8c70fbb62c9ca199161176c87ed3ff42f9e7bc78ea9 +DIST spawn-25.0.0.tar.gz 66730 BLAKE2B 45790fcce26594b583eea5cfa123dbd19449d9a38c9fa5f205b549b04f50686ed32609d7b63726815b8ba950e3f61b81f919caaed89d5baa1273e78cff27c1a5 SHA512 429442b1d308b552516bc872508f9d735f0f24acce7c7b705caa54837f3a2eadb7555cad49dbdf01872faf7d838d438b6b542d2196f50f8012ffc8faad4d6f9d diff --git a/dev-ada/spawn/spawn-25.0.0.ebuild b/dev-ada/spawn/spawn-25.0.0.ebuild new file mode 100644 index 000000000000..023d363a4087 --- /dev/null +++ b/dev-ada/spawn/spawn-25.0.0.ebuild @@ -0,0 +1,83 @@ +# Copyright 2021-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +ADA_COMPAT=( gnat_2021 gcc_12 gcc_13 ) +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 ~x86" +IUSE="+shared static-libs static-pic" +REQUIRED_USE="|| ( shared static-libs static-pic ) + ${ADA_REQUIRED_USE}" + +RDEPEND="${ADA_DEPS}" +DEPEND="${RDEPEND}" +BDEPEND="dev-ada/gprbuild[${ADA_USEDEP}]" + +src_compile() { + build () { + gprbuild -p -j$(makeopts_jobs) -XBUILD=production -v \ + -XLIBRARY_TYPE=$1 \ + gnat/spawn.gpr -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} || die + } + if use shared; then + build relocatable + fi + if use static-libs; then + build static + fi + if use static-pic; then + build static-pic + 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 + } + if use shared; then + build relocatable + elif use static-libs; then + build static + elif use static-pic; then + build static-pic + fi + .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)/spawn \ + --project-subdir="${D}"/usr/share/gpr \ + --link-lib-subdir="${D}"/usr/$(get_libdir)/ -p \ + -P gnat/spawn.gpr || die + } + if use shared; then + build relocatable + fi + if use static-libs; then + build static + fi + if use static-pic; then + build static-pic + fi +}