1 |
commit: fb6b2788618c34808d25853f4625afb63a7d0bcc |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 3 04:15:04 2016 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 3 04:16:30 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb6b2788 |
7 |
|
8 |
x11-misc/redshift: 1.11 (bug #568164) |
9 |
|
10 |
x11-misc/redshift/Manifest | 1 + |
11 |
x11-misc/redshift/redshift-1.11.ebuild | 86 ++++++++++++++++++++++++++++++++++ |
12 |
2 files changed, 87 insertions(+) |
13 |
|
14 |
diff --git a/x11-misc/redshift/Manifest b/x11-misc/redshift/Manifest |
15 |
index f4580aa..f4c71a7 100644 |
16 |
--- a/x11-misc/redshift/Manifest |
17 |
+++ b/x11-misc/redshift/Manifest |
18 |
@@ -1 +1,2 @@ |
19 |
DIST redshift-1.10.tar.gz 519595 SHA256 f7a1ca1eccf662995737e14f894c2b15193923fbbe378d151e346a8013644f16 SHA512 0fd3867d883268279b6297a0eec1bcdc20022a893b935fd4767fbfc0797ad044777af4cf1efcfec7a1f362306ae88869f73b20c91b29844e9e201881c5b56260 WHIRLPOOL 3aa705a5afedb4ebb7fcab98afec0d69ea5c8c7cd280eee72fc2aff260df85d00b0af722ce6fc1e3e04d000e30d37eb2ddca8b82d6a25e9d587f4e0d98bfc626 |
20 |
+DIST redshift-1.11.tar.gz 543804 SHA256 a89cee0dc822fa2bfda0703d8ecedeccc08da3aebdf1880593f28da81c3dc879 SHA512 bcdb4c120efec3955f4f91f1290db0679e987e25d6610bd90ee8540a96bb11338e36b10680736490ea0b7e9eca5bc195b51767a5badf0b80495dc3da44c4ed8c WHIRLPOOL c8bb70fde237bc7fc841d9272c029fe92c7ad564711a377a578cb6c126ae5a24d2756d3df3dc2de8053738301170040284c65a5e1da66fb29755a8e4a4bf5f17 |
21 |
|
22 |
diff --git a/x11-misc/redshift/redshift-1.11.ebuild b/x11-misc/redshift/redshift-1.11.ebuild |
23 |
new file mode 100644 |
24 |
index 0000000..e27ddad |
25 |
--- /dev/null |
26 |
+++ b/x11-misc/redshift/redshift-1.11.ebuild |
27 |
@@ -0,0 +1,86 @@ |
28 |
+# Copyright 1999-2016 Gentoo Foundation |
29 |
+# Distributed under the terms of the GNU General Public License v2 |
30 |
+# $Id$ |
31 |
+ |
32 |
+EAPI=5 |
33 |
+PYTHON_COMPAT=( python{3_3,3_4} ) |
34 |
+ |
35 |
+inherit systemd autotools eutils gnome2-utils python-r1 |
36 |
+ |
37 |
+DESCRIPTION="A screen color temperature adjusting software" |
38 |
+HOMEPAGE="http://jonls.dk/redshift/" |
39 |
+SRC_URI="https://github.com/jonls/redshift/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="GPL-3" |
42 |
+SLOT="0" |
43 |
+KEYWORDS="~amd64 ~x86" |
44 |
+IUSE="appindicator geoclue gtk nls" |
45 |
+ |
46 |
+COMMON_DEPEND=">=x11-libs/libX11-1.4 |
47 |
+ x11-libs/libXxf86vm |
48 |
+ x11-libs/libxcb |
49 |
+ x11-libs/libdrm |
50 |
+ geoclue? ( app-misc/geoclue:2.0 dev-libs/glib:2 ) |
51 |
+ gtk? ( ${PYTHON_DEPS} )" |
52 |
+RDEPEND="${COMMON_DEPEND} |
53 |
+ gtk? ( dev-python/pygobject[${PYTHON_USEDEP}] |
54 |
+ x11-libs/gtk+:3[introspection] |
55 |
+ dev-python/pyxdg[${PYTHON_USEDEP}] )" |
56 |
+DEPEND="${COMMON_DEPEND} |
57 |
+ >=dev-util/intltool-0.50 |
58 |
+ nls? ( sys-devel/gettext ) |
59 |
+ appindicator? ( dev-libs/libappindicator ) |
60 |
+" |
61 |
+ |
62 |
+src_prepare() { |
63 |
+ epatch_user |
64 |
+ eautoreconf |
65 |
+} |
66 |
+ |
67 |
+src_configure() { |
68 |
+ python_export_best |
69 |
+ |
70 |
+ econf \ |
71 |
+ --disable-silent-rules \ |
72 |
+ $(use_enable nls) \ |
73 |
+ --enable-drm \ |
74 |
+ --enable-randr \ |
75 |
+ --enable-vidmode \ |
76 |
+ --disable-wingdi \ |
77 |
+ \ |
78 |
+ --disable-corelocation \ |
79 |
+ --disable-geoclue \ |
80 |
+ $(use_enable geoclue geoclue2) \ |
81 |
+ \ |
82 |
+ $(use_enable gtk gui) \ |
83 |
+ --with-systemduserunitdir="$(systemd_get_userunitdir)" \ |
84 |
+ --disable-quartz \ |
85 |
+ --disable-ubuntu |
86 |
+} |
87 |
+ |
88 |
+_impl_specific_src_install() { |
89 |
+ emake DESTDIR="${D}" pythondir="$(python_get_sitedir)" \ |
90 |
+ -C src/redshift-gtk install |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ emake DESTDIR="${D}" UPDATE_ICON_CACHE=/bin/true install |
95 |
+ |
96 |
+ if use gtk; then |
97 |
+ python_foreach_impl _impl_specific_src_install |
98 |
+ python_replicate_script "${D}"/usr/bin/redshift-gtk |
99 |
+ dosym redshift-gtk /usr/bin/gtk-redshift |
100 |
+ fi |
101 |
+} |
102 |
+ |
103 |
+pkg_preinst() { |
104 |
+ use gtk && gnome2_icon_savelist |
105 |
+} |
106 |
+ |
107 |
+pkg_postinst() { |
108 |
+ use gtk && gnome2_icon_cache_update |
109 |
+} |
110 |
+ |
111 |
+pkg_postrm() { |
112 |
+ use gtk && gnome2_icon_cache_update |
113 |
+} |