summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-05-01 20:18:52 +0200
committerMaciej Barć <xgqt@gentoo.org>2023-05-01 20:46:31 +0200
commit164f33238887f37d98cf22ba3b081d4f167c9e55 (patch)
treeec091269baa0300f8299039ce28fea699e37ff69 /sys-apps/polychromatic
parentsys-apps/pciutils: add 3.10.0 (diff)
downloadgentoo-164f33238887f37d98cf22ba3b081d4f167c9e55.tar.gz
gentoo-164f33238887f37d98cf22ba3b081d4f167c9e55.tar.bz2
gentoo-164f33238887f37d98cf22ba3b081d4f167c9e55.zip
sys-apps/polychromatic: bump to 0.8.1
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'sys-apps/polychromatic')
-rw-r--r--sys-apps/polychromatic/Manifest1
-rw-r--r--sys-apps/polychromatic/polychromatic-0.8.1.ebuild69
2 files changed, 70 insertions, 0 deletions
diff --git a/sys-apps/polychromatic/Manifest b/sys-apps/polychromatic/Manifest
index a8b765da39b2..89afc66f8dce 100644
--- a/sys-apps/polychromatic/Manifest
+++ b/sys-apps/polychromatic/Manifest
@@ -1,2 +1,3 @@
DIST polychromatic-0.7.3.tar.gz 1513522 BLAKE2B 85dab08c90843f050175de8b53c34dfab4c87dde6d7daaffb36bfad09e165aa8220a943b47ae7b09fb3c45589165051ae27b9c5e17f4c94479e6a8575b593ef4 SHA512 bdd816fcbae8ce2e12367afd455941afb754f7ddb9f6337c6b675a3059c1dc6d64b1a7809efce9b909b8aee2025b496dc0b870d2e56a09da7fde7f8b5d733c5f
DIST polychromatic-0.8.0.tar.gz 1568480 BLAKE2B 26400829ef19c0155759f3fc146158631dc24379e0bde9d692f6fa0eaed8c18bc4d15e078fb8548f208d9b968a414b35fd4ad18e40f6297ce49e9cd9fc910e3b SHA512 a58e85e52a92ccb7fee837692bbf294fe376198582be0c0e982af37c3853667a80f8e67d074f0128a134ede05c4a064614036c847f8be22503e448b1385a1c5a
+DIST polychromatic-0.8.1.tar.gz 1673716 BLAKE2B 9751985ac429d5da19e829f3b17565e1c42b7859df6ce3be031e34148e1c30bcb37bee3103b038e902a818a7ade9e3cc4400570135c34229494666f9a9a6012a SHA512 61add658825f99f729e6921c41aa97b2075e5cbd3dcdabb6602a7eeb6b505a3435d9231ed163490289374bf78737544cda77d45c39f245f20f07886824ea61fa
diff --git a/sys-apps/polychromatic/polychromatic-0.8.1.ebuild b/sys-apps/polychromatic/polychromatic-0.8.1.ebuild
new file mode 100644
index 000000000000..f3045e367458
--- /dev/null
+++ b/sys-apps/polychromatic/polychromatic-0.8.1.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+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/PyQt5[svg,${PYTHON_USEDEP}]
+ dev-python/PyQtWebEngine[${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_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
+}