Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/solaar/
Date: Sun, 28 Nov 2021 00:47:47
Message-Id: 1638060459.2c4daac3073e3ac44e6ea594d291a08f4b65374a.robbat2@gentoo
1 commit: 2c4daac3073e3ac44e6ea594d291a08f4b65374a
2 Author: Alexey Zapparov <alexey <AT> zapparov <DOT> com>
3 AuthorDate: Wed Nov 24 22:24:56 2021 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 28 00:47:39 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c4daac3
7
8 app-misc/solaar: add 1.0.7
9
10 Closes: https://bugs.gentoo.org/819081
11 Package-Manager: Portage-3.0.28, Repoman-3.0.3
12 Signed-off-by: Alexey Zapparov <alexey <AT> zapparov.com>
13 (cherry picked from commit 26847f74573724273c09a7990bb5d0cf83dff3a5)
14 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
15 Closes: https://github.com/gentoo/gentoo/pull/23071
16
17 app-misc/solaar/Manifest | 1 +
18 app-misc/solaar/solaar-1.0.7.ebuild | 69 +++++++++++++++++++++++++++++++++++++
19 2 files changed, 70 insertions(+)
20
21 diff --git a/app-misc/solaar/Manifest b/app-misc/solaar/Manifest
22 index 6b211be32604..932ba896d504 100644
23 --- a/app-misc/solaar/Manifest
24 +++ b/app-misc/solaar/Manifest
25 @@ -1 +1,2 @@
26 DIST solaar-1.0.5.tar.gz 920452 BLAKE2B 44aa0f9abd63629a5a4e737c14e468922c4aa501341717d595f045c5f40369ade6ff296120931557f1e8f04b99aa4f690454aa8f6bceaa526f370f93b312f6d6 SHA512 28603c30f0e9f2f0fe2549722062548031c69a0d9c98f732fdd8fbb51ed1d55ef033262113b2f88044a68f8b26c8c51fb0b45d4f4689fb3619e143d159618c47
27 +DIST solaar-1.0.7.tar.gz 1265664 BLAKE2B 6bb221d603dc74bf21ac44ca6611d817889285c8711c565b7393b875a934bf9125fc366569c1f677d657463484f2ec5fa077703f311ef2aec74e9f6813a5f1d7 SHA512 24b6b861f90d5747f150afb38b32041885b61cbf7df7794d780b311aef50d334347d5c5c722a0a7d5de3f91b96228e90e2a61dc108054452f46750a04340df83
28
29 diff --git a/app-misc/solaar/solaar-1.0.7.ebuild b/app-misc/solaar/solaar-1.0.7.ebuild
30 new file mode 100644
31 index 000000000000..cad0500253bc
32 --- /dev/null
33 +++ b/app-misc/solaar/solaar-1.0.7.ebuild
34 @@ -0,0 +1,69 @@
35 +# Copyright 1999-2021 Gentoo Authors
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=7
39 +
40 +DISTUTILS_SINGLE_IMPL=1
41 +PYTHON_COMPAT=( python3_{7..9} )
42 +
43 +inherit linux-info udev xdg distutils-r1
44 +
45 +DESCRIPTION="Linux Device Manager for Logitech Unifying Receivers and Paired Devices"
46 +HOMEPAGE="https://pwr-solaar.github.io/Solaar/"
47 +if [[ ${PV} =~ 9999* ]]; then
48 + inherit git-r3
49 + EGIT_REPO_URI="https://github.com/pwr-Solaar/Solaar"
50 +else
51 + SRC_URI="https://github.com/pwr-Solaar/Solaar/archive/${PV/_rc/rc}.tar.gz -> ${P/_rc/rc}.tar.gz"
52 + KEYWORDS="~amd64 ~arm ~x86"
53 + S="${WORKDIR}"/Solaar-${PV/_rc/rc}
54 +fi
55 +
56 +LICENSE="GPL-2"
57 +SLOT="0"
58 +IUSE="doc appindicator libnotify"
59 +
60 +RDEPEND="
61 + acct-group/plugdev
62 + $(python_gen_cond_dep '
63 + dev-python/psutil[${PYTHON_USEDEP}]
64 + dev-python/pygobject:3[${PYTHON_USEDEP}]
65 + dev-python/python-xlib[${PYTHON_USEDEP}]
66 + >=dev-python/pyudev-0.13[${PYTHON_USEDEP}]
67 + dev-python/pyyaml[${PYTHON_USEDEP}]
68 +
69 + ')
70 + x11-libs/gtk+:3[introspection]
71 + appindicator? ( dev-libs/libappindicator:3[introspection] )
72 + libnotify? ( x11-libs/libnotify[introspection] )"
73 +# libappindicator & libnotify are entirely optional and detected at runtime
74 +
75 +CONFIG_CHECK="~HID_LOGITECH_DJ ~HIDRAW"
76 +
77 +python_prepare_all() {
78 + # don't autostart (bug #494608)
79 + sed -i \
80 + -e '/yield autostart_path/d' \
81 + setup.py || die
82 +
83 + sed -i -r \
84 + -e '/yield.*udev.*rules.d/{s,/etc,/lib,g}' \
85 + setup.py || die
86 +
87 + # grant plugdev group rw access
88 + sed -i 's/#MODE=/MODE=/' rules.d/42-logitech-unify-permissions.rules || die
89 +
90 + distutils-r1_python_prepare_all
91 +}
92 +
93 +python_install_all() {
94 + distutils-r1_python_install_all
95 +
96 + dodoc docs/devices.md
97 + if use doc; then
98 + dodoc -r docs/*
99 + else
100 + newdoc docs/index.md README.md
101 + fi
102 + udev_dorules "${S}"/rules.d/42-logitech-unify-permissions.rules
103 +}