diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-03-03 10:28:17 +0000 |
commit | d99093fb4bb5652015c06274d64083daa2439e4f (patch) | |
tree | cf61513204d97974179580065e85df5c8009087c /app-misc/solaar/solaar-9999.ebuild | |
parent | 463397cf1e064185110fe57c568d73f99a06f5d1 (diff) |
gentoo resync : 03.03.2021
Diffstat (limited to 'app-misc/solaar/solaar-9999.ebuild')
-rw-r--r-- | app-misc/solaar/solaar-9999.ebuild | 42 |
1 files changed, 29 insertions, 13 deletions
diff --git a/app-misc/solaar/solaar-9999.ebuild b/app-misc/solaar/solaar-9999.ebuild index 8b13996f6d32..cad0500253bc 100644 --- a/app-misc/solaar/solaar-9999.ebuild +++ b/app-misc/solaar/solaar-9999.ebuild @@ -1,39 +1,54 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -DISTUTILS_USE_SETUPTOOLS=no -PYTHON_COMPAT=( python3_{7,8} ) +DISTUTILS_SINGLE_IMPL=1 +PYTHON_COMPAT=( python3_{7..9} ) inherit linux-info udev xdg distutils-r1 -DESCRIPTION="A Linux device manager for Logitech's Unifying Receiver peripherals" +DESCRIPTION="Linux Device Manager for Logitech Unifying Receivers and Paired Devices" HOMEPAGE="https://pwr-solaar.github.io/Solaar/" if [[ ${PV} =~ 9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/pwr-Solaar/Solaar" else - SRC_URI="https://github.com/pwr-Solaar/Solaar/archive/${PV}.tar.gz -> ${P}.tar.gz" + SRC_URI="https://github.com/pwr-Solaar/Solaar/archive/${PV/_rc/rc}.tar.gz -> ${P/_rc/rc}.tar.gz" KEYWORDS="~amd64 ~arm ~x86" - S="${WORKDIR}"/Solaar-${PV} # hopefully upstream fixes this in future packaging + S="${WORKDIR}"/Solaar-${PV/_rc/rc} fi LICENSE="GPL-2" SLOT="0" -IUSE="doc" +IUSE="doc appindicator libnotify" RDEPEND=" acct-group/plugdev - dev-python/pygobject:3[${PYTHON_USEDEP}] - >=dev-python/pyudev-0.13[${PYTHON_USEDEP}] - x11-libs/gtk+:3[introspection]" + $(python_gen_cond_dep ' + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/pygobject:3[${PYTHON_USEDEP}] + dev-python/python-xlib[${PYTHON_USEDEP}] + >=dev-python/pyudev-0.13[${PYTHON_USEDEP}] + dev-python/pyyaml[${PYTHON_USEDEP}] + + ') + x11-libs/gtk+:3[introspection] + appindicator? ( dev-libs/libappindicator:3[introspection] ) + libnotify? ( x11-libs/libnotify[introspection] )" +# libappindicator & libnotify are entirely optional and detected at runtime CONFIG_CHECK="~HID_LOGITECH_DJ ~HIDRAW" python_prepare_all() { # don't autostart (bug #494608) - sed -i '/yield autostart_path/d' setup.py || die + sed -i \ + -e '/yield autostart_path/d' \ + setup.py || die + + sed -i -r \ + -e '/yield.*udev.*rules.d/{s,/etc,/lib,g}' \ + setup.py || die # grant plugdev group rw access sed -i 's/#MODE=/MODE=/' rules.d/42-logitech-unify-permissions.rules || die @@ -44,10 +59,11 @@ python_prepare_all() { python_install_all() { distutils-r1_python_install_all - udev_dorules rules.d/*.rules - dodoc docs/devices.md if use doc; then dodoc -r docs/* + else + newdoc docs/index.md README.md fi + udev_dorules "${S}"/rules.d/42-logitech-unify-permissions.rules } |