commit: 61cb79cd5c1e0c7f8d4b337b4fa12941190bd710 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Tue Jul 30 21:15:54 2024 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Wed Jul 31 00:02:52 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61cb79cd
sys-apps/polychromatic: bump to 0.9.2 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> sys-apps/polychromatic/Manifest | 1 + sys-apps/polychromatic/polychromatic-0.9.2.ebuild | 77 +++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/sys-apps/polychromatic/Manifest b/sys-apps/polychromatic/Manifest index ba84c4beb233..5d557586d186 100644 --- a/sys-apps/polychromatic/Manifest +++ b/sys-apps/polychromatic/Manifest @@ -1 +1,2 @@ DIST polychromatic-0.9.1.tar.gz 1786276 BLAKE2B 46865d85aefa99ebc06ea145fe3afd3e4388d94529b8835ff4c4990d241031ee069801c7183ef89c811bde170a2211583dae7bb5bde8b3d65ebdf04421cef349 SHA512 def2d488fb52091ecddea5f11bf066efec5caf43b2c53f3b1a63d6de59c4ca9b62eb5da84faa08581050dbcc8ebcb98681b6d5c4376d04699a736d7122b79cb3 +DIST polychromatic-0.9.2.tar.gz 1786196 BLAKE2B 4495114014a8467e77e165e4946d1b56b1c4c072de2d144238c61a971193bb34d288314436ba445a5ba2c3aa94b8913d968f236ea47fa7de89fca82845cde774 SHA512 0fafac6b00e6684cf78e898da075ed2b8e5ae78af0f224072fc413e2e36453b64d002d87d4369ddeb108cf87d78154ff48605b9ec20aa75cd142b8c159b8d169 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 +}