From 789ec2de829c746a870cb200260b7818cb05ea84 Mon Sep 17 00:00:00 2001 From: pulux Date: Mon, 23 Mar 2015 18:15:13 +0100 Subject: [PATCH 1/2] redshift: update to 1.10 and add build_options=geoclue --- srcpkgs/redshift/template | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/srcpkgs/redshift/template b/srcpkgs/redshift/template index 7ea6b3b92a1..972bbc18db7 100644 --- a/srcpkgs/redshift/template +++ b/srcpkgs/redshift/template @@ -1,12 +1,12 @@ # Template file for 'redshift' pkgname=redshift -version=1.8 -revision=2 +version=1.10 +revision=1 build_style=gnu-configure -configure_args="--enable-geoclue" -hostmakedepends="pkg-config automake libtool gettext-devel git" -makedepends="GConf-devel libXxf86vm-devel pygtk-devel python-xdg geoclue-devel>=0.12.0_7" -short_desc="Adjusts the color temperature of your screen according to your surroundings" +hostmakedepends="pkg-config automake libtool gettext-devel git intltool" +configure_args="--enable-gui $(vopt_if geoclue --enable-geoclue)" +makedepends="libXxf86vm-devel $(vopt_if geoclue geoclue-devel) $(vopt_if geoclue GConf-devel) python3.4 pygtk-devel python-xdg" +short_desc="Adjusts the color temperature of your screen to your surroundings" maintainer="Juan RP " license="GPL-3" homepage="http://jonls.dk/redshift/" @@ -15,12 +15,14 @@ do_fetch() { git clone -b v${version} git://github.com/jonls/redshift.git redshift-${version} } +# Package build options +build_options="geoclue" + pre_configure() { ./bootstrap } - redshift-gtk_package() { - depends="pygtk python-xdg hicolor-icon-theme desktop-file-utils ${sourcepkg}>=${version}_${revision}" + depends="python3.4 pygtk python-xdg hicolor-icon-theme desktop-file-utils ${sourcepkg}>=${version}_${revision}" pycompile_module="redshift_gtk" short_desc+=" - GTK+ UI" pkg_install() { From e53a2241af49bf3d769d491ac9ce4742407d009a Mon Sep 17 00:00:00 2001 From: pulux Date: Wed, 25 Mar 2015 06:23:18 +0100 Subject: [PATCH 2/2] simplyfied build_options --- srcpkgs/redshift/template | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/srcpkgs/redshift/template b/srcpkgs/redshift/template index 972bbc18db7..cefc64098d6 100644 --- a/srcpkgs/redshift/template +++ b/srcpkgs/redshift/template @@ -4,8 +4,8 @@ version=1.10 revision=1 build_style=gnu-configure hostmakedepends="pkg-config automake libtool gettext-devel git intltool" -configure_args="--enable-gui $(vopt_if geoclue --enable-geoclue)" -makedepends="libXxf86vm-devel $(vopt_if geoclue geoclue-devel) $(vopt_if geoclue GConf-devel) python3.4 pygtk-devel python-xdg" +configure_args="--enable-gui $(vopt_enable geoclue)" +makedepends="libXxf86vm-devel $(vopt_if geoclue "geoclue-devel GConf-devel") python3.4 pygtk-devel python-xdg" short_desc="Adjusts the color temperature of your screen to your surroundings" maintainer="Juan RP " license="GPL-3"