summaryrefslogtreecommitdiff
blob: 33d2a6e160f7a5cf0a56df491b2143d47c54374e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit base gnome2-utils

DESCRIPTION="Redshift adjusts screen's color temperature according to daytime"
HOMEPAGE="http://jonls.dk/redshift/"
SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gtk"

DEPEND="x11-libs/libX11[xcb]
	x11-libs/libXxf86vm
	x11-libs/libxcb
	gtk? ( dev-python/pygtk )"
RDEPEND="${DEPEND}"
DOCS="README NEWS AUTHORS ChangeLog"

src_configure() {
	econf --enable-randr \
		--enable-vidmode \
		$(use_enable gtk)
}

pkg_preinst() {
	gnome2_icon_savelist
}

pkg_postinst() {
	gnome2_icon_cache_update
}

pkg_postrm() {
	gnome2_icon_cache_update
}