Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Jun 2024 17:17:46 GMT
From:      Guido Falsi <madpilot@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 5618ba6e3622 - main - accessability/gammastep: Adjust the color temperature of your screen
Message-ID:  <202406151717.45FHHkeb007313@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by madpilot:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5618ba6e3622465d648bf5e26b63fb6dab5d6b29

commit 5618ba6e3622465d648bf5e26b63fb6dab5d6b29
Author:     Guido Falsi <madpilot@FreeBSD.org>
AuthorDate: 2024-06-15 17:17:19 +0000
Commit:     Guido Falsi <madpilot@FreeBSD.org>
CommitDate: 2024-06-15 17:17:19 +0000

    accessability/gammastep: Adjust the color temperature of your screen
    
    This is very similar to accessability/redshift, and can be used as
    a replacement for it.
    
    Suggested by:   diizzy@
---
 accessibility/Makefile                             |  1 +
 accessibility/gammastep/Makefile                   | 60 ++++++++++++++++++++++
 accessibility/gammastep/distinfo                   |  3 ++
 accessibility/gammastep/files/patch-src_gamma-wl.c | 14 +++++
 accessibility/gammastep/pkg-descr                  |  3 ++
 accessibility/gammastep/pkg-plist                  | 60 ++++++++++++++++++++++
 6 files changed, 141 insertions(+)

diff --git a/accessibility/Makefile b/accessibility/Makefile
index 14f22b11d08a..fa0b2f32bfd5 100644
--- a/accessibility/Makefile
+++ b/accessibility/Makefile
@@ -8,6 +8,7 @@
     SUBDIR += eflite
     SUBDIR += feedbackd
     SUBDIR += gammy
+    SUBDIR += gammastep
     SUBDIR += kdeaccessibility
     SUBDIR += kmag
     SUBDIR += kmousetool
