diff options
author | 2021-06-06 11:16:59 +0100 | |
---|---|---|
committer | 2021-06-06 11:16:59 +0100 | |
commit | 350fe34c6dcb2d0fea3b86e9d1389e69342248f6 (patch) | |
tree | 0000257ff7546eb850637fed74deda06e1cae1ac /dev-libs | |
parent | remove old zoom ebuild (diff) | |
download | lmiphay-350fe34c6dcb2d0fea3b86e9d1389e69342248f6.tar.gz lmiphay-350fe34c6dcb2d0fea3b86e9d1389e69342248f6.tar.bz2 lmiphay-350fe34c6dcb2d0fea3b86e9d1389e69342248f6.zip |
add libratbag with py3.9
Signed-off-by: Paul Healy <lmiphay@gmail.com>
Diffstat (limited to 'dev-libs')
-rw-r--r-- | dev-libs/libratbag/Manifest | 2 | ||||
-rw-r--r-- | dev-libs/libratbag/libratbag-0.15.ebuild | 83 |
2 files changed, 85 insertions, 0 deletions
diff --git a/dev-libs/libratbag/Manifest b/dev-libs/libratbag/Manifest new file mode 100644 index 0000000..ff0f97d --- /dev/null +++ b/dev-libs/libratbag/Manifest @@ -0,0 +1,2 @@ +DIST libratbag-0.15.tar.gz 249492 BLAKE2B 0f5b35800cb9f82cb892dacd5e3b041843cf5513507ee4882ec5b3f8c8aec8a24594736f2eb1c8e373a0ee38ace1e6328cbd4816d6e5b2cd1f2154ebd803a5fa SHA512 add47a6b3d771de77c6307e128a549f5295e216059b5a2375aa6b2b6bbebcf9a93d7bf148181b3f39f855976e9b6f57072dd9198d07828bebe85409f4ad994aa +EBUILD libratbag-0.15.ebuild 1960 BLAKE2B 4f0ab0667680879e5d29b3c4667b62b4ae4f4acdc08fb6859ad50c1ed4cb40e5bdf04f18d39d46530c597a0fbc744424d25e6dd10196a08afb0b5cf9b9129319 SHA512 33f70a0e4407237b6a4e1327da7fe7d7803027a3f245eb6c4011a885725ebb146b9f99f590a5ab19ed0d9372c6871cb6990ba558300c440d55193e7b3c301cf0 diff --git a/dev-libs/libratbag/libratbag-0.15.ebuild b/dev-libs/libratbag/libratbag-0.15.ebuild new file mode 100644 index 0000000..ce25181 --- /dev/null +++ b/dev-libs/libratbag/libratbag-0.15.ebuild @@ -0,0 +1,83 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_9 ) +inherit meson python-single-r1 udev + +DESCRIPTION="A DBus daemon to configure input devices, mainly high-end/gaming mice" +HOMEPAGE="https://github.com/libratbag/libratbag" +SRC_URI="https://github.com/libratbag/libratbag/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="+systemd elogind doc test" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + ( ^^ ( elogind systemd ) )" +RESTRICT="!test? ( test )" + +RDEPEND=" + ${PYTHON_DEPS} + elogind? ( >=sys-auth/elogind-227 ) + systemd? ( >=sys-apps/systemd-227 ) + dev-libs/glib:2 + dev-libs/json-glib + dev-libs/libunistring + dev-libs/libevdev + $(python_gen_cond_dep ' + dev-python/python-evdev[${PYTHON_MULTI_USEDEP}]') + virtual/libudev +" +DEPEND=" + ${RDEPEND} + dev-lang/swig +" +BDEPEND=" + virtual/pkgconfig + $(python_gen_cond_dep ' + dev-python/pygobject:3[${PYTHON_MULTI_USEDEP}] + ') + doc? ( app-doc/doxygen ) + test? ( + >=dev-libs/check-0.9.10 + $(python_gen_cond_dep ' + dev-python/lxml[${PYTHON_MULTI_USEDEP}]') + dev-util/valgrind + ) +" + +src_prepare() { + default + + python_setup + local pkgconfig_target="$(echo ${EPYTHON} | sed 's/python/python-/')" + sed -i "s/dependency('python3')/dependency('${pkgconfig_target}')/" meson.build || die +} + +src_configure() { + local emesonargs=( + -Ddocumentation=$(usex doc true false) + -Dtests=$(usex test true false) + -Dudev-dir="${EPREFIX}$(get_udevdir)" + -Dlogind-provider=$(usex elogind elogind systemd) + -Dsystemd=$(usex systemd true false) + ) + meson_src_configure +} + +src_install() { + meson_src_install + python_optimize + python_fix_shebang "${ED}"/usr/bin/ +} + +pkg_postinst() { + elog 'Running ratbagd as DBus-activated systemd service:' + elog 'sudo systemctl daemon-reload' + elog 'sudo systemctl reload dbus.service' + elog 'sudo systemctl enable ratbagd.service' + elog 'sudo systemctl start ratbagd.service' +} |