mirror of
https://github.com/dguglielmi/sunny-overlay.git
synced 2025-12-06 07:22:38 +01:00
dev-libs/libratbag: drop ebuild
This commit is contained in:
@@ -1 +0,0 @@
|
||||
DIST piper-0.8.tar.gz 318558 BLAKE2B 170426c35899841a3317d0cd37d253fab524848fbe5ebf1c2e670c56c962bf9f7a39bccd1dea43bbf0d5c6a158e795df63e84ddb0422fec4fd92142d70fccbc8 SHA512 c0a05262262a1284911c976ab934653f8a3699066ef1d791669169c1e6c5db62dba0fcccc32d6bc68b996a2c2b8e96a6567761d01417a03d7dbb41010dd95cd8
|
||||
@@ -1,23 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>david.guglielmi@gmail.com</email>
|
||||
<name>David GUGLIELMI</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
Piper is a graphical user interface to configure gaming mice.
|
||||
Configuration options include changing the resolution (DPI) of the
|
||||
mouse, adding and removing profiles, setting LED colors and changing
|
||||
button behaviors.
|
||||
|
||||
Piper requires <pkg>dev-libs/libratbag</pkg>’s ratbagd, the daemon to actually communicate with the
|
||||
mice. Piper is merely a front end to ratbagd, ratbagd must be
|
||||
installed and running when Piper is launched.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">libratbag/piper</remote-id>
|
||||
<bugs-to>https://github.com/libratbag/piper/issues</bugs-to>
|
||||
<doc lang="en">https://github.com/libratbag/piper/wiki</doc>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,69 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit meson python-single-r1 xdg
|
||||
|
||||
DESCRIPTION="GTK application to configure gaming devices"
|
||||
HOMEPAGE="https://github.com/libratbag/piper"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/libratbag/piper.git"
|
||||
else
|
||||
SRC_URI="https://github.com/libratbag/piper/archive/${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
IUSE="test"
|
||||
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
BDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
')
|
||||
test? (
|
||||
dev-libs/appstream
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/flake8[${PYTHON_USEDEP}]
|
||||
')
|
||||
)
|
||||
virtual/pkgconfig
|
||||
"
|
||||
RDEPEND="
|
||||
${PYTHON_DEPS}
|
||||
dev-libs/gobject-introspection
|
||||
>=dev-libs/libratbag-0.14
|
||||
gnome-base/librsvg[introspection]
|
||||
x11-libs/gdk-pixbuf[introspection]
|
||||
x11-libs/gtk+:3[introspection]
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/evdev[${PYTHON_USEDEP}]
|
||||
dev-python/lxml[${PYTHON_USEDEP}]
|
||||
dev-python/pycairo[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[cairo,${PYTHON_USEDEP}]
|
||||
')
|
||||
"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
dev-libs/libevdev
|
||||
virtual/libudev
|
||||
"
|
||||
|
||||
src_configure() {
|
||||
python_setup
|
||||
meson_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
meson_src_install
|
||||
python_optimize
|
||||
python_fix_shebang "${ED}"/usr/bin/
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
DIST libratbag-0.18.tar.gz 296737 BLAKE2B db691af43b3d2aeafcb31cdb4ce41504dd37a7a0a5a6d97bf2a3bee6840bbe49de25351990787436bc00a0dc80f5a20e31030069aa58ea8e38c7cad1029e39f8 SHA512 ae1796d738f7e448c6022c56cb876af5fb43e29b89fef31bbf42b9c838a07fd1d6cf94815dfde87dcd94a72bae159ca14624826b75cf83c988ba4c20340031cb
|
||||
@@ -1,13 +0,0 @@
|
||||
#!/sbin/openrc-run
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
description="system daemon to introspect and modify configurable mice"
|
||||
pidfile="/run/${SVCNAME}.pid"
|
||||
command="/usr/bin/ratbagd"
|
||||
start_stop_daemon_args="--quiet"
|
||||
command_background="true"
|
||||
|
||||
depend() {
|
||||
need dbus
|
||||
}
|
||||
@@ -1,108 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
PYTHON_COMPAT=( python3_{10..13} )
|
||||
|
||||
inherit meson python-single-r1 systemd udev
|
||||
|
||||
DESCRIPTION="Library to configure gaming mice"
|
||||
HOMEPAGE="https://github.com/libratbag/libratbag"
|
||||
|
||||
if [[ ${PV} == 9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/libratbag/libratbag.git"
|
||||
else
|
||||
SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="doc elogind systemd test"
|
||||
REQUIRED_USE="
|
||||
${PYTHON_REQUIRED_USE}
|
||||
^^ ( elogind systemd )
|
||||
"
|
||||
RESTRICT="!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-debug/valgrind
|
||||
$(python_gen_cond_dep '
|
||||
dev-python/evdev[${PYTHON_USEDEP}]
|
||||
dev-python/pygobject:3[${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/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'
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>david.guglielmi@gmail.com</email>
|
||||
<name>David GUGLIELMI</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">libratbag/libratbag</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in New Issue
Block a user