1 |
commit: 729f378babf59b1b8d6612a24aaff6e194ee0f6e |
2 |
Author: Conrad Kostecki <conrad <AT> kostecki <DOT> com> |
3 |
AuthorDate: Tue Sep 17 18:55:53 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Sep 18 03:33:35 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=729f378b |
7 |
|
8 |
x11-misc/xflux-gui: disable gschemas compilation |
9 |
|
10 |
Since Gentoo uses its own method for compiling gschemas, disabling this |
11 |
for that package, as otherwise it causes a file collision. |
12 |
|
13 |
Reported to upstream (patch got merged already): |
14 |
https://www.github.com/xflux-gui/fluxgui/issues/124 |
15 |
|
16 |
Closes: https://bugs.gentoo.org/691950 |
17 |
Package-Manager: Portage-2.3.76, Repoman-2.3.17 |
18 |
Signed-off-by: Conrad Kostecki <conrad <AT> kostecki.com> |
19 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
20 |
|
21 |
...xflux-gui-1.2.0-disable-gschemas-compiled.patch | 37 +++++++++++++++++ |
22 |
x11-misc/xflux-gui/xflux-gui-1.2.0-r1.ebuild | 48 ++++++++++++++++++++++ |
23 |
2 files changed, 85 insertions(+) |
24 |
|
25 |
diff --git a/x11-misc/xflux-gui/files/xflux-gui-1.2.0-disable-gschemas-compiled.patch b/x11-misc/xflux-gui/files/xflux-gui-1.2.0-disable-gschemas-compiled.patch |
26 |
new file mode 100644 |
27 |
index 00000000000..dc14be17339 |
28 |
--- /dev/null |
29 |
+++ b/x11-misc/xflux-gui/files/xflux-gui-1.2.0-disable-gschemas-compiled.patch |
30 |
@@ -0,0 +1,37 @@ |
31 |
+From 674d17b100f7b8a471d65b61749ca892567f8d58 Mon Sep 17 00:00:00 2001 |
32 |
+From: Conrad Kostecki <conrad@××××××××.com> |
33 |
+Date: Fri, 16 Aug 2019 16:02:59 +0200 |
34 |
+Subject: [PATCH] setup.py: add posbility to disable compilation of gschema |
35 |
+ |
36 |
+When you install fluxgui, it also compiles the gschema, which is for |
37 |
+most distros fine. But on source distros like Gentoo, which do the |
38 |
+compilation of gschema separately, this will lead to a file collision, |
39 |
+as packages unter Gentoo are not allowed to install such files. |
40 |
+ |
41 |
+So we introduce a new env variable called DISABLE_GSCHEMA_COMPILED which |
42 |
+needs to be set to disable this behaviour. |
43 |
+ |
44 |
+Closes: https://github.com/xflux-gui/fluxgui/issues/124 |
45 |
+Signed-off-by: Conrad Kostecki <conrad@××××××××.com> |
46 |
+--- |
47 |
+ setup.py | 7 ++++--- |
48 |
+ 1 file changed, 4 insertions(+), 3 deletions(-) |
49 |
+ |
50 |
+diff --git a/setup.py b/setup.py |
51 |
+index 8a8fa14..4bd404d 100755 |
52 |
+--- a/setup.py |
53 |
++++ b/setup.py |
54 |
+@@ -76,9 +76,10 @@ def run(self): |
55 |
+ super().run() |
56 |
+ |
57 |
+ # Compile '*.gschema.xml' to update or create 'gschemas.compiled'. |
58 |
+- info("compiling gsettings schemas") |
59 |
+- gschema_dir = os.path.join(self.install_dir, gschema_dir_suffix) |
60 |
+- self.spawn(["glib-compile-schemas", gschema_dir]) |
61 |
++ if os.environ.get('DISABLE_GSCHEMAS_COMPILED', None) is None: |
62 |
++ info("compiling gsettings schemas") |
63 |
++ gschema_dir = os.path.join(self.install_dir, gschema_dir_suffix) |
64 |
++ self.spawn(["glib-compile-schemas", gschema_dir]) |
65 |
+ |
66 |
+ setup(name = "f.lux indicator applet", |
67 |
+ version = "1.2.1~pre", |
68 |
|
69 |
diff --git a/x11-misc/xflux-gui/xflux-gui-1.2.0-r1.ebuild b/x11-misc/xflux-gui/xflux-gui-1.2.0-r1.ebuild |
70 |
new file mode 100644 |
71 |
index 00000000000..1eaaa8fe574 |
72 |
--- /dev/null |
73 |
+++ b/x11-misc/xflux-gui/xflux-gui-1.2.0-r1.ebuild |
74 |
@@ -0,0 +1,48 @@ |
75 |
+# Copyright 1999-2019 Gentoo Authors |
76 |
+# Distributed under the terms of the GNU General Public License v2 |
77 |
+ |
78 |
+EAPI=7 |
79 |
+ |
80 |
+PYTHON_COMPAT=( python3_{5,6,7} ) |
81 |
+ |
82 |
+inherit distutils-r1 gnome2-utils xdg-utils |
83 |
+ |
84 |
+DESCRIPTION="A GUI for f.lux" |
85 |
+HOMEPAGE="https://justgetflux.com/" |
86 |
+SRC_URI="https://github.com/${PN}/fluxgui/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
87 |
+ |
88 |
+LICENSE="MIT" |
89 |
+SLOT="0" |
90 |
+KEYWORDS="-* ~amd64 ~x86" |
91 |
+ |
92 |
+PATCHES=( "${FILESDIR}/${P}-disable-gschemas-compiled.patch" ) |
93 |
+ |
94 |
+RDEPEND=" |
95 |
+ dev-libs/libappindicator:3 |
96 |
+ dev-python/pexpect[${PYTHON_USEDEP}] |
97 |
+ dev-python/pygobject[${PYTHON_USEDEP}] |
98 |
+ dev-python/pyxdg[${PYTHON_USEDEP}] |
99 |
+ x11-libs/libXxf86vm |
100 |
+ x11-misc/xflux |
101 |
+" |
102 |
+ |
103 |
+S="${WORKDIR}/fluxgui-${PV}" |
104 |
+ |
105 |
+python_install() { |
106 |
+ # Don't let the package compiling the schemas, as this could cause a file collision |
107 |
+ export DISABLE_GSCHEMAS_COMPILED="true" |
108 |
+ |
109 |
+ distutils-r1_python_install |
110 |
+} |
111 |
+ |
112 |
+pkg_postinst() { |
113 |
+ gnome2_schemas_update |
114 |
+ xdg_desktop_database_update |
115 |
+ xdg_icon_cache_update |
116 |
+} |
117 |
+ |
118 |
+pkg_postrm() { |
119 |
+ gnome2_schemas_update |
120 |
+ xdg_desktop_database_update |
121 |
+ xdg_icon_cache_update |
122 |
+} |