dev-ada/spawn - 26.0.0 (gentoo)

Search

Install

Install this version:

emerge -a =dev-ada/spawn-26.0.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-ada/spawn-26.0.0

Or alternatively:

emerge --autounmask-write -a =dev-ada/spawn-26.0.0

Package Information

Description:
Simple API to spawn processes
Homepage:
https://github.com/AdaCore/spawn
License:
GPL-3 gcc-runtime-library-exception-3.1

Ebuild Details

Version EAPI Keywords Slot
26.0.0 8 ~amd64 ~arm64 ~x86 0/26.0.0
View Raw Ebuild
# 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
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-ada/spawn | euse -E <flag> -p dev-ada/spawn | euse -D <flag> -p dev-ada/spawn

Global/Standard Flags

gtk

Inherited Eclasses

ada

Dependencies

DEPEND

	gtk? ( dev-ada/gtkada:=[,shared,static-libs?,static-pic?] )

RDEPEND

	gtk? ( dev-ada/gtkada:=[,shared,static-libs?,static-pic?] )

BDEPEND

dev-ada/gprbuild[]

Manifest for 26.0.0

Type File Size Source URLs
DIST spawn-26.0.0.tar.gz 67430 bytes https://github.com/AdaCore/spawn/archive/refs/tags/v26.0.0.tar.gz