Gentoo Archives: gentoo-commits

From: "Sebastian Pipping (sping)" <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-misc/redshift: ChangeLog redshift-1.9.1.ebuild
Date: Sat, 26 Jul 2014 21:01:32
Message-Id: 20140726210127.157532004E@flycatcher.gentoo.org
1 sping 14/07/26 21:01:27
2
3 Modified: ChangeLog
4 Added: redshift-1.9.1.ebuild
5 Log:
6 x11-misc/redshift: 1.9.1 (bug #518058)
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0x401A1600)
9
10 Revision Changes Path
11 1.24 x11-misc/redshift/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/redshift/ChangeLog?rev=1.24&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/redshift/ChangeLog?rev=1.24&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/redshift/ChangeLog?r1=1.23&r2=1.24
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/x11-misc/redshift/ChangeLog,v
20 retrieving revision 1.23
21 retrieving revision 1.24
22 diff -u -r1.23 -r1.24
23 --- ChangeLog 13 Apr 2014 17:51:26 -0000 1.23
24 +++ ChangeLog 26 Jul 2014 21:01:26 -0000 1.24
25 @@ -1,6 +1,11 @@
26 # ChangeLog for x11-misc/redshift
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/x11-misc/redshift/ChangeLog,v 1.23 2014/04/13 17:51:26 sping Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/x11-misc/redshift/ChangeLog,v 1.24 2014/07/26 21:01:26 sping Exp $
30 +
31 +*redshift-1.9.1 (26 Jul 2014)
32 +
33 + 26 Jul 2014; Sebastian Pipping <sping@g.o> +redshift-1.9.1.ebuild:
34 + Bump to 1.9.1 (bug #518058)
35
36 *redshift-1.9-r1 (13 Apr 2014)
37
38
39
40
41 1.1 x11-misc/redshift/redshift-1.9.1.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/redshift/redshift-1.9.1.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/redshift/redshift-1.9.1.ebuild?rev=1.1&content-type=text/plain
45
46 Index: redshift-1.9.1.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/x11-misc/redshift/redshift-1.9.1.ebuild,v 1.1 2014/07/26 21:01:26 sping Exp $
51
52 EAPI=5
53 PYTHON_COMPAT=( python{3_2,3_3} )
54
55 inherit autotools eutils gnome2-utils python-r1
56
57 DESCRIPTION="A screen color temperature adjusting software"
58 HOMEPAGE="http://jonls.dk/redshift/"
59 SRC_URI="https://github.com/jonls/redshift/archive/v${PV}.tar.gz -> ${P}.tar.gz"
60
61 LICENSE="GPL-3"
62 SLOT="0"
63 KEYWORDS="~amd64 ~x86"
64 IUSE="geoclue gtk nls"
65
66 COMMON_DEPEND=">=x11-libs/libX11-1.4
67 x11-libs/libXxf86vm
68 x11-libs/libxcb
69 x11-libs/libdrm
70 geoclue? ( app-misc/geoclue:0 dev-libs/glib:2 )
71 gtk? ( ${PYTHON_DEPS} )"
72 RDEPEND="${COMMON_DEPEND}
73 gtk? ( dev-python/pygobject[${PYTHON_USEDEP}]
74 dev-python/pyxdg[${PYTHON_USEDEP}] )"
75 DEPEND="${COMMON_DEPEND}
76 nls? ( sys-devel/gettext )"
77
78 src_prepare() {
79 epatch_user
80 eautoreconf
81 }
82
83 src_configure() {
84 python_export_best
85
86 econf \
87 --disable-silent-rules \
88 $(use_enable nls) \
89 --enable-drm \
90 --enable-randr \
91 --enable-vidmode \
92 --disable-wingdi \
93 $(use_enable geoclue) \
94 $(use_enable gtk gui) \
95 --disable-ubuntu
96 }
97
98 _impl_specific_src_install() {
99 emake DESTDIR="${D}" pythondir="$(python_get_sitedir)" \
100 -C src/redshift-gtk install
101 }
102
103 src_install() {
104 emake DESTDIR="${D}" UPDATE_ICON_CACHE=/bin/true install
105
106 if use gtk; then
107 python_foreach_impl _impl_specific_src_install
108 python_replicate_script "${D}"/usr/bin/redshift-gtk
109 dosym redshift-gtk /usr/bin/gtk-redshift
110 fi
111 }
112
113 pkg_preinst() {
114 use gtk && gnome2_icon_savelist
115 }
116
117 pkg_postinst() {
118 use gtk && gnome2_icon_cache_update
119 }
120
121 pkg_postrm() {
122 use gtk && gnome2_icon_cache_update
123 }