dev-build/steve: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2026-01-06 08:45:45 +01:00
parent d5c2d20250
commit 20bbc13186
2 changed files with 0 additions and 110 deletions

View File

@@ -1,2 +1 @@
DIST steve-1.3.1.tar.xz 21416 BLAKE2B 30dc52eb35eb05a33bc9dc0430897447627878743f98d67481e7c77af6db160bdef58fae9f8d29abe16ed043e2badb2f74fe4e6e39140d441510cc37cf74641c SHA512 224549ae9ae5d9e3f0529bf6a361ae9339a4553bc5c40641dd16c28a6efec3b889dd1bd1399e8330461d9d2b9a9c496929d718d2f34fb9abc7a95ccdabbee037
DIST steve-1.4.0.tar.xz 22440 BLAKE2B 8de37ce2ced9e7b669fa4d304bf81718e304eac82376b9afc3dd5e8eec266debde25d715df45a31f0f34d5905b272f0591c90b45cec063f3370d0b09177a252c SHA512 bacf8e5f8085c827412874d147ad7d2de13f69c6efb123f98bea0240635e9df076a70a6083f112222ed728880e12b83871f04a40178063835b3d9d8040dc48d5

View File

@@ -1,109 +0,0 @@
# 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 ~s390 x86"
IUSE="debug test"
RESTRICT="test"
PROPERTIES="test? ( test_privileged )"
DEPEND="
dev-libs/libevent:=
sys-fs/fuse:3=
"
RDEPEND="
${DEPEND}
acct-group/jobserver
acct-user/steve
>=sys-fs/fuse-common-3.10.4-r2
"
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
}