diff options
Diffstat (limited to 'dev-libs/libratbag')
-rw-r--r-- | dev-libs/libratbag/Manifest | 7 | ||||
-rw-r--r-- | dev-libs/libratbag/files/ratbagd.init | 13 | ||||
-rw-r--r-- | dev-libs/libratbag/libratbag-0.15.ebuild | 94 | ||||
-rw-r--r-- | dev-libs/libratbag/libratbag-0.9.ebuild | 40 | ||||
-rw-r--r-- | dev-libs/libratbag/metadata.xml | 14 |
5 files changed, 124 insertions, 44 deletions
diff --git a/dev-libs/libratbag/Manifest b/dev-libs/libratbag/Manifest index d405eba7bff8..61a8c2873377 100644 --- a/dev-libs/libratbag/Manifest +++ b/dev-libs/libratbag/Manifest @@ -1,3 +1,4 @@ -DIST libratbag-0.9.tar.gz 238225 BLAKE2B 74efbed2840103018195a73c11760a2022e42db5e81ba2e9d63a21bc5eb4c1dfed107382b657d2dc208101dfb53eb1926aaccc116ae66e3bf83e1218239dc1a2 SHA512 36215f534f9429c3b182f5502a2bbe16905492a634e327a845d65b638d7dd5ebb5c4eb1700a5196d6b5caac68e500603ced60c3c83f6d0c8e3c776e0161f657b -EBUILD libratbag-0.9.ebuild 761 BLAKE2B fbcd3ec221b7c2cfbcd2dbf85dd3c2fa845bf1e7e90b8b1edf607c13418cdbb57f672ba73a4bb8f790725e6a05ce6fe8e4b95cfa29302bf56d395bc90afd3488 SHA512 b2ca3694cdfb145f29b6bb24b9eb14c77cc62250155b1bcac1a2393a7ad065956b1b7e4455744b3d0eecc1e29f4597d0ecec041855c637732e0fffe33ccaa2fe -MISC metadata.xml 256 BLAKE2B 55800f1afe85cae6b43d53da79dea4169d8f2606b4b5152843c741e59b686be4c5c432d6160031d1337a153576d69f9c24b08d70a26b22289b63b560f3ba3afe SHA512 bb303019614fae3631db582d2515dc71f9e9953e97f2b46724667c760b180173544255700c4f5d24a9f0addf78e0ee6407272c1137e200d17ce7b7708c8bcb66 +AUX ratbagd.init 336 BLAKE2B c6f2ef095cd7d929c3097a18e912ae4b3615bd0ebbdfdaa9f4151b312614c016af2f3581c2fbb2853472cb70ce47d5f26f254772fb9f3dabba2ce93626b672b7 SHA512 3908b3481b49bcebc84e3023ff911dcbc1773e4322356def0067ed4aa426184cf43e12de702e98210157d17c2806d57c1cb4bc79ddb0b8660036a6fe3974607e +DIST libratbag-0.15.tar.gz 249492 BLAKE2B 0f5b35800cb9f82cb892dacd5e3b041843cf5513507ee4882ec5b3f8c8aec8a24594736f2eb1c8e373a0ee38ace1e6328cbd4816d6e5b2cd1f2154ebd803a5fa SHA512 add47a6b3d771de77c6307e128a549f5295e216059b5a2375aa6b2b6bbebcf9a93d7bf148181b3f39f855976e9b6f57072dd9198d07828bebe85409f4ad994aa +EBUILD libratbag-0.15.ebuild 1983 BLAKE2B aae71f42742972516cb9686ca639136f3487d2f549507111f7d5eff6655d80914326c2c860be2c1de7a63e53fdb6e9c1159f360c5053d2420477921c7f48fe12 SHA512 cca5ee5d04144b96d3299a08940cdbd889167c4b20b7aac141e7481d0d07013be7ea377903f756bec82df546ebb0f4f8fca2fc0392e6cc7aee51d745de505248 +MISC metadata.xml 634 BLAKE2B cc8a930132b186fe8acad18725ff2c621edd878cacf59a65491c3515061d5954bff2eb9be72ee0b3901aff82acb6aab0f88d814528a62358171a4288da2b38fb SHA512 6dabec3887b8958f6351c5fb7e33ee512bff8905d36d8002b088f02f0bf5474e97d33f017bb866b67cc6b6b82939fef25549625aefd87546dfa626bb596aa5d3 diff --git a/dev-libs/libratbag/files/ratbagd.init b/dev-libs/libratbag/files/ratbagd.init new file mode 100644 index 000000000000..d3e7d08334ce --- /dev/null +++ b/dev-libs/libratbag/files/ratbagd.init @@ -0,0 +1,13 @@ +#!/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 +} diff --git a/dev-libs/libratbag/libratbag-0.15.ebuild b/dev-libs/libratbag/libratbag-0.15.ebuild new file mode 100644 index 000000000000..ace62db4054b --- /dev/null +++ b/dev-libs/libratbag/libratbag-0.15.ebuild @@ -0,0 +1,94 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8} ) + +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/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc elogind systemd test" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + ^^ ( elogind systemd ) +" +RESTRICT="!test? ( test )" + +BDEPEND=" + ${PYTHON_DEPS} + dev-lang/swig + virtual/pkgconfig + doc? ( app-doc/doxygen ) + test? ( + dev-libs/check + dev-libs/gobject-introspection + dev-util/valgrind + $(python_gen_cond_dep ' + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] + dev-python/python-evdev[${PYTHON_MULTI_USEDEP}] + ') + ) +" +RDEPEND=" + ${PYTHON_DEPS} + acct-group/plugdev + dev-libs/json-glib + dev-libs/libevdev + virtual/libudev + $(python_gen_cond_dep ' + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] + dev-python/python-evdev[${PYTHON_MULTI_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 +} diff --git a/dev-libs/libratbag/libratbag-0.9.ebuild b/dev-libs/libratbag/libratbag-0.9.ebuild deleted file mode 100644 index f85cd3509b79..000000000000 --- a/dev-libs/libratbag/libratbag-0.9.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit meson udev - -DESCRIPTION="Library to configure gaming mice" -HOMEPAGE="https://github.com/libratbag/libratbag" -SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="doc test" -RESTRICT="!test? ( test )" - -DEPEND=" - virtual/pkgconfig - doc? ( app-doc/doxygen ) -" -RDEPEND=" - dev-libs/libevdev - virtual/libudev -" - -src_prepare() { - default - - sed '/default:/d' -i meson_options.txt || die -} - -src_configure() { - local emesonargs=( - -Denable-documentation=$(usex doc true false) - -Denable-tests=$(usex test true false) - -Dudev-dir=$(get_udevdir) - ) - meson_src_configure -} diff --git a/dev-libs/libratbag/metadata.xml b/dev-libs/libratbag/metadata.xml index 7899bfbe42b7..f0fab9cd91af 100644 --- a/dev-libs/libratbag/metadata.xml +++ b/dev-libs/libratbag/metadata.xml @@ -1,7 +1,19 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <maintainer type="person"> + <email>alex@1stleg.com</email> + <name>Alex Barker</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <maintainer type="person"> + <email>polynomial-c@gentoo.org</email> + <name>Lars Wendler</name> + <description>Proxy maintainer for Alex</description> + </maintainer> <upstream> <remote-id type="github">libratbag/libratbag</remote-id> </upstream> |