From nobody Sat Jun 15 17:17:46 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4W1jWt3V62z5P7GQ; Sat, 15 Jun 2024 17:17:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4W1jWt2vCKz4YlG; Sat, 15 Jun 2024 17:17:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718471866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8sK8M+wjDTpNuoFHjmob5YLYEAE/lNsoUtW7WSH4qsI=; b=QVB+8yp1uCm28hZMW6g5jqk75vaz3r8P6/+mgvEWgPv3xRpty2iloIZL/9fDHFaIt07oGJ 89dTZGy1XOQW3G3gX/NfabamZYwpxpc3RjdAg65wptQyXkVEkjWVzWMwkH0zlAn93QNwDq +Fc+oUAEis/RvwyIrfw+mp92jsSkhZWZP6Qu8ithfZhEDNhVAtnZl+CG8/Hsno4CvRams8 ryaaRVIaH7tl4gBkAZ0GrAblaI15tqgJLdeSRBis5DIfqo7M0jgkGzrle3APUPcUVWD6jK fa3ixpi1QJRjkJGgfd38DTJKtA1c2JVPYo2e/bZyS8MRMtKEPDc+7dwG/x5TTg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1718471866; a=rsa-sha256; cv=none; b=NDPgFk990SYZi1gziNS2jJW8kVlmCgkzCgokUksNNiBveyUAtU+ABZf4WafaTSA0Ej0p72 wEgQLNl7jLGM52BQb8b4fZ4vwOPf5p4di9wLtM8dCgwK1tKkVUQzPdgHSxPVBOdUHYhZOX 8yeGmh6I443Kkyh3V1KmRJKUUOU161iYwzsvX3UQPYOOFiYIEgfglFTMcP9jgimLmLuY7K Pi4F2oLAoevtvXeA1dTV8gJiw7WCVvBch3Q0skMkmUfquumqOWnlNUc4relDJtQoOgODVl V/yjrOFEVfwlGnA6MjAeRLQrRUPr+t3aLESRZX2RwDLyZkUSX6Qeuj2dU3lUyg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1718471866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=8sK8M+wjDTpNuoFHjmob5YLYEAE/lNsoUtW7WSH4qsI=; b=anvGHWmBVa2waLdNS3DuVgzvkrj+qsuBAKy1wR60rgjS1graLqz4tIXrlt35S3HK2d1R3y 1cu1WR+U3zJvUOVwKygj5LfLHXl5kbl6ieM9bH/mx5/XtixzNEufT0EaelCSNVtQZ7Ln8l d5a3PA/RnTMdICPH8xquXtfC13jqIVuQpYzrsj6Hkq8SyyFvqPPMAwS4TdrAbI91SMdj2l ZUE9wISGgaU4Keucxa+gG1SSpwoyQaKVL8IhmBLkjq0QaggWLd/S80QnFgI9omLUVVO+OF 0ANIc/0FlQ0Kdrfmeahn00In+zOr2D/xMPLOz9mG0M+6ZhFIap2hyDBO0xIVpw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4W1jWt2NK2z1Ccf; Sat, 15 Jun 2024 17:17:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 45FHHkBE007316; Sat, 15 Jun 2024 17:17:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 45FHHkeb007313; Sat, 15 Jun 2024 17:17:46 GMT (envelope-from git) Date: Sat, 15 Jun 2024 17:17:46 GMT Message-Id: <202406151717.45FHHkeb007313@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Guido Falsi Subject: git: 5618ba6e3622 - main - accessability/gammastep: Adjust the color temperature of your screen List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-all@freebsd.org Sender: owner-dev-commits-ports-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: madpilot X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5618ba6e3622465d648bf5e26b63fb6dab5d6b29 Auto-Submitted: auto-generated The branch main has been updated by madpilot: URL: https://cgit.FreeBSD.org/ports/commit/?id=5618ba6e3622465d648bf5e26b63fb6dab5d6b29 commit 5618ba6e3622465d648bf5e26b63fb6dab5d6b29 Author: Guido Falsi AuthorDate: 2024-06-15 17:17:19 +0000 Commit: Guido Falsi 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 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 + ^~~~~~~~~~ + +--- src/gamma-wl.c.orig 2022-09-12 00:57:15 UTC ++++ src/gamma-wl.c +@@ -6,7 +6,6 @@ + #include + #include + #include +-#include + #include + #include + #include 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