diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-18 18:50:06 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-18 18:50:06 +0000 |
commit | bc7e0dbdbd194a8c2e09f82e1a5a4ea5e1b556f4 (patch) | |
tree | cb9186c88b5cfbd6c51e4b283677075c5c6ea38e /dev-ada/spawn | |
parent | ebb07c94f800907e02d2a6b92c1bc757b2f86f49 (diff) |
gentoo auto-resync : 18:03:2024 - 18:50:06
Diffstat (limited to 'dev-ada/spawn')
-rw-r--r-- | dev-ada/spawn/Manifest | 2 | ||||
-rw-r--r-- | dev-ada/spawn/spawn-24.0.0.ebuild | 108 |
2 files changed, 110 insertions, 0 deletions
diff --git a/dev-ada/spawn/Manifest b/dev-ada/spawn/Manifest index a67e2a0b98e3..7fff09ececb5 100644 --- a/dev-ada/spawn/Manifest +++ b/dev-ada/spawn/Manifest @@ -1,3 +1,5 @@ DIST spawn-23.0.0.tar.gz 43449 BLAKE2B b4a025784d7fb1248696081c128d415101cffca59f03edae3e3ca05c286390ca93a34c1284d1e4b23f8e57bfff274b87d977e5b7840c74049f6f66be89c9b9ac SHA512 440f8b8a45b7a322a5715a195f7e37e6f2641af8190166229e89a11ce6ab60511eb058432f4c3ffcdd670ec71b2509d5e23a80ac2e8dd6b7960bc42385bab86e +DIST spawn-24.0.0.tar.gz 66727 BLAKE2B 12da7485b27ff75ce75efbbe4e9c71542faf2c283f843cc903530b9e8829f86e3ea1aff73f8f9efb80fd9924c695039456f3b63ff6d635161ed8b33daeb2da88 SHA512 948bcaa7963d79f7a42fe05c80586bce669b7ff01bb756c087f237b35892956d2ababc274e594e9bda82a8c70fbb62c9ca199161176c87ed3ff42f9e7bc78ea9 EBUILD spawn-23.0.0-r3.ebuild 2703 BLAKE2B f3f6d9d82d80ff8aba19f64b537239aa7379cbc0de6ffe89cd5daf455d362504d426457495037fc1e6886ae5549cc38920e70948c538cf6200bcb43c768d9a28 SHA512 c69e452e433647f6d9f065e3eeeb43431c636f85abc6e16e2b2968bb86b0bd38a3ba8be358b98ed24c7cdcffa512642a7f8d09a9841ca610cf59ae965126140b +EBUILD spawn-24.0.0.ebuild 2703 BLAKE2B 3d07ffb6cfe40c0d7336c895b2510abd5e54f1782c1464060fc8fb679bb6c7d7243f3e33f4b829de71990038aa21f7f10d8c351cfd41cd05c0e005bd50564ac1 SHA512 c8b345db28847a3e79183dbd6f76a6a1dfc117c9ca6bb74e3dde1d2bf6b46bf4212b8da0de4d4d5c2ccab51e83004e717551267f88b6f2765e2023a35ef54055 MISC metadata.xml 757 BLAKE2B ab129603cda705c21f84a789cd100d39186e06885589089320dfcfc0726cc913ad73784fd35e541ee0773c93e89bbd42965897b9bd921008cdc0fbdaffdaf64f SHA512 6124d3eecafe758ca841715bcead3b8d35d9af7bafeea8a967910156043c30b1902a521e7cf37c0a61283859797dc364580f2b84f6b597adeb81c25c98f3f9d2 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 +} |