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 (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EED58158041 for ; Mon, 18 Mar 2024 17:42:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1BF80E29AB; Mon, 18 Mar 2024 17:42:09 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 pigeon.gentoo.org (Postfix) with ESMTPS id E844DE29AB for ; Mon, 18 Mar 2024 17:42:08 +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 B4507335DEB for ; Mon, 18 Mar 2024 17:42:07 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EDD581520 for ; Mon, 18 Mar 2024 17:42:05 +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: <1710783701.8b50cad5b90927a289d0ec5d25865f3415dac73f.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-24.0.0.ebuild X-VCS-Directories: dev-ada/spawn/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: 8b50cad5b90927a289d0ec5d25865f3415dac73f X-VCS-Branch: master Date: Mon, 18 Mar 2024 17:42:05 +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: 4d81ecc0-d816-4206-a250-501e9f468af9 X-Archives-Hash: 2f1a9525fab404f8df2ec4abae21ee53 commit: 8b50cad5b90927a289d0ec5d25865f3415dac73f Author: Alfredo Tupone gentoo org> AuthorDate: Mon Mar 18 17:41:23 2024 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Mon Mar 18 17:41:41 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b50cad5 dev-ada/spawn: add 24.0.0 Signed-off-by: Alfredo Tupone gentoo.org> dev-ada/spawn/Manifest | 1 + dev-ada/spawn/spawn-24.0.0.ebuild | 108 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 109 insertions(+) diff --git a/dev-ada/spawn/Manifest b/dev-ada/spawn/Manifest index c4acdd193d29..947c53d6e918 100644 --- a/dev-ada/spawn/Manifest +++ b/dev-ada/spawn/Manifest @@ -1 +1,2 @@ DIST spawn-23.0.0.tar.gz 43449 BLAKE2B b4a025784d7fb1248696081c128d415101cffca59f03edae3e3ca05c286390ca93a34c1284d1e4b23f8e57bfff274b87d977e5b7840c74049f6f66be89c9b9ac SHA512 440f8b8a45b7a322a5715a195f7e37e6f2641af8190166229e89a11ce6ab60511eb058432f4c3ffcdd670ec71b2509d5e23a80ac2e8dd6b7960bc42385bab86e +DIST spawn-24.0.0.tar.gz 66727 BLAKE2B 12da7485b27ff75ce75efbbe4e9c71542faf2c283f843cc903530b9e8829f86e3ea1aff73f8f9efb80fd9924c695039456f3b63ff6d635161ed8b33daeb2da88 SHA512 948bcaa7963d79f7a42fe05c80586bce669b7ff01bb756c087f237b35892956d2ababc274e594e9bda82a8c70fbb62c9ca199161176c87ed3ff42f9e7bc78ea9 diff --git a/dev-ada/spawn/spawn-24.0.0.ebuild b/dev-ada/spawn/spawn-24.0.0.ebuild new file mode 100644 index 000000000000..7e42f15053ad --- /dev/null +++ b/dev-ada/spawn/spawn-24.0.0.ebuild @@ -0,0 +1,108 @@ +# Copyright 2021-2024 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="glib +shared static-libs static-pic" +REQUIRED_USE="|| ( shared static-libs static-pic ) + ${ADA_REQUIRED_USE}" + +RDEPEND="${ADA_DEPS} + glib? ( + dev-ada/gtkada[${ADA_USEDEP},shared?,static-libs?,static-pic(-)?] + dev-libs/glib +)" +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 glib; then + gprbuild -p -j$(makeopts_jobs) -XBUILD=production -v \ + -XLIBRARY_TYPE=$1 \ + gnat/spawn_glib.gpr -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} \ + || die + fi + } + 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 () { + gprbuild -p -j$(makeopts_jobs) -XBUILD=production -v \ + -XLIBRARY_TYPE=$1 \ + gnat/spawn_tests.gpr -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} \ + || die + if use glib; then + gprbuild -p -j$(makeopts_jobs) -XBUILD=production -v \ + -XLIBRARY_TYPE=$1 \ + gnat/spawn_glib_tests.gpr \ + -cargs:C ${CFLAGS} -cargs:Ada ${ADAFLAGS} || die + fi + } + 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/spawn_kill || die + if use glib; then + .obj/spawn_test/spawn_glib_test || die + .obj/spawn_test/spawn_glib_args_test.exe || die + fi +} + +src_install() { + build() { + gprinstall --prefix=/usr --sources-subdir="${D}"/usr/include/spawn \ + -XLIBRARY_TYPE=$1 \ + --lib-subdir="${D}"/usr/lib/spawn \ + --project-subdir="${D}"/usr/share/gpr \ + --link-lib-subdir="${D}"/usr/lib/ -p \ + -P gnat/spawn.gpr || die + if use glib; then + gprinstall --prefix=/usr \ + -XLIBRARY_TYPE=$1 \ + --sources-subdir="${D}"/usr/include/spawn_glib \ + --lib-subdir="${D}"/usr/lib/spawn_glib \ + --project-subdir="${D}"/usr/share/gpr \ + --link-lib-subdir="${D}"/usr/lib/ -p \ + -P gnat/spawn_glib.gpr || die + fi + } + if use shared; then + build relocatable + fi + if use static-libs; then + build static + fi + if use static-pic; then + build static-pic + fi +}