diff --git a/accessibility/gammastep/Makefile b/accessibility/gammastep/Makefile
new file mode 100644
index 000000000000..5e16f7c1da96
--- /dev/null
+++ b/accessibility/gammastep/Makefile
@@ -0,0 +1,60 @@
+PORTNAME=	gammastep
+PORTVERSION=	2.0.9
+DISTVERSIONPREFIX=	v
+CATEGORIES=	accessibility
+
+MAINTAINER=	madpilot@FreeBSD.org
+COMMENT=	Adjust the color temperature of your screen
+WWW=		https://gitlab.com/chinstrap/gammastep
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	libdrm.so:graphics/libdrm
+
+USES=			autoreconf gettext-tools gmake gnome libtool \
+			localbase pkgconfig shebangfix tar:bzip2
+USE_GITLAB=		yes
+GL_ACCOUNT=		chinstrap
+USE_GNOME=		intltool
+GNU_CONFIGURE=		yes
+GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
+SHEBANG_FILES=		src/gammastep_indicator/gammastep-indicator.in
+
+OPTIONS_DEFINE=		GEO GUI NLS RANDR VIDMODE WAYLAND
+OPTIONS_DEFAULT=	GEO RANDR WAYLAND
+OPTIONS_SUB=		yes
+
+GEO_DESC=		Use geoclue (requires dbus)
+GUI_DESC=		Tray icon
+RANDR_DESC=		Support RANDR for changing colors
+VIDMODE_DESC=		Support VIDMODE for changing colors (NVIDIA)
+WAYLAND_DESC=		Support Wayland (wlroots) for changing colors
+
+GEO_BUILD_DEPENDS=	geoclue>=0:net/geoclue
+GEO_RUN_DEPENDS=	geoclue>=0:net/geoclue
+GEO_USE=		GNOME=glib20
+GEO_CONFIGURE_ENABLE=	geoclue2
+
+GUI_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}gobject3>0:devel/py-gobject3@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}xdg>0:devel/py-xdg@${PY_FLAVOR}
+GUI_USES=		python
+GUI_CONFIGURE_ENABLE=	gui
+
+NLS_USES=		gettext-runtime iconv
+NLS_CONFIGURE_ON=	${ICONV_CONFIGURE_ARG}
+NLS_CONFIGURE_ENABLE=	nls
+
+RANDR_USES=		xorg
+RANDR_USE=		XORG=xcb,xrandr
+RANDR_CONFIGURE_ENABLE=	randr
+
+VIDMODE_USES=			xorg
+VIDMODE_USE=			XORG=x11,xxf86vm
+VIDMODE_CONFIGURE_ENABLE=	vidmode
+
+WAYLAND_CATEGORIES=		wayland
+WAYLAND_LIB_DEPENDS=		libwayland-client.so:graphics/wayland
+WAYLAND_CONFIGURE_ENABLE=	wayland
+
+.include <bsd.port.mk>
diff --git a/accessibility/gammastep/distinfo b/accessibility/gammastep/distinfo
new file mode 100644
index 000000000000..7a8ef642d026
--- /dev/null
+++ b/accessibility/gammastep/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1717753175
+SHA256 (gammastep-v2.0.9.tar.bz2) = 371c66ff8eac9c8795afe014493dc347d0242493bbb2fe13bfaee14b42a29328
+SIZE (gammastep-v2.0.9.tar.bz2) = 540120
diff --git a/accessibility/gammastep/files/patch-src_gamma-wl.c b/accessibility/gammastep/files/patch-src_gamma-wl.c
new file mode 100644
index 000000000000..9dd1b30f1c7f
--- /dev/null
+++ b/accessibility/gammastep/files/patch-src_gamma-wl.c
@@ -0,0 +1,14 @@
+gamma-wl.c:24:10: fatal error: 'alloca.h' file not found
+#include <alloca.h>
+         ^~~~~~~~~~
+
+--- src/gamma-wl.c.orig	2022-09-12 00:57:15 UTC
++++ src/gamma-wl.c
+@@ -6,7 +6,6 @@
+ #include <stdlib.h>
+ #include <stdint.h>
+ #include <string.h>
+-#include <alloca.h>
+ #include <sys/mman.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
diff --git a/accessibility/gammastep/pkg-descr b/accessibility/gammastep/pkg-descr
new file mode 100644
index 000000000000..ebbe762a5cfa
--- /dev/null
+++ b/accessibility/gammastep/pkg-descr
@@ -0,0 +1,3 @@
+Adjust 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/accessibility/gammastep/pkg-plist b/accessibility/gammastep/pkg-plist
new file mode 100644
index 000000000000..c176345bc544
--- /dev/null
+++ b/accessibility/gammastep/pkg-plist
@@ -0,0 +1,60 @@
+bin/gammastep
+%%GUI%%bin/gammastep-indicator
+%%GUI%%share/applications/gammastep-indicator.desktop
+%%GUI%%share/metainfo/gammastep-indicator.appdata.xml
+%%GUI%%share/applications/gammastep.desktop
+%%GUI%%share/icons/hicolor/scalable/apps/gammastep.svg
+%%GUI%%share/icons/hicolor/scalable/apps/gammastep-status-off.svg
+%%GUI%%share/icons/hicolor/scalable/apps/gammastep-status-on.svg
+%%NLS%%share/locale/ar/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/be/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/bg/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/da/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/el/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/es/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/et/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/eu/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/he/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/hi/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/hr/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/it/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/ka/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/lt/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/gammastep.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/gammastep.mo
+share/man/man1/gammastep.1.gz
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/__init__.py
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/__pycache__/controller%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/__pycache__/controller%%PYTHON_EXT_SUFFIX%%.pyc
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/__pycache__/defs%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/__pycache__/defs%%PYTHON_EXT_SUFFIX%%.pyc
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/__pycache__/statusicon%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/__pycache__/statusicon%%PYTHON_EXT_SUFFIX%%.pyc
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/__pycache__/utils%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/__pycache__/utils%%PYTHON_EXT_SUFFIX%%.pyc
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/controller.py
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/defs.py
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/statusicon.py
+%%GUI%%%%PYTHON_SITELIBDIR%%/gammastep_indicator/utils.py



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406151717.45FHHkeb007313>