1 |
commit: 5187885286ad0374ddaebcac0f56d602ac959865 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 24 20:32:31 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 24 21:10:28 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51878852 |
7 |
|
8 |
sys-apps/polychromatic: new package; add version 0.7.3 and live |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
sys-apps/polychromatic/Manifest | 1 + |
13 |
sys-apps/polychromatic/metadata.xml | 21 +++++++ |
14 |
sys-apps/polychromatic/polychromatic-0.7.3.ebuild | 67 +++++++++++++++++++++++ |
15 |
sys-apps/polychromatic/polychromatic-9999.ebuild | 67 +++++++++++++++++++++++ |
16 |
4 files changed, 156 insertions(+) |
17 |
|
18 |
diff --git a/sys-apps/polychromatic/Manifest b/sys-apps/polychromatic/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000000..cbef51a41ea3 |
21 |
--- /dev/null |
22 |
+++ b/sys-apps/polychromatic/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST polychromatic-0.7.3.tar.gz 1513522 BLAKE2B 85dab08c90843f050175de8b53c34dfab4c87dde6d7daaffb36bfad09e165aa8220a943b47ae7b09fb3c45589165051ae27b9c5e17f4c94479e6a8575b593ef4 SHA512 bdd816fcbae8ce2e12367afd455941afb754f7ddb9f6337c6b675a3059c1dc6d64b1a7809efce9b909b8aee2025b496dc0b870d2e56a09da7fde7f8b5d733c5f |
25 |
|
26 |
diff --git a/sys-apps/polychromatic/metadata.xml b/sys-apps/polychromatic/metadata.xml |
27 |
new file mode 100644 |
28 |
index 000000000000..41de43439b95 |
29 |
--- /dev/null |
30 |
+++ b/sys-apps/polychromatic/metadata.xml |
31 |
@@ -0,0 +1,21 @@ |
32 |
+<?xml version="1.0" encoding="UTF-8"?> |
33 |
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> |
34 |
+ |
35 |
+<pkgmetadata> |
36 |
+ <maintainer type="person"> |
37 |
+ <email>xgqt@g.o</email> |
38 |
+ <name>Maciej Barć</name> |
39 |
+ </maintainer> |
40 |
+ <longdescription> |
41 |
+ Polychromatic is a vendor agnostic front-end for managing lighting, RGB |
42 |
+ effects and some special functionality for keyboards, mice, keypads and |
43 |
+ just about any other gaming peripheral on your GNU/Linux system. The |
44 |
+ software aims to make it easy to create and co-ordinate lighting effects |
45 |
+ that work across all compatible hardware, even if you switch to another |
46 |
+ brand also supported by Polychromatic. |
47 |
+ </longdescription> |
48 |
+ <upstream> |
49 |
+ <bugs-to>https://gitlab.com/polychromatic/polychromatic/-/issues/</bugs-to> |
50 |
+ <remote-id type="gitlab">polychromatic/polychromatic</remote-id> |
51 |
+ </upstream> |
52 |
+</pkgmetadata> |
53 |
|
54 |
diff --git a/sys-apps/polychromatic/polychromatic-0.7.3.ebuild b/sys-apps/polychromatic/polychromatic-0.7.3.ebuild |
55 |
new file mode 100644 |
56 |
index 000000000000..83047579b56e |
57 |
--- /dev/null |
58 |
+++ b/sys-apps/polychromatic/polychromatic-0.7.3.ebuild |
59 |
@@ -0,0 +1,67 @@ |
60 |
+# Copyright 1999-2022 Gentoo Authors |
61 |
+# Distributed under the terms of the GNU General Public License v2 |
62 |
+ |
63 |
+EAPI=8 |
64 |
+ |
65 |
+PYTHON_COMPAT=( python3_{8..10} ) |
66 |
+ |
67 |
+inherit meson python-single-r1 readme.gentoo-r1 xdg |
68 |
+ |
69 |
+DESCRIPTION="RGB lighting management software for GNU/Linux powered by OpenRazer" |
70 |
+HOMEPAGE="https://polychromatic.app/ |
71 |
+ https://github.com/polychromatic/polychromatic/" |
72 |
+ |
73 |
+if [[ ${PV} == *9999* ]] ; then |
74 |
+ inherit git-r3 |
75 |
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" |
76 |
+else |
77 |
+ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz |
78 |
+ -> ${P}.tar.gz" |
79 |
+ KEYWORDS="~amd64" |
80 |
+fi |
81 |
+ |
82 |
+LICENSE="GPL-3+" |
83 |
+SLOT="0" |
84 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
85 |
+ |
86 |
+RDEPEND=" |
87 |
+ ${PYTHON_DEPS} |
88 |
+ >=x11-libs/gtk+-3.20:3[introspection] |
89 |
+ $(python_gen_cond_dep ' |
90 |
+ dev-python/PyQt5[svg,${PYTHON_USEDEP}] |
91 |
+ dev-python/PyQtWebEngine[${PYTHON_USEDEP}] |
92 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
93 |
+ dev-python/colour[${PYTHON_USEDEP}] |
94 |
+ dev-python/distro[${PYTHON_USEDEP}] |
95 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
96 |
+ dev-python/requests[${PYTHON_USEDEP}] |
97 |
+ dev-python/setproctitle[${PYTHON_USEDEP}] |
98 |
+ sys-apps/openrazer[client,${PYTHON_USEDEP}] |
99 |
+ ') |
100 |
+" |
101 |
+BDEPEND=" |
102 |
+ ${RDEPEND} |
103 |
+ dev-util/intltool |
104 |
+ dev-lang/sassc |
105 |
+" |
106 |
+ |
107 |
+DOC_CONTENTS="To automatically start up Polychromatic on session login copy |
108 |
+/usr/share/polychromatic/polychromatic-autostart.desktop file into Your user's |
109 |
+~/.config/autostart/ directory." |
110 |
+ |
111 |
+src_install() { |
112 |
+ meson_src_install |
113 |
+ python_optimize |
114 |
+ readme.gentoo_create_doc |
115 |
+ |
116 |
+ # Do not force polychromatic to autostart on session login. |
117 |
+ # Move it into /usr/share/polychromatic and treat it as an example file |
118 |
+ # that could be installed into user's ~/.config/autostart/ directory. |
119 |
+ mv "${ED}"/etc/xdg/autostart/${PN}-autostart.desktop \ |
120 |
+ "${ED}"/usr/share/${PN}/${PN}-autostart.desktop || die |
121 |
+} |
122 |
+ |
123 |
+pkg_postinst() { |
124 |
+ xdg_pkg_postinst |
125 |
+ readme.gentoo_print_elog |
126 |
+} |
127 |
|
128 |
diff --git a/sys-apps/polychromatic/polychromatic-9999.ebuild b/sys-apps/polychromatic/polychromatic-9999.ebuild |
129 |
new file mode 100644 |
130 |
index 000000000000..83047579b56e |
131 |
--- /dev/null |
132 |
+++ b/sys-apps/polychromatic/polychromatic-9999.ebuild |
133 |
@@ -0,0 +1,67 @@ |
134 |
+# Copyright 1999-2022 Gentoo Authors |
135 |
+# Distributed under the terms of the GNU General Public License v2 |
136 |
+ |
137 |
+EAPI=8 |
138 |
+ |
139 |
+PYTHON_COMPAT=( python3_{8..10} ) |
140 |
+ |
141 |
+inherit meson python-single-r1 readme.gentoo-r1 xdg |
142 |
+ |
143 |
+DESCRIPTION="RGB lighting management software for GNU/Linux powered by OpenRazer" |
144 |
+HOMEPAGE="https://polychromatic.app/ |
145 |
+ https://github.com/polychromatic/polychromatic/" |
146 |
+ |
147 |
+if [[ ${PV} == *9999* ]] ; then |
148 |
+ inherit git-r3 |
149 |
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" |
150 |
+else |
151 |
+ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz |
152 |
+ -> ${P}.tar.gz" |
153 |
+ KEYWORDS="~amd64" |
154 |
+fi |
155 |
+ |
156 |
+LICENSE="GPL-3+" |
157 |
+SLOT="0" |
158 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
159 |
+ |
160 |
+RDEPEND=" |
161 |
+ ${PYTHON_DEPS} |
162 |
+ >=x11-libs/gtk+-3.20:3[introspection] |
163 |
+ $(python_gen_cond_dep ' |
164 |
+ dev-python/PyQt5[svg,${PYTHON_USEDEP}] |
165 |
+ dev-python/PyQtWebEngine[${PYTHON_USEDEP}] |
166 |
+ dev-python/colorama[${PYTHON_USEDEP}] |
167 |
+ dev-python/colour[${PYTHON_USEDEP}] |
168 |
+ dev-python/distro[${PYTHON_USEDEP}] |
169 |
+ dev-python/pygobject:3[${PYTHON_USEDEP}] |
170 |
+ dev-python/requests[${PYTHON_USEDEP}] |
171 |
+ dev-python/setproctitle[${PYTHON_USEDEP}] |
172 |
+ sys-apps/openrazer[client,${PYTHON_USEDEP}] |
173 |
+ ') |
174 |
+" |
175 |
+BDEPEND=" |
176 |
+ ${RDEPEND} |
177 |
+ dev-util/intltool |
178 |
+ dev-lang/sassc |
179 |
+" |
180 |
+ |
181 |
+DOC_CONTENTS="To automatically start up Polychromatic on session login copy |
182 |
+/usr/share/polychromatic/polychromatic-autostart.desktop file into Your user's |
183 |
+~/.config/autostart/ directory." |
184 |
+ |
185 |
+src_install() { |
186 |
+ meson_src_install |
187 |
+ python_optimize |
188 |
+ readme.gentoo_create_doc |
189 |
+ |
190 |
+ # Do not force polychromatic to autostart on session login. |
191 |
+ # Move it into /usr/share/polychromatic and treat it as an example file |
192 |
+ # that could be installed into user's ~/.config/autostart/ directory. |
193 |
+ mv "${ED}"/etc/xdg/autostart/${PN}-autostart.desktop \ |
194 |
+ "${ED}"/usr/share/${PN}/${PN}-autostart.desktop || die |
195 |
+} |
196 |
+ |
197 |
+pkg_postinst() { |
198 |
+ xdg_pkg_postinst |
199 |
+ readme.gentoo_print_elog |
200 |
+} |