diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-12-04 19:23:32 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-12-04 19:28:50 +0100 |
commit | bf4ac1cc609e9b0f0149a2b32a83a9042da7a6bc (patch) | |
tree | 5ba4cd461fc68ed2617373f60227ce20568a37af /sys-apps/polychromatic | |
parent | net-vpn/strongswan: Stabilize 5.9.8 arm, #884213 (diff) | |
download | gentoo-bf4ac1cc609e9b0f0149a2b32a83a9042da7a6bc.tar.gz gentoo-bf4ac1cc609e9b0f0149a2b32a83a9042da7a6bc.tar.bz2 gentoo-bf4ac1cc609e9b0f0149a2b32a83a9042da7a6bc.zip |
sys-apps/polychromatic: bump to 0.8.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'sys-apps/polychromatic')
-rw-r--r-- | sys-apps/polychromatic/Manifest | 1 | ||||
-rw-r--r-- | sys-apps/polychromatic/polychromatic-0.8.0.ebuild | 69 |
2 files changed, 70 insertions, 0 deletions
diff --git a/sys-apps/polychromatic/Manifest b/sys-apps/polychromatic/Manifest index cbef51a41ea3..a8b765da39b2 100644 --- a/sys-apps/polychromatic/Manifest +++ b/sys-apps/polychromatic/Manifest @@ -1 +1,2 @@ DIST polychromatic-0.7.3.tar.gz 1513522 BLAKE2B 85dab08c90843f050175de8b53c34dfab4c87dde6d7daaffb36bfad09e165aa8220a943b47ae7b09fb3c45589165051ae27b9c5e17f4c94479e6a8575b593ef4 SHA512 bdd816fcbae8ce2e12367afd455941afb754f7ddb9f6337c6b675a3059c1dc6d64b1a7809efce9b909b8aee2025b496dc0b870d2e56a09da7fde7f8b5d733c5f +DIST polychromatic-0.8.0.tar.gz 1568480 BLAKE2B 26400829ef19c0155759f3fc146158631dc24379e0bde9d692f6fa0eaed8c18bc4d15e078fb8548f208d9b968a414b35fd4ad18e40f6297ce49e9cd9fc910e3b SHA512 a58e85e52a92ccb7fee837692bbf294fe376198582be0c0e982af37c3853667a80f8e67d074f0128a134ede05c4a064614036c847f8be22503e448b1385a1c5a diff --git a/sys-apps/polychromatic/polychromatic-0.8.0.ebuild b/sys-apps/polychromatic/polychromatic-0.8.0.ebuild new file mode 100644 index 000000000000..498b9988577d --- /dev/null +++ b/sys-apps/polychromatic/polychromatic-0.8.0.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) + +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 +} |