# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="adjusts the color temperature of your screen according to your surroundings" HOMEPAGE="http://jonls.dk/redshift/" SRC_URI="http://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.bz2" LICENSE="GPL-3" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="gtk" RDEPEND="|| ( x11-proto/randrproto x11-proto/xf86vidmodeproto ) gtk? ( dev-python/pygtk )" DEPEND="$RDEPEND" src_compile(){ econf \ $( use_enable gtk ) \ --enable-randr --enable-vidmode emake || die "emake failed" } src_install() { # make install is not sandbox-compatible, do it by hand for now... #einstall || die "einstall failed." dobin redshift dodoc README doins -r data/* if use gtk ; then dobin src/gtk-redshift/gtk-redshift insinto /usr/share fi } pkg_postinst() { ewarn "" ewarn "${PN} does not come with a man page so be sure to read" ewarn "the accompanying README file on how to use it." ewarn "You should find it at /usr/share/doc/${PN}." ewarn "" }