Gentoo Archives: gentoo-commits

From: Conrad Kostecki <conikost@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/xflux-gui/
Date: Thu, 03 Nov 2022 22:37:47
Message-Id: 1667515036.e9aa3ce24709f90f3e3c4e2c718c436ab7ea9bc8.conikost@gentoo
1 commit: e9aa3ce24709f90f3e3c4e2c718c436ab7ea9bc8
2 Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
3 AuthorDate: Thu Nov 3 22:29:19 2022 +0000
4 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
5 CommitDate: Thu Nov 3 22:37:16 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9aa3ce2
7
8 x11-misc/xflux-gui: add 2.0
9
10 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
11
12 x11-misc/xflux-gui/Manifest | 1 +
13 x11-misc/xflux-gui/xflux-gui-2.0.ebuild | 47 +++++++++++++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/x11-misc/xflux-gui/Manifest b/x11-misc/xflux-gui/Manifest
17 index 920d5083f8cb..f64818024827 100644
18 --- a/x11-misc/xflux-gui/Manifest
19 +++ b/x11-misc/xflux-gui/Manifest
20 @@ -1 +1,2 @@
21 DIST xflux-gui-1.2.0.tar.gz 31831 BLAKE2B ad6b29f75cf5c287efdb4c1eaa12610a6fd2d4515e7f77cb991f0140d9de1128981ae274a1503f7c5bb83ff84f8dc124ba64e5abdd2e97c1d7157c84df51bead SHA512 244c11efbf58112d3d84209142faafbbe46b33df1edf13e122945ff767fc6a394c147979c0086bd88cb41ee7c80b5bd87016b3e158f3a959f3aca8bda47707d2
22 +DIST xflux-gui-2.0.tar.gz 35805 BLAKE2B 7a15371d682b31c900f35bebd36e12b70d6095c4cdc9c33f43bad031d72b82d8d3800f7f34f7e31965725dfe075dc6934512eeced98aa685d0023a57dfb61103 SHA512 4a5235feecb06ee95d28d4c05bb710014aea120943b3cbe23f2d2130486de82295891d8211a02e52385edb577da3438dd1c2ba45b209ab4359eb3469df08eade
23
24 diff --git a/x11-misc/xflux-gui/xflux-gui-2.0.ebuild b/x11-misc/xflux-gui/xflux-gui-2.0.ebuild
25 new file mode 100644
26 index 000000000000..442492423668
27 --- /dev/null
28 +++ b/x11-misc/xflux-gui/xflux-gui-2.0.ebuild
29 @@ -0,0 +1,47 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=8
34 +
35 +DISTUTILS_USE_PEP517="setuptools"
36 +PYTHON_COMPAT=( python3_{8..11} )
37 +
38 +inherit distutils-r1 gnome2-utils xdg-utils
39 +
40 +DESCRIPTION="A GUI for f.lux"
41 +HOMEPAGE="https://github.com/xflux-gui/fluxgui/"
42 +SRC_URI="https://github.com/${PN}/fluxgui/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
43 +S="${WORKDIR}/fluxgui-${PV}"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="-* ~amd64 ~x86"
48 +
49 +RDEPEND="
50 + dev-libs/libappindicator:3
51 + dev-python/pexpect[${PYTHON_USEDEP}]
52 + dev-python/pygobject[${PYTHON_USEDEP}]
53 + dev-python/pyxdg[${PYTHON_USEDEP}]
54 + x11-libs/libXxf86vm
55 + x11-misc/xflux
56 +"
57 +
58 +python_compile() {
59 + # Don't let the package compiling the schemas,
60 + # as this could cause a file collision
61 + export DISABLE_GSCHEMAS_COMPILED="true"
62 +
63 + distutils-r1_python_compile
64 +}
65 +
66 +pkg_postinst() {
67 + gnome2_schemas_update
68 + xdg_desktop_database_update
69 + xdg_icon_cache_update
70 +}
71 +
72 +pkg_postrm() {
73 + gnome2_schemas_update
74 + xdg_desktop_database_update
75 + xdg_icon_cache_update
76 +}