Hi ports --
This is my "portroach rampage" contribution of the day, which is a new
term I just learned. It is a mostly straightforward update of
misc/redshift. I say mostly, because I noticed that while redshift was
compiling with cc, it was linking with gcc -- it looks for your
Objective-C compiler and uses that as the linker (and apparently
defaults to gcc). But the override is trivial.
OK?
~Brian
Index: Makefile
===================================================================
RCS file: /cvs/ports/misc/redshift/Makefile,v
retrieving revision 1.30
diff -u -p -r1.30 Makefile
--- Makefile 27 Feb 2018 23:55:31 -0000 1.30
+++ Makefile 24 May 2018 03:47:21 -0000
@@ -2,15 +2,15 @@
COMMENT= automatic color temperature adjustment
-V= 1.11
+V= 1.12
DISTNAME= redshift-$V
-REVISION= 3
CATEGORIES= misc graphics
HOMEPAGE= http://jonls.dk/redshift/
+MAINTAINER= Brian Callahan <bcal...@openbsd.org>
-# GPLv3
+# GPLv3+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB = X11 Xau Xdmcp Xext Xxf86vm c drm ffi gio-2.0 glib-2.0
@@ -40,8 +40,10 @@ RUN_DEPENDS += x11/gtk+3
SEPARATE_BUILD= Yes
USE_GMAKE= Yes
+# Inexplicably looks for the Objective-C compiler for the linker
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --enable-gui \
--disable-geoclue
+CONFIGURE_ENV= OBJC="${CC}"
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /cvs/ports/misc/redshift/distinfo,v
retrieving revision 1.8
diff -u -p -r1.8 distinfo
--- distinfo 27 Feb 2018 23:55:31 -0000 1.8
+++ distinfo 24 May 2018 03:47:21 -0000
@@ -1,2 +1,2 @@
-SHA256 (redshift-1.11.tar.xz) = EONQ+TlRwFId1vED1npIWXLDByFPA24Ams6il4/k81k=
-SIZE (redshift-1.11.tar.xz) = 377372
+SHA256 (redshift-1.12.tar.xz) = 0vjFMA484qhP5lhNLxSDqp6txmirGVGywrigPs46Iro=
+SIZE (redshift-1.12.tar.xz) = 486072
Index: patches/patch-src_gamma-drm_c
===================================================================
RCS file: patches/patch-src_gamma-drm_c
diff -N patches/patch-src_gamma-drm_c
--- patches/patch-src_gamma-drm_c 29 Aug 2014 22:07:38 -0000 1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-$OpenBSD: patch-src_gamma-drm_c,v 1.1 2014/08/29 22:07:38 ajacoutot Exp $
---- src/gamma-drm.c.orig Fri Aug 29 23:37:37 2014
-+++ src/gamma-drm.c Fri Aug 29 23:37:43 2014
-@@ -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>
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/misc/redshift/pkg/PLIST,v
retrieving revision 1.10
diff -u -p -r1.10 PLIST
--- pkg/PLIST 3 Jan 2017 18:54:48 -0000 1.10
+++ pkg/PLIST 24 May 2018 03:47:21 -0000
@@ -3,15 +3,18 @@
bin/redshift-gtk
lib/python${MODPY_VERSION}/site-packages/redshift_gtk/
lib/python${MODPY_VERSION}/site-packages/redshift_gtk/__init__.py
-lib/python${MODPY_VERSION}/site-packages/redshift_gtk/${MODPY_PYCACHE}/
+lib/python${MODPY_VERSION}/site-packages/redshift_gtk/${MODPY_PYCACHE}
lib/python${MODPY_VERSION}/site-packages/redshift_gtk/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/redshift_gtk/${MODPY_PYCACHE}__init__.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/redshift_gtk/${MODPY_PYCACHE}controller.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
+lib/python${MODPY_VERSION}/site-packages/redshift_gtk/${MODPY_PYCACHE}controller.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/redshift_gtk/${MODPY_PYCACHE}defs.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/redshift_gtk/${MODPY_PYCACHE}defs.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/redshift_gtk/${MODPY_PYCACHE}statusicon.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/redshift_gtk/${MODPY_PYCACHE}statusicon.${MODPY_PYC_MAGIC_TAG}pyc
lib/python${MODPY_VERSION}/site-packages/redshift_gtk/${MODPY_PYCACHE}utils.${MODPY_PYC_MAGIC_TAG}${MODPY_PYOEXTENSION}
lib/python${MODPY_VERSION}/site-packages/redshift_gtk/${MODPY_PYCACHE}utils.${MODPY_PYC_MAGIC_TAG}pyc
+lib/python${MODPY_VERSION}/site-packages/redshift_gtk/controller.py
lib/python${MODPY_VERSION}/site-packages/redshift_gtk/defs.py
lib/python${MODPY_VERSION}/site-packages/redshift_gtk/statusicon.py
lib/python${MODPY_VERSION}/site-packages/redshift_gtk/utils.py
@@ -24,12 +27,14 @@ share/icons/hicolor/scalable/apps/redshi
share/icons/hicolor/scalable/apps/redshift-status-on.svg
share/icons/hicolor/scalable/apps/redshift.svg
share/locale/ar/LC_MESSAGES/redshift.mo
+share/locale/be/LC_MESSAGES/redshift.mo
share/locale/bg/LC_MESSAGES/redshift.mo
share/locale/ca/LC_MESSAGES/redshift.mo
share/locale/cs/LC_MESSAGES/redshift.mo
share/locale/da/LC_MESSAGES/redshift.mo
share/locale/de/LC_MESSAGES/redshift.mo
share/locale/el/LC_MESSAGES/redshift.mo
+share/locale/en_GB/LC_MESSAGES/redshift.mo
share/locale/es/LC_MESSAGES/redshift.mo
share/locale/et/LC_MESSAGES/redshift.mo
share/locale/eu/LC_MESSAGES/redshift.mo
@@ -49,11 +54,15 @@ share/locale/nl/LC_MESSAGES/redshift.mo
share/locale/pl/LC_MESSAGES/redshift.mo
share/locale/pt/LC_MESSAGES/redshift.mo
share/locale/pt_BR/LC_MESSAGES/redshift.mo
+share/locale/ro/LC_MESSAGES/redshift.mo
share/locale/ru/LC_MESSAGES/redshift.mo
+share/locale/sr/LC_MESSAGES/redshift.mo
share/locale/sv/LC_MESSAGES/redshift.mo
share/locale/tr/LC_MESSAGES/redshift.mo
+share/locale/uk/LC_MESSAGES/redshift.mo
share/locale/zh_CN/LC_MESSAGES/redshift.mo
@exec %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@unexec-delete %D/bin/gtk-update-icon-cache -q -t %D/share/icons/hicolor
@exec %D/bin/update-desktop-database
@unexec-delete %D/bin/update-desktop-database
+share/locale/zh_TW/LC_MESSAGES/redshift.mo