pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Adding redshift to wip.



Module Name:	pkgsrc-wip
Committed By:	i3enedek <pkgsrc_git%i3enedek.neomailbox.net@localhost>
Pushed By:	i3enedek
Date:		Sun Jan 31 22:54:29 2016 +0000
Changeset:	733b33dd28da50e5ee052e20371afa637850f9d9

Added Files:
	redshift/DESCR
	redshift/Makefile
	redshift/PLIST
	redshift/TODO
	redshift/distinfo
	redshift/patches/patch-src_gamma-drm.c

Log Message:
Adding redshift to wip.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=733b33dd28da50e5ee052e20371afa637850f9d9

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 redshift/DESCR                         |  3 +++
 redshift/Makefile                      | 33 +++++++++++++++++++++++++++++++++
 redshift/PLIST                         |  3 +++
 redshift/TODO                          |  1 +
 redshift/distinfo                      |  7 +++++++
 redshift/patches/patch-src_gamma-drm.c | 13 +++++++++++++
 6 files changed, 60 insertions(+)

diffs:
diff --git a/redshift/DESCR b/redshift/DESCR
new file mode 100644
index 0000000..8a8f382
--- /dev/null
+++ b/redshift/DESCR
@@ -0,0 +1,3 @@
+Redshift adjusts the color temperature of your screen according
+to your surroundings. This may help your eyes hurt less if you
+are working in front of the screen at night.
diff --git a/redshift/Makefile b/redshift/Makefile
new file mode 100644
index 0000000..cbafb90
--- /dev/null
+++ b/redshift/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD$
+
+DISTNAME=	${GITHUB_TAG}
+PKGNAME=	${GITHUB_PROJECT}${DISTNAME:S/v/-/1}
+GITHUB_TAG=	v1.11
+GITHUB_PROJECT=	redshift
+CATEGORIES=	misc
+MASTER_SITES=	${MASTER_SITE_GITHUB:=jonls/}
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://jonls.dk/redshift/
+COMMENT=	Redshift adjusts the color temperature of your screen
+LICENSE=	gnu-gpl-v3
+
+GNU_CONFIGURE=	yes
+USE_LIBTOOL=	yes
+USE_TOOLS+=	autopoint autoreconf intltoolize aclocal autoheader autoconf automake gmake intltool msgfmt pkg-config gettext
+USE_LIBTOOL=            yes
+USE_LANGUAGES=	c c++
+
+CONFIGURE_ARGS+=	--enable-drm\
+			--disable-geoclue\
+			--disable-gui
+
+pre-configure:
+	set -e; cd ${WRKSRC}; \
+	autopoint --force;  autoreconf --force --install --verbose ; intltoolize --force --automake --copy
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../x11/libxcb/buildlink3.mk"
+.include "../../x11/libdrm/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/redshift/PLIST b/redshift/PLIST
new file mode 100644
index 0000000..07f0dba
--- /dev/null
+++ b/redshift/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD$
+bin/redshift
+man/man1/redshift.1
diff --git a/redshift/TODO b/redshift/TODO
new file mode 100644
index 0000000..e8a93f7
--- /dev/null
+++ b/redshift/TODO
@@ -0,0 +1 @@
+Add the various knobs to twiddle the gui and geoip stuff on/off.
diff --git a/redshift/distinfo b/redshift/distinfo
new file mode 100644
index 0000000..cce1779
--- /dev/null
+++ b/redshift/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (redshift/v1.11.tar.gz) = b665d7e9f60e8448b444244f7d75cf23b0ee90ee
+RMD160 (redshift/v1.11.tar.gz) = 5a601a96a969e912b61f07c363f4580d136c2575
+SHA512 (redshift/v1.11.tar.gz) = bcdb4c120efec3955f4f91f1290db0679e987e25d6610bd90ee8540a96bb11338e36b10680736490ea0b7e9eca5bc195b51767a5badf0b80495dc3da44c4ed8c
+Size (redshift/v1.11.tar.gz) = 543804 bytes
+SHA1 (patch-src_gamma-drm.c) = e33e0d29e290e0472acddfcd75ba81c2bfab904d
diff --git a/redshift/patches/patch-src_gamma-drm.c b/redshift/patches/patch-src_gamma-drm.c
new file mode 100644
index 0000000..71ce5cf
--- /dev/null
+++ b/redshift/patches/patch-src_gamma-drm.c
@@ -0,0 +1,13 @@
+$NetBSD$
+
+alloca is in #include <stdlib.h>
+--- src/gamma-drm.c.orig	2016-01-02 23:09:13.000000000 +0000
++++ src/gamma-drm.c
+@@ -21,7 +21,6 @@
+ #include <stdlib.h>
+ #include <stdint.h>
+ #include <string.h>
+-#include <alloca.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <fcntl.h>


Home | Main Index | Thread Index | Old Index