diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-24 23:32:34 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-24 23:32:34 +0100 |
commit | 83c7eb1835fcfdf7072b953d23ab34f03c7e8ed6 (patch) | |
tree | d44aefcc259a6d52e3d3b0c9929f52aedd24d001 /sys-apps/polychromatic | |
parent | 7138219e3c9446bf981ff17f5609f42130bec414 (diff) |
gentoo auto-resync : 24:09:2022 - 23:32:34
Diffstat (limited to 'sys-apps/polychromatic')
-rw-r--r-- | sys-apps/polychromatic/Manifest | 4 | ||||
-rw-r--r-- | sys-apps/polychromatic/metadata.xml | 21 | ||||
-rw-r--r-- | sys-apps/polychromatic/polychromatic-0.7.3.ebuild | 67 | ||||
-rw-r--r-- | sys-apps/polychromatic/polychromatic-9999.ebuild | 67 |
4 files changed, 159 insertions, 0 deletions
diff --git a/sys-apps/polychromatic/Manifest b/sys-apps/polychromatic/Manifest new file mode 100644 index 000000000000..58f2cf612c55 --- /dev/null +++ b/sys-apps/polychromatic/Manifest @@ -0,0 +1,4 @@ +DIST polychromatic-0.7.3.tar.gz 1513522 BLAKE2B 85dab08c90843f050175de8b53c34dfab4c87dde6d7daaffb36bfad09e165aa8220a943b47ae7b09fb3c45589165051ae27b9c5e17f4c94479e6a8575b593ef4 SHA512 bdd816fcbae8ce2e12367afd455941afb754f7ddb9f6337c6b675a3059c1dc6d64b1a7809efce9b909b8aee2025b496dc0b870d2e56a09da7fde7f8b5d733c5f +EBUILD polychromatic-0.7.3.ebuild 1830 BLAKE2B a6255d3f29e102b01cf0dc93602a3a0deb436749336bc03efdaa07962c6d4f27a642281f00bbe748cff17bab917d0994501082020da8ac46cad7b98cbcb1c0d1 SHA512 3dc664819f9ad58de02d12f601da59fb32cf8055309df7553c964ccabb48ed7f9a4e2f9388f76cde0fe072a25ffeb840c8a427f718e7eca9e08daf5077fbbeae +EBUILD polychromatic-9999.ebuild 1830 BLAKE2B a6255d3f29e102b01cf0dc93602a3a0deb436749336bc03efdaa07962c6d4f27a642281f00bbe748cff17bab917d0994501082020da8ac46cad7b98cbcb1c0d1 SHA512 3dc664819f9ad58de02d12f601da59fb32cf8055309df7553c964ccabb48ed7f9a4e2f9388f76cde0fe072a25ffeb840c8a427f718e7eca9e08daf5077fbbeae +MISC metadata.xml 889 BLAKE2B 8ce971727662be8955ae194838e8985876bdd6ee07c12b1587506bda595b57aaa7313dc5ba6c337c621dcfcbbe1b8519169469f99f0cf5878902330e9c8c5dbf SHA512 660d890d895e8edaef63dfa77ee02baab65388e5533ff82d15618d8d6bcdee0966e1087667b4b4cbe2ac2547549e6c0fba8c75587bf8fb83f31a1b047813c4b4 diff --git a/sys-apps/polychromatic/metadata.xml b/sys-apps/polychromatic/metadata.xml new file mode 100644 index 000000000000..41de43439b95 --- /dev/null +++ b/sys-apps/polychromatic/metadata.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="person"> + <email>xgqt@gentoo.org</email> + <name>Maciej Barć</name> + </maintainer> + <longdescription> + Polychromatic is a vendor agnostic front-end for managing lighting, RGB + effects and some special functionality for keyboards, mice, keypads and + just about any other gaming peripheral on your GNU/Linux system. The + software aims to make it easy to create and co-ordinate lighting effects + that work across all compatible hardware, even if you switch to another + brand also supported by Polychromatic. + </longdescription> + <upstream> + <bugs-to>https://gitlab.com/polychromatic/polychromatic/-/issues/</bugs-to> + <remote-id type="gitlab">polychromatic/polychromatic</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-apps/polychromatic/polychromatic-0.7.3.ebuild b/sys-apps/polychromatic/polychromatic-0.7.3.ebuild new file mode 100644 index 000000000000..83047579b56e --- /dev/null +++ b/sys-apps/polychromatic/polychromatic-0.7.3.ebuild @@ -0,0 +1,67 @@ +# 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 + + # 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 +} diff --git a/sys-apps/polychromatic/polychromatic-9999.ebuild b/sys-apps/polychromatic/polychromatic-9999.ebuild new file mode 100644 index 000000000000..83047579b56e --- /dev/null +++ b/sys-apps/polychromatic/polychromatic-9999.ebuild @@ -0,0 +1,67 @@ +# 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 + + # 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 +} |