dev-libs/libratbag: drop 0.17.9

Signed-off-by: jinqiang zhang <jinqiang@zhang.my>
This commit is contained in:
jinqiang zhang 2024-11-08 13:12:22 +08:00 committed by peeweep
parent 020329ad0a
commit 46038200c9
2 changed files with 0 additions and 106 deletions

View File

@ -1,2 +1 @@
DIST libratbag-0.17.9.tar.gz 284953 BLAKE2B b4e37acea6b602402896d7cb17dddaf79626dfecea4a299a56df192aaca69ba36a0eac0a369ce67a6d8cbfa85bef716a03611d39979744231d41b3be1b605365 SHA512 a478e74329b2bf38e71485b324a148d8f6d912bcea2b500ac2cf10a7072fa396f691d131ade18ffec3d313eef5cd94ce646974b60ee864d2bd5937604e9d78fe
DIST libratbag-0.18.tar.gz 296737 BLAKE2B db691af43b3d2aeafcb31cdb4ce41504dd37a7a0a5a6d97bf2a3bee6840bbe49de25351990787436bc00a0dc80f5a20e31030069aa58ea8e38c7cad1029e39f8 SHA512 ae1796d738f7e448c6022c56cb876af5fb43e29b89fef31bbf42b9c838a07fd1d6cf94815dfde87dcd94a72bae159ca14624826b75cf83c988ba4c20340031cb DIST libratbag-0.18.tar.gz 296737 BLAKE2B db691af43b3d2aeafcb31cdb4ce41504dd37a7a0a5a6d97bf2a3bee6840bbe49de25351990787436bc00a0dc80f5a20e31030069aa58ea8e38c7cad1029e39f8 SHA512 ae1796d738f7e448c6022c56cb876af5fb43e29b89fef31bbf42b9c838a07fd1d6cf94815dfde87dcd94a72bae159ca14624826b75cf83c988ba4c20340031cb

View File

@ -1,105 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..11} )
inherit meson python-single-r1 systemd udev
DESCRIPTION="Library to configure gaming mice"
HOMEPAGE="https://github.com/libratbag/libratbag"
SRC_URI="https://github.com/${PN}/${PN}/archive/ada99fb72e45e8e8555308ceb40ab8349e8d70b1.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-ada99fb72e45e8e8555308ceb40ab8349e8d70b1"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc elogind systemd test"
REQUIRED_USE="
${PYTHON_REQUIRED_USE}
^^ ( elogind systemd )
"
RESTRICT="mirror !test? ( test )"
BDEPEND="
${PYTHON_DEPS}
dev-lang/swig
virtual/pkgconfig
doc? (
$(python_gen_cond_dep '
dev-python/sphinx[${PYTHON_USEDEP}]
dev-python/sphinx-rtd-theme[${PYTHON_USEDEP}]
')
)
test? (
dev-libs/check
dev-libs/gobject-introspection
dev-util/valgrind
$(python_gen_cond_dep '
dev-python/pygobject:3[${PYTHON_USEDEP}]
dev-python/python-evdev[${PYTHON_USEDEP}]
')
)
"
RDEPEND="
${PYTHON_DEPS}
acct-group/plugdev
dev-libs/glib:2
dev-libs/json-glib
dev-libs/libevdev
dev-libs/libunistring:=
virtual/libudev:=
$(python_gen_cond_dep '
dev-python/pygobject:3[${PYTHON_USEDEP}]
dev-python/python-evdev[${PYTHON_USEDEP}]
')
elogind? ( sys-auth/elogind )
systemd? ( sys-apps/systemd )
"
DEPEND="
${RDEPEND}
dev-libs/gobject-introspection
"
src_prepare() {
default
if use elogind ; then
# Fix systemd includes for elogind
sed -i -e 's@include <systemd@include <elogind@' \
ratbagd/ratbag*.c || die
fi
}
src_configure() {
python_setup
local emesonargs=(
$(meson_use doc documentation)
$(meson_use systemd)
$(meson_use test tests)
-Ddbus-group="plugdev"
-Dlogind-provider=$(usex elogind elogind systemd)
-Dsystemd-unit-dir="$(systemd_get_systemunitdir)"
-Dudev-dir="${EPREFIX}$(get_udevdir)"
)
meson_src_configure
}
src_install() {
meson_src_install
python_fix_shebang "${ED}"/usr/bin/
newinitd "${FILESDIR}"/ratbagd.init ratbagd
}
pkg_postinst() {
if [[ -z "${REPLACING_VERSIONS}" ]] ; then
elog 'You need to be in "plugdev" group in order to access the'
elog 'ratbagd dbus interface'
fi
elog 'You may be required to create and/or be part of the "games" group if you intend on using piper'
}