1 |
commit: 0a8ea97108087721f247a0790d2a4f3bc7866aa7 |
2 |
Author: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
3 |
AuthorDate: Sat Oct 29 16:56:33 2022 +0000 |
4 |
Commit: Anna Vyalkova <cyber+gentoo <AT> sysrq <DOT> in> |
5 |
CommitDate: Sat Oct 29 16:57:25 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0a8ea971 |
7 |
|
8 |
app-misc/brightness-control: add 2.4, drop 2.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/839603 |
11 |
Closes: https://bugs.gentoo.org/799566 |
12 |
Closes: https://bugs.gentoo.org/799593 |
13 |
Closes: https://bugs.gentoo.org/783051 |
14 |
Closes: https://bugs.gentoo.org/783054 |
15 |
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo <AT> sysrq.in> |
16 |
|
17 |
app-misc/brightness-control/Manifest | 2 +- |
18 |
.../brightness-control-2.0_p20210331.ebuild | 34 ----------------- |
19 |
.../brightness-control-2.4.ebuild | 43 ++++++++++++++++++++++ |
20 |
3 files changed, 44 insertions(+), 35 deletions(-) |
21 |
|
22 |
diff --git a/app-misc/brightness-control/Manifest b/app-misc/brightness-control/Manifest |
23 |
index 322081ec9..3d84f674c 100644 |
24 |
--- a/app-misc/brightness-control/Manifest |
25 |
+++ b/app-misc/brightness-control/Manifest |
26 |
@@ -1 +1 @@ |
27 |
-DIST brightness-control-2.0_p20210331.tar.gz 285852 BLAKE2B a5fb5a91498e53fe0e08a67a4dafe7b10bd5d84c73154e84f1c3c473b85765dcf21afef02a55ea1965a574cfcab99cee5fa90d923cda301be3f15350734a9985 SHA512 e8a6b9080c8929a1f3b6f0284e25f705062e11a18f1bff264b2d4a6ce8a7068c65254ce8f53801db09dc32e0f2dd436cdf01e57697eb26d0742821b8c4b46ad9 |
28 |
+DIST brightness-control-2.4.tar.gz 293989 BLAKE2B 47b89fc6b81885823b82170f57fbe6b69f52b3ec7e77613dba84ea6a46af26d0c25256d4c76410ba61db011c1401b1c6ac68f059c4189ae1c6c416e5a830941a SHA512 b16297602d99c63293b7eeb6ceb49e68d2361e47b9f4aeae4f035c0b0834aecff45d25a9e27b1ec275b42377bc32f1ea17fe68dc95417e1cca597600f7b87882 |
29 |
|
30 |
diff --git a/app-misc/brightness-control/brightness-control-2.0_p20210331.ebuild b/app-misc/brightness-control/brightness-control-2.0_p20210331.ebuild |
31 |
deleted file mode 100644 |
32 |
index b2cee3776..000000000 |
33 |
--- a/app-misc/brightness-control/brightness-control-2.0_p20210331.ebuild |
34 |
+++ /dev/null |
35 |
@@ -1,34 +0,0 @@ |
36 |
-# Copyright 2019-2022 Gentoo Authors |
37 |
-# Distributed under the terms of the GNU General Public License v2 |
38 |
- |
39 |
-EAPI=8 |
40 |
- |
41 |
-PYTHON_COMPAT=( python3_{8..10} ) |
42 |
-DISTUTILS_SINGLE_IMPL=1 |
43 |
- |
44 |
-inherit distutils-r1 desktop |
45 |
- |
46 |
-COMMIT="ea7434ae53681c591daa2ced0d107f4b4bb6f997" |
47 |
-DESCRIPTION="Qt Brightness Controller in Python" |
48 |
-HOMEPAGE="https://github.com/lordamit/Brightness" |
49 |
-SRC_URI="https://github.com/lordamit/Brightness/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" |
50 |
-S="${WORKDIR}/Brightness-${COMMIT}/src" |
51 |
- |
52 |
-KEYWORDS="~amd64 ~x86" |
53 |
-LICENSE="GPL-1" |
54 |
-SLOT="0" |
55 |
- |
56 |
-BDEPEND="$(python_gen_cond_dep \ |
57 |
- 'dev-python/cx_Freeze[${PYTHON_USEDEP}]' |
58 |
-)" |
59 |
- |
60 |
-RDEPEND="$(python_gen_cond_dep \ |
61 |
- 'dev-python/QtPy[${PYTHON_USEDEP}]' |
62 |
-)" |
63 |
- |
64 |
-python_install_all () { |
65 |
- distutils-r1_python_install_all |
66 |
- |
67 |
- doicon -s scalable icons/brightness-controller.svg |
68 |
- make_desktop_entry brightness "Brightness Controller" brightness-controller Settings |
69 |
-} |
70 |
|
71 |
diff --git a/app-misc/brightness-control/brightness-control-2.4.ebuild b/app-misc/brightness-control/brightness-control-2.4.ebuild |
72 |
new file mode 100644 |
73 |
index 000000000..9a6e573c8 |
74 |
--- /dev/null |
75 |
+++ b/app-misc/brightness-control/brightness-control-2.4.ebuild |
76 |
@@ -0,0 +1,43 @@ |
77 |
+# Copyright 2019-2022 Gentoo Authors |
78 |
+# Distributed under the terms of the GNU General Public License v2 |
79 |
+ |
80 |
+EAPI=8 |
81 |
+ |
82 |
+PYTHON_COMPAT=( python3_{8..11} ) |
83 |
+DISTUTILS_USE_PEP517=poetry |
84 |
+DISTUTILS_SINGLE_IMPL=1 |
85 |
+ |
86 |
+inherit distutils-r1 desktop optfeature |
87 |
+ |
88 |
+MY_PN="Brightness" |
89 |
+DESCRIPTION="Qt Brightness Controller in Python" |
90 |
+HOMEPAGE="https://github.com/lordamit/Brightness" |
91 |
+SRC_URI="https://github.com/lordamit/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
92 |
+S="${WORKDIR}/${MY_PN}-${PV}/brightness-controller-linux" |
93 |
+ |
94 |
+KEYWORDS="~amd64 ~x86" |
95 |
+LICENSE="GPL-3" |
96 |
+SLOT="0" |
97 |
+ |
98 |
+RDEPEND="$(python_gen_cond_dep \ |
99 |
+ 'dev-python/QtPy[${PYTHON_USEDEP},gui,network,pyqt5,widgets]' |
100 |
+)" |
101 |
+ |
102 |
+distutils_enable_tests pytest |
103 |
+ |
104 |
+python_prepare_all() { |
105 |
+ distutils-r1_python_prepare_all |
106 |
+ |
107 |
+ sed "/readme.md/d" -i pyproject.toml || die |
108 |
+} |
109 |
+ |
110 |
+python_install_all () { |
111 |
+ distutils-r1_python_install_all |
112 |
+ |
113 |
+ doicon -s scalable brightness_controller_linux/icons/brightness-controller.svg |
114 |
+ make_desktop_entry brightness-controller "Brightness Controller" brightness-controller Settings |
115 |
+} |
116 |
+ |
117 |
+pkg_postinst() { |
118 |
+ optfeature "direct control" app-misc/ddcutil |
119 |
+} |