dev-build/steve: Bump to 1.2.0

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny 2025-12-13 17:52:44 +01:00
parent 6fbd3b7b04
commit a4cf0552e0
No known key found for this signature in database
GPG Key ID: 8E32347AF4055AE8
2 changed files with 107 additions and 0 deletions

View File

@ -1 +1,2 @@
DIST steve-1.1.0.tar.xz 17132 BLAKE2B 3f415d007eb808180499b541cf79684ec62807ba3e60e41466c829ac5a073b6b349d55a90dd75111054bcfd33398de72dd283fef8e3654bb57cbcfeab66ffb94 SHA512 516e7523864de0a13242456a5b3a4b6ba8ea36caf90e61842acb2d56461aa1441c1ad5f2b04d3bbd3d649d9f3622e88726cbbb5b7e15c7ccbb16e179fbac4c11
DIST steve-1.2.0.tar.xz 18940 BLAKE2B 88f04479ea92104a678a23032f81fd25f96c679ec38e376aa57f1baae2e26528cc8d965e958597de30ada07965d4301199defce5e77c7984ef6deba3ef11f64c SHA512 18fc62afb65599e01a79d50351dde0a3ac842fe9bab585672c9bf7fff00d96be4b916adbf92f3d9246750087c4462692440b00e73486ad54b2c63a61349d9338

View File

@ -0,0 +1,106 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{11..14} )
inherit linux-info meson python-any-r1 systemd udev
DESCRIPTION="A load-balancing jobserver for Gentoo"
HOMEPAGE="https://gitweb.gentoo.org/proj/steve.git/"
SRC_URI="https://dev.gentoo.org/~mgorny/dist/${P}.tar.xz"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86"
IUSE="debug test"
RESTRICT="test"
PROPERTIES="test? ( test_privileged )"
DEPEND="
dev-libs/libevent:=
sys-fs/fuse:3=
"
RDEPEND="
${DEPEND}
"
BDEPEND="
virtual/pkgconfig
test? (
$(python_gen_any_dep '
dev-python/pytest[${PYTHON_USEDEP}]
dev-python/pytest-timeout[${PYTHON_USEDEP}]
')
)
"
python_check_deps() {
python_has_version "dev-python/pytest[${PYTHON_USEDEP}]" &&
python_has_version "dev-python/pytest-timeout[${PYTHON_USEDEP}]"
}
pkg_pretend() {
local CONFIG_CHECK="~CUSE"
check_extra_config
}
pkg_setup() {
use test && python-any-r1_pkg_setup
}
src_configure() {
local emesonargs=(
$(meson_use !debug b_ndebug)
$(meson_use test)
)
meson_src_configure
}
src_test() {
addwrite /dev/cuse
addwrite /dev/steve.test
if [[ ! -w /dev/cuse ]]; then
die "Testing steve requires /dev/cuse"
fi
local -x STEVE=${BUILD_DIR}/steve
local EPYTEST_PLUGINS=( pytest-timeout )
epytest
}
src_install() {
meson_src_install
# TODO: move these to meson
systemd_dounit data/steve.service
newconfd data/steve.confd steve
newinitd data/steve.initd steve
insinto /etc/sandbox.d
newins data/sandbox.conf 90steve
udev_newrules data/steve.udev 90-steve.rules
}
pkg_postinst() {
udev_reload
if ! grep -q -s -R -- '--jobserver-auth=fifo:/dev/steve' "${EROOT}"/etc/portage/make.conf
then
elog "In order to use the system-wide steve instance, enable the service:"
elog
elog " systemctl enable --now steve"
elog
elog "Then add to your make.conf:"
elog
elog ' MAKEFLAGS="--jobserver-auth=fifo:/dev/steve"'
elog ' NINJAOPTS=""'
elog
elog "You can use -l in NINJAOPTS but *do not* use -j, as it disables"
elog "jobserver support."
fi
}
pkg_postrm() {
udev_reload
}