summaryrefslogtreecommitdiff
path: root/sys-apps/polychromatic
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-08-07 12:37:21 +0100
committerV3n3RiX <venerix@koprulu.sector>2024-08-07 12:37:21 +0100
commitb8c7370a682e4e29cda623222d17a790c01c3642 (patch)
treef6caa14689bd00a5760eadaa381ff41e50ef3c1b /sys-apps/polychromatic
parent8a4997a7e2d1e36c089d4d76935b5a902d98d3d0 (diff)
gentoo auto-resync : 07:08:2024 - 12:37:20
Diffstat (limited to 'sys-apps/polychromatic')
-rw-r--r--sys-apps/polychromatic/Manifest2
-rw-r--r--sys-apps/polychromatic/polychromatic-0.9.2.ebuild77
2 files changed, 79 insertions, 0 deletions
diff --git a/sys-apps/polychromatic/Manifest b/sys-apps/polychromatic/Manifest
index 05b4c3e2c610..0f9ba2b84ad1 100644
--- a/sys-apps/polychromatic/Manifest
+++ b/sys-apps/polychromatic/Manifest
@@ -1,4 +1,6 @@
DIST polychromatic-0.9.1.tar.gz 1786276 BLAKE2B 46865d85aefa99ebc06ea145fe3afd3e4388d94529b8835ff4c4990d241031ee069801c7183ef89c811bde170a2211583dae7bb5bde8b3d65ebdf04421cef349 SHA512 def2d488fb52091ecddea5f11bf066efec5caf43b2c53f3b1a63d6de59c4ca9b62eb5da84faa08581050dbcc8ebcb98681b6d5c4376d04699a736d7122b79cb3
+DIST polychromatic-0.9.2.tar.gz 1786196 BLAKE2B 4495114014a8467e77e165e4946d1b56b1c4c072de2d144238c61a971193bb34d288314436ba445a5ba2c3aa94b8913d968f236ea47fa7de89fca82845cde774 SHA512 0fafac6b00e6684cf78e898da075ed2b8e5ae78af0f224072fc413e2e36453b64d002d87d4369ddeb108cf87d78154ff48605b9ec20aa75cd142b8c159b8d169
EBUILD polychromatic-0.9.1.ebuild 2070 BLAKE2B 293333df8d16d4e76f7adfa8f2f65f6bfac2bb0782c3452db047bc4661934faf1b6e6a8e36d0b5eb21505b4bcc7576dd022519581431fec7b170c3d5d2b6514a SHA512 359c066e84a796aa2d21397b0fe0af96bbfafc40d9f87f9a1e5b32a137033e51bcaa3ef49d4a1197192e120b864174ce4efb9f008113c95769950d37907d0599
+EBUILD polychromatic-0.9.2.ebuild 2071 BLAKE2B 47b2a3c11b2a524e23fe7afd494d1708c15679997197960011617ddbd94adc3dc58140561a6de759d0d333430a83046d1db0d9cf6e3366632fd407fe0ec8b2b3 SHA512 e8dff2dec0a6f4ddb5b70a0717cbf30ecf0c9da428ef28396713770b2ae0895c3483b733cc6b1d033d184959a9e8194c76ea127227edcf9eeeb85737ceeb6bc4
EBUILD polychromatic-9999.ebuild 2071 BLAKE2B 47b2a3c11b2a524e23fe7afd494d1708c15679997197960011617ddbd94adc3dc58140561a6de759d0d333430a83046d1db0d9cf6e3366632fd407fe0ec8b2b3 SHA512 e8dff2dec0a6f4ddb5b70a0717cbf30ecf0c9da428ef28396713770b2ae0895c3483b733cc6b1d033d184959a9e8194c76ea127227edcf9eeeb85737ceeb6bc4
MISC metadata.xml 993 BLAKE2B 193ed9d7f922efa078e7856084b828ff4f97d8606a1979206b3ff4a36ddcc6ff88a1adc3d0d899261fef5ae5751a1204fb27a03b0a8ff7510578f431a89a0cd2 SHA512 245f395c90cfbe36dae2bc1da5f1c6d2513ebde78a44e7a785a4bb9c01cf24ea0be81405c82eb8f4fbc34d34a4990a36359e98658d1340e47172257a867aa8db
diff --git a/sys-apps/polychromatic/polychromatic-0.9.2.ebuild b/sys-apps/polychromatic/polychromatic-0.9.2.ebuild
new file mode 100644
index 000000000000..17566f06c680
--- /dev/null
+++ b/sys-apps/polychromatic/polychromatic-0.9.2.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+
+inherit meson python-single-r1 readme.gentoo-r1 xdg
+
+DESCRIPTION="RGB lighting management software for GNU/Linux powered by OpenRazer"
+HOMEPAGE="https://polychromatic.app/
+ https://github.com/polychromatic/polychromatic/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+else
+ SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz
+ -> ${P}.tar.gz"
+
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ ${PYTHON_DEPS}
+ >=x11-libs/gtk+-3.20:3[introspection]
+ $(python_gen_cond_dep '
+ dev-python/PyQt6-WebEngine[${PYTHON_USEDEP}]
+ dev-python/PyQt6[svg,${PYTHON_USEDEP}]
+ dev-python/colorama[${PYTHON_USEDEP}]
+ dev-python/colour[${PYTHON_USEDEP}]
+ dev-python/distro[${PYTHON_USEDEP}]
+ dev-python/pygobject:3[${PYTHON_USEDEP}]
+ dev-python/requests[${PYTHON_USEDEP}]
+ dev-python/setproctitle[${PYTHON_USEDEP}]
+ sys-apps/openrazer[client,${PYTHON_USEDEP}]
+ ')
+"
+BDEPEND="
+ ${RDEPEND}
+ dev-util/intltool
+ dev-lang/sassc
+"
+
+DOC_CONTENTS="To automatically start up Polychromatic on session login copy
+/usr/share/polychromatic/polychromatic-autostart.desktop file into Your user's
+~/.config/autostart/ directory."
+
+src_test() {
+ rm -rf "locale" || die
+ ln -svf "${BUILD_DIR}/locale" "locale" || die
+ PYTHONPATH="tests:${PYTHONPATH}" "${EPYTHON}" "tests/runner.py" || die
+}
+
+src_install() {
+ meson_src_install
+ python_optimize
+ readme.gentoo_create_doc
+
+ python_doscript "${S}"/polychromatic-{cli,controller,helper,tray-applet}
+
+ # Do not force polychromatic to autostart on session login.
+ # Move it into /usr/share/polychromatic and treat it as an example file
+ # that could be installed into user's ~/.config/autostart/ directory.
+ mv "${ED}/etc/xdg/autostart/${PN}-autostart.desktop" \
+ "${ED}/usr/share/${PN}/${PN}-autostart.desktop" || die
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+ readme.gentoo_print_elog
+}