From nobody Thu Nov 21 15:56:35 2024 X-Original-To: dev-commits-ports-main@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 4XvNBq4slHz5dGQg; Thu, 21 Nov 2024 15:56:35 +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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XvNBq2Pzyz4Gyv; Thu, 21 Nov 2024 15:56:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732204595; 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=+I/6B8/Bu85yZ03CBXUrKphtlq1EBg+OU7KgM1Hh56M=; b=YTgT+6ezTOrfxljY98UUOGKCESBjHAK1k5sEdpzlMIHscnhZOTeW2sACLttZlTZW4MlVm7 Dusf8kRyPubqFmloRNXO41zxSYQneiJ/9VwXayhUhcdGoNRvzyifb4JHNlHCuJlsEaDRgx jbRDuAdPlTeIdvekM55KFikVMfiEGedwq+FR4gaJV8hvPTVdQ7DflgSdpcIuGh8So3SRQt RETkUVokt8BU2OmDV7NTevyKWOmjsJVBRbMvEPXnQEz/c+k231TV+mjVZGNf/adycHI2VI YeUy+tsQyWHziX+1dNX1BKxwxTXrKCqDDDSxGugVjgRF4SIJtc9EO643ZCODpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1732204595; 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=+I/6B8/Bu85yZ03CBXUrKphtlq1EBg+OU7KgM1Hh56M=; b=daP555EDUxqKnR+uMT/g8G5VgV7RC+b9WCVzcH667dBX/f+lMjDWNPtW+pbczTXcrhJe8u OnXFqFmc6jrvQHQ4hW6CkA8KWFZEGNdVQG2MERwCvYS3kITI1EIGGULK7gM15ASoGlJFOQ +vkaHi7EZylXr3PbvVLc0dC7FVuFMgtTBk7+AhyN9S2iTj8cTGltCpx6LjcmgFhX+N8ukH l2n0Mz7xL2SGGcHB2ou+Gq9OnRSQxvCnra63hvWz3R7AM1KAfwmggkS+0tdGkN4AntG8Kd I06nAIpQvGyWsJ+dej+bWAZMzrMJf/huFhJ33p2VhHxN0PXeB1NOQgtN/dbHWw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1732204595; a=rsa-sha256; cv=none; b=Lhs3/ZdXvLGweHnxE4ZASNPE0re492SLGyFbshHwhVyvhrjY858EJCZycbEE3amOJAMwWT ZUwGxzz9TlfXRhaCttj/7z/qIs8QpWLb1T0A4L1ITpxvmjcl/Ed+B5HCzIgkDc/+A3arEy VqqBOQJsaqaziO9idczE+huhj+kcCZ4GAPNbRTZb9+535JSkqeODeo/UJnTly2kAAVViv8 f9SIScrln5/ueDAiw6bZeuroI8PJd65gvteSpzzK5t1ZDHWAvc7GQETL3/0nysuNhOxy2d hCIOcRnmV2IdcK+D03+iGwKjUC5D3KrTjKVwVlG9S2RC7NAan+RuPKW3B23gBg== 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 4XvNBq21h9zmCK; Thu, 21 Nov 2024 15:56:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 4ALFuZOf077738; Thu, 21 Nov 2024 15:56:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 4ALFuZco077735; Thu, 21 Nov 2024 15:56:35 GMT (envelope-from git) Date: Thu, 21 Nov 2024 15:56:35 GMT Message-Id: <202411211556.4ALFuZco077735@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Jan Beich Subject: git: ee80f3761f71 - main - accessibility/hyprsunset: add new port List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jbeich X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ee80f3761f715da131c493978cb92a93a67078f2 Auto-Submitted: auto-generated The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=ee80f3761f715da131c493978cb92a93a67078f2 commit ee80f3761f715da131c493978cb92a93a67078f2 Author: Jan Beich AuthorDate: 2024-10-08 19:23:45 +0000 Commit: Jan Beich CommitDate: 2024-11-21 15:56:14 +0000 accessibility/hyprsunset: add new port hyprsunset is a small utility to provide a blue light filter for your system. This method is preferred to screen shaders as it will not be captured via recording / screenshots. Requires hyprland >= 0.45.0 for hyprland-ctm-control-v1 protocol. https://github.com/hyprwm/hyprsunset --- accessibility/Makefile | 1 + accessibility/hyprsunset/Makefile | 24 ++++++++++++++++++++++ accessibility/hyprsunset/distinfo | 5 +++++ .../hyprsunset/files/patch-CMakeLists.txt | 23 +++++++++++++++++++++ accessibility/hyprsunset/pkg-descr | 5 +++++ 5 files changed, 58 insertions(+) diff --git a/accessibility/Makefile b/accessibility/Makefile index 42a14320dd04..ac1dd5f23189 100644 --- a/accessibility/Makefile +++ b/accessibility/Makefile @@ -9,6 +9,7 @@ SUBDIR += feedbackd SUBDIR += gammastep SUBDIR += gammy + SUBDIR += hyprsunset SUBDIR += kdeaccessibility SUBDIR += kmag SUBDIR += kmousetool diff --git a/accessibility/hyprsunset/Makefile b/accessibility/hyprsunset/Makefile new file mode 100644 index 000000000000..e3dc75254a99 --- /dev/null +++ b/accessibility/hyprsunset/Makefile @@ -0,0 +1,24 @@ +PORTNAME= hyprsunset +DISTVERSIONPREFIX= v +DISTVERSION= 0.1.0 +CATEGORIES= accessibility wayland + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Blue light filter on Hyprland +WWW= https://github.com/hyprwm/hyprsunset + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= hyprwayland-scanner>=0.4.0:devel/hyprwayland-scanner \ + wayland-protocols>0:graphics/wayland-protocols +LIB_DEPENDS= libhyprutils.so:devel/hyprutils \ + libwayland-client.so:graphics/wayland + +USES= cmake compiler:c++11-lib localbase:ldflags pkgconfig +USE_GITHUB= yes +GH_ACCOUNT= hyprwm +GH_TUPLE= hyprwm:hyprland-protocols:v0.4.0:hyprland_protocols/subprojects/hyprland-protocols +PLIST_FILES= bin/${PORTNAME} + +.include diff --git a/accessibility/hyprsunset/distinfo b/accessibility/hyprsunset/distinfo new file mode 100644 index 000000000000..fc6f9de7a5b6 --- /dev/null +++ b/accessibility/hyprsunset/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1728415425 +SHA256 (hyprwm-hyprsunset-v0.1.0_GH0.tar.gz) = 88c9fb2c3efb3ccb398c66a90658765312faf818678a6a8e0e727cfba5f13a9b +SIZE (hyprwm-hyprsunset-v0.1.0_GH0.tar.gz) = 8571 +SHA256 (hyprwm-hyprland-protocols-v0.4.0_GH0.tar.gz) = ab3525d8bad576db911d4ba1b586f303dd988660b3b8980022c1795fd574b165 +SIZE (hyprwm-hyprland-protocols-v0.4.0_GH0.tar.gz) = 8131 diff --git a/accessibility/hyprsunset/files/patch-CMakeLists.txt b/accessibility/hyprsunset/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..847fb208217f --- /dev/null +++ b/accessibility/hyprsunset/files/patch-CMakeLists.txt @@ -0,0 +1,23 @@ +-- Checking for module 'hyprland-protocols>=0.4.0' +-- Package 'hyprland-protocols' not found +CMake Error at /usr/local/share/cmake/Modules/FindPkgConfig.cmake:645 (message): + The following required packages were not found: + + - hyprland-protocols>=0.4.0 + +--- CMakeLists.txt.orig 2024-10-08 19:23:45 UTC ++++ CMakeLists.txt +@@ -98,8 +98,12 @@ protocolwayland() + + protocolwayland() + +-pkg_check_modules(hyprland_protocols_dep REQUIRED IMPORTED_TARGET hyprland-protocols>=0.4.0) ++pkg_check_modules(hyprland_protocols_dep IMPORTED_TARGET hyprland-protocols>=0.4.0) ++if(hyprland_protocols_dep_FOUND) + pkg_get_variable(HYPRLAND_PROTOCOLS hyprland-protocols pkgdatadir) ++else() ++set(HYPRLAND_PROTOCOLS "${CMAKE_SOURCE_DIR}/subprojects/hyprland-protocols") ++endif() + message(STATUS "hyprland-protocols dependency set to ${HYPRLAND_PROTOCOLS}") + + protocolnew("${HYPRLAND_PROTOCOLS}/protocols" "hyprland-ctm-control-v1" true) diff --git a/accessibility/hyprsunset/pkg-descr b/accessibility/hyprsunset/pkg-descr new file mode 100644 index 000000000000..529a3f5db819 --- /dev/null +++ b/accessibility/hyprsunset/pkg-descr @@ -0,0 +1,5 @@ +hyprsunset is a small utility to provide a blue light filter for your +system. This method is preferred to screen shaders as it will not be +captured via recording / screenshots. + +Requires hyprland >= 0.45.0 for hyprland-ctm-control-v1 protocol.