diff --git a/accessibility/redshift/Makefile b/accessibility/redshift/Makefile index 037aa5cab9d3..da664c13002b 100644 --- a/accessibility/redshift/Makefile +++ b/accessibility/redshift/Makefile @@ -2,10 +2,9 @@ # $FreeBSD$ PORTNAME= redshift -PORTVERSION= 1.7 -PORTREVISION= 4 +PORTVERSION= 1.11 CATEGORIES= accessibility -MASTER_SITES= http://launchpad.net/redshift/trunk/${PORTVERSION}/+download/ +DISTVERSIONPREFIX= v MAINTAINER= swills@FreeBSD.org COMMENT= Adjusts the color temperature of your screen @@ -13,13 +12,23 @@ COMMENT= Adjusts the color temperature of your screen LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/COPYING -USES= gmake pkgconfig shebangfix tar:bzip2 +USES= gettext gmake libtool localbase pkgconfig shebangfix tar:bzip2 +USE_GITHUB= yes +GH_ACCOUNT= jonls GNU_CONFIGURE= yes INSTALLS_ICONS= yes -SHEBANG_FILES= src/gtk-redshift/gtk-redshift +SHEBANG_FILES= src/redshift-gtk/redshift-gtk.in CONFIGURE_ARGS+= --disable-wingdi +BUILD_DEPENDS= autoconf-2.69:devel/autoconf \ + automake-1.15:devel/automake \ + libtoolize:devel/libtool \ + intltool>=0:textproc/intltool + +LIB_DEPENDS= libdrm.so:graphics/libdrm \ + libgeoclue-2.so:net/geoclue + OPTIONS_DEFINE= GNOME GUI NLS RANDR VIDMODE OPTIONS_DEFAULT=RANDR OPTIONS_SUB= yes @@ -31,7 +40,7 @@ VIDMODE_DESC= Support VIDMODE for changing colors (NVIDIA) USE_XORG+= x11 xcb -NLS_USES= gettext iconv +NLS_USES= iconv NLS_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG} \ --with-libintl-prefix=${LOCALBASE} NLS_CONFIGURE_OFF= --disable-nls @@ -42,12 +51,16 @@ RANDR_CONFIGURE_ENABLE= randr VIDMODE_USE= XORG=xxf86vm VIDMODE_CONFIGURE_ENABLE= vidmode -GUI_USES= python:2.7 +GUI_USES= python:3.6+ GUI_CONFIGURE_ENABLE= gui -GUI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gtk2>0:x11-toolkits/py-gtk2@${PY_FLAVOR} \ +GUI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR} + GNOME_CONFIGURE_ENABLE= gnome-clock GNOME_USE= GNOME=glib20,gconf2 +pre-configure: + @cd ${WRKSRC} ; ./bootstrap + .include diff --git a/accessibility/redshift/distinfo b/accessibility/redshift/distinfo index 3d11c6037b23..a5b0d55f8feb 100644 --- a/accessibility/redshift/distinfo +++ b/accessibility/redshift/distinfo @@ -1,2 +1,3 @@ -SHA256 (redshift-1.7.tar.bz2) = 9bfa3c3d4a9ce6ea06a5e6235ab4e8215a456c08d6e7451c0389456a37d010c8 -SIZE (redshift-1.7.tar.bz2) = 269820 +TIMESTAMP = 1525880857 +SHA256 (jonls-redshift-v1.11_GH0.tar.gz) = a89cee0dc822fa2bfda0703d8ecedeccc08da3aebdf1880593f28da81c3dc879 +SIZE (jonls-redshift-v1.11_GH0.tar.gz) = 543804 diff --git a/accessibility/redshift/files/patch-src_gamma-drm.c b/accessibility/redshift/files/patch-src_gamma-drm.c new file mode 100644 index 000000000000..c11b62e8f04d --- /dev/null +++ b/accessibility/redshift/files/patch-src_gamma-drm.c @@ -0,0 +1,10 @@ +--- src/gamma-drm.c.orig 2018-05-09 16:23:00 UTC ++++ src/gamma-drm.c +@@ -21,7 +21,6 @@ + #include + #include + #include +-#include + #include + #include + #include diff --git a/accessibility/redshift/pkg-plist b/accessibility/redshift/pkg-plist index 4d8472b8bfe9..6c74bfb01132 100644 --- a/accessibility/redshift/pkg-plist +++ b/accessibility/redshift/pkg-plist @@ -1,38 +1,51 @@ bin/redshift man/man1/redshift.1.gz -share/icons/hicolor/scalable/apps/redshift.svg -share/icons/hicolor/scalable/apps/redshift-status-off.svg -share/icons/hicolor/scalable/apps/redshift-status-on.svg +%%GUI%%share/icons/hicolor/scalable/apps/redshift.svg +%%GUI%%share/icons/hicolor/scalable/apps/redshift-status-off.svg +%%GUI%%share/icons/hicolor/scalable/apps/redshift-status-on.svg +%%GUI%%share/appdata/redshift-gtk.appdata.xml +%%GUI%%share/applications/redshift-gtk.desktop +%%GUI%%share/applications/redshift.desktop %%NLS%%share/locale/ar/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/bg/LC_MESSAGES/redshift.mo %%NLS%%share/locale/ca/LC_MESSAGES/redshift.mo -%%NLS%%share/locale/gl/LC_MESSAGES/redshift.mo -%%NLS%%share/locale/nl/LC_MESSAGES/redshift.mo -%%NLS%%share/locale/pl/LC_MESSAGES/redshift.mo %%NLS%%share/locale/cs/LC_MESSAGES/redshift.mo %%NLS%%share/locale/da/LC_MESSAGES/redshift.mo %%NLS%%share/locale/de/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/el/LC_MESSAGES/redshift.mo %%NLS%%share/locale/es/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/et/LC_MESSAGES/redshift.mo %%NLS%%share/locale/eu/LC_MESSAGES/redshift.mo %%NLS%%share/locale/fi/LC_MESSAGES/redshift.mo %%NLS%%share/locale/fr/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/gl/LC_MESSAGES/redshift.mo %%NLS%%share/locale/he/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/hi/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/hr/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/hu/LC_MESSAGES/redshift.mo %%NLS%%share/locale/it/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/ja/LC_MESSAGES/redshift.mo %%NLS%%share/locale/ka/LC_MESSAGES/redshift.mo %%NLS%%share/locale/lt/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/nb/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/nl/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/pl/LC_MESSAGES/redshift.mo %%NLS%%share/locale/pt_BR/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/pt/LC_MESSAGES/redshift.mo %%NLS%%share/locale/ru/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/sv/LC_MESSAGES/redshift.mo +%%NLS%%share/locale/tr/LC_MESSAGES/redshift.mo %%NLS%%share/locale/zh_CN/LC_MESSAGES/redshift.mo -%%GUI%%bin/gtk-redshift -%%GUI%%%%PYTHON_SITELIBDIR%%/gtk_redshift/__init__.py -%%GUI%%%%PYTHON_SITELIBDIR%%/gtk_redshift/__init__.pyc -%%GUI%%%%PYTHON_SITELIBDIR%%/gtk_redshift/__init__.pyo -%%GUI%%%%PYTHON_SITELIBDIR%%/gtk_redshift/defs.py -%%GUI%%%%PYTHON_SITELIBDIR%%/gtk_redshift/defs.pyc -%%GUI%%%%PYTHON_SITELIBDIR%%/gtk_redshift/defs.pyo -%%GUI%%%%PYTHON_SITELIBDIR%%/gtk_redshift/statusicon.py -%%GUI%%%%PYTHON_SITELIBDIR%%/gtk_redshift/statusicon.pyc -%%GUI%%%%PYTHON_SITELIBDIR%%/gtk_redshift/statusicon.pyo -%%GUI%%%%PYTHON_SITELIBDIR%%/gtk_redshift/utils.py -%%GUI%%%%PYTHON_SITELIBDIR%%/gtk_redshift/utils.pyc -%%GUI%%%%PYTHON_SITELIBDIR%%/gtk_redshift/utils.pyo -%%GUI%%share/applications/gtk-redshift.desktop +%%GUI%%%%PYTHON_SITELIBDIR%%/redshift_gtk/__init__.py +%%GUI%%%%PYTHON_SITELIBDIR%%/redshift_gtk/__pycache__/__init__.cpython-36.%%PYTHON_PYOEXTENSION%% +%%GUI%%%%PYTHON_SITELIBDIR%%/redshift_gtk/__pycache__/__init__.cpython-36.pyc +%%GUI%%%%PYTHON_SITELIBDIR%%/redshift_gtk/__pycache__/defs.cpython-36.%%PYTHON_PYOEXTENSION%% +%%GUI%%%%PYTHON_SITELIBDIR%%/redshift_gtk/__pycache__/defs.cpython-36.pyc +%%GUI%%%%PYTHON_SITELIBDIR%%/redshift_gtk/__pycache__/statusicon.cpython-36.%%PYTHON_PYOEXTENSION%% +%%GUI%%%%PYTHON_SITELIBDIR%%/redshift_gtk/__pycache__/statusicon.cpython-36.pyc +%%GUI%%%%PYTHON_SITELIBDIR%%/redshift_gtk/__pycache__/utils.cpython-36.%%PYTHON_PYOEXTENSION%% +%%GUI%%%%PYTHON_SITELIBDIR%%/redshift_gtk/__pycache__/utils.cpython-36.pyc +%%GUI%%%%PYTHON_SITELIBDIR%%/redshift_gtk/defs.py +%%GUI%%%%PYTHON_SITELIBDIR%%/redshift_gtk/statusicon.py +%%GUI%%%%PYTHON_SITELIBDIR%%/redshift_gtk/utils.py +%%GUI%%bin/redshift-gtk