From nobody Sat Mar 9 00:52:15 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 4Ts4Hz4GKcz5CRP1; Sat, 9 Mar 2024 00:52:15 +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 4Ts4Hz3q4Tz4Rh5; Sat, 9 Mar 2024 00:52:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1709945535; 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=beCImfyKH9y4nlqO/2GcGN6VYbEZRC+gS1ULGoK6gZw=; b=coviPV3b732GCd773xbohcSTppG7ndKGKrTDGRYPTVeMSGB3AtHbYikl60yY/CPu5yqzQv t29PIGwBZSV2bQl317TLt3o26Odt35e7blr50TaAu27XvbzZfF+JXYgnY4TDHQgzdwkv1R 9cH0DfQaIUigMAEHliL8Raaf+IkOaTUcS70s2UcR3N3Uz5wiHrD+7ndXl5v18EwBOpLNFb mLyjy6T4YGvxFk4o2yxK3bGq1BCUj8KJLBxLJH9lxCBlIAEMDK7LE9eFS1a9EGeEvShf/g 3ODBzpx5JHXcGaOEK5Bzd47bCm8eJjPJHyBffpMISxwvo1NoW1V9wUx7CaR1fw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1709945535; a=rsa-sha256; cv=none; b=DqSOELy41xTV7+xAzVRf5baWCEA+NnPikct//AdUdwbLG4AgAANHFB1oVXLs/z7mhkAqfn DN77L5JxTVlxNQN7LzY2pzhkusoT1fcuiYRsZFJAHbamEKl9S4jTUzafPmQg7zeZ2rDH1T qxBXZeQQatLVwAEXuEVKIUU5N8qS0nV+HoMagqlIwarL7d4+S6y6I23ABAUsV+JPn106TB xqEMfp20Ik/fgL+pjHKK2iduwmQLYx8mM2QTvLko1yw/TC3yYX1oGGwI/GO46UflAAvXsA EDjPEltjE9orwFviQkpPjU8sidYaa9KEmfnYLld/6H9BMqzImjBa+9RpOXSj7w== 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=1709945535; 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=beCImfyKH9y4nlqO/2GcGN6VYbEZRC+gS1ULGoK6gZw=; b=uyDrbImlMTR7y3kiYyx8QKyy5fUDixFEr/4BihS9xUbxcF5UBTjNbFddtr9t4Qv/T4lIKB P+fespvjgtH0uv3iLM/+OldIGUm2QEq8Ya7tlPJV7Qtg+7Kxzz3GeQ9hYwZWPuW3B5tDPF 2RcwZTHWVC93a2XpXPQthx9MJeKozhj7b50R9TkumHhj1+OkAu0Ln19vP/aRAGdhvtqOOM krlJ1C/C39L1SEbsmniqUuAmxSQcXZXFi22Juz0RvQDmqHNOVSFdlFWCCwE1uIwso1lcNO HhIlNioCmzLcGQDFQJA9bt81o/ZJ5Mt1O+xUzj+HU1uUa/kEym0mbI5lExVwPw== 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 4Ts4Hz37rrzgdg; Sat, 9 Mar 2024 00:52:15 +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 4290qFAa046285; Sat, 9 Mar 2024 00:52:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 4290qFcJ046282; Sat, 9 Mar 2024 00:52:15 GMT (envelope-from git) Date: Sat, 9 Mar 2024 00:52:15 GMT Message-Id: <202403090052.4290qFcJ046282@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: 9f71fa67ba07 - main - x11/hyprcursor: add new port 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: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@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: 9f71fa67ba076b5aed6ad01c76c254aa3f7660f7 Auto-Submitted: auto-generated The branch main has been updated by jbeich: URL: https://cgit.FreeBSD.org/ports/commit/?id=9f71fa67ba076b5aed6ad01c76c254aa3f7660f7 commit 9f71fa67ba076b5aed6ad01c76c254aa3f7660f7 Author: Jan Beich AuthorDate: 2024-03-08 17:32:40 +0000 Commit: Jan Beich CommitDate: 2024-03-09 00:51:37 +0000 x11/hyprcursor: add new port The hyprland cursor format, library and utilities. https://github.com/hyprwm/hyprcursor --- x11/Makefile | 1 + x11/hyprcursor/Makefile | 21 +++++++++++++++++++++ x11/hyprcursor/distinfo | 3 +++ x11/hyprcursor/files/patch-clang | 32 ++++++++++++++++++++++++++++++++ x11/hyprcursor/pkg-descr | 1 + x11/hyprcursor/pkg-plist | 9 +++++++++ 6 files changed, 67 insertions(+) diff --git a/x11/Makefile b/x11/Makefile index c97b2ce23461..6bbc488d62ea 100644 --- a/x11/Makefile +++ b/x11/Makefile @@ -122,6 +122,7 @@ SUBDIR += hs-xmobar SUBDIR += hsetroot SUBDIR += hybrid-bar + SUBDIR += hyprcursor SUBDIR += hypridle SUBDIR += hyprlock SUBDIR += hyprpaper diff --git a/x11/hyprcursor/Makefile b/x11/hyprcursor/Makefile new file mode 100644 index 000000000000..f625360e3a67 --- /dev/null +++ b/x11/hyprcursor/Makefile @@ -0,0 +1,21 @@ +PORTNAME= hyprcursor +DISTVERSIONPREFIX= v +DISTVERSION= 0.1.0 +CATEGORIES= x11 + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Hyprland cursor format, library and utilities +WWW= https://github.com/hyprwm/hyprcursor + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libzip.so:archivers/libzip \ + libhyprlang.so:devel/hyprlang + +USES= compiler:c++11-lib cmake:testing gnome pathfix pkgconfig +USE_GITHUB= yes +USE_GNOME= cairo librsvg2 +GH_ACCOUNT= hyprwm + +.include diff --git a/x11/hyprcursor/distinfo b/x11/hyprcursor/distinfo new file mode 100644 index 000000000000..1486b1b4f95b --- /dev/null +++ b/x11/hyprcursor/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1709919160 +SHA256 (hyprwm-hyprcursor-v0.1.0_GH0.tar.gz) = b1f28898be5dc32f7511a530b9781f7617be6f5a7c226ff981cb325604017a6c +SIZE (hyprwm-hyprcursor-v0.1.0_GH0.tar.gz) = 17213 diff --git a/x11/hyprcursor/files/patch-clang b/x11/hyprcursor/files/patch-clang new file mode 100644 index 000000000000..43161820f00a --- /dev/null +++ b/x11/hyprcursor/files/patch-clang @@ -0,0 +1,32 @@ +error: invalid argument '-std=gnu++2b' not allowed with 'C' + +libhyprcursor/hyprcursor.cpp:471:36: error: arithmetic on a pointer to void + 471 | std::memcpy(output, DATA->data + DATA->readNeedle, toRead); + | ~~~~~~~~~~ ^ + +--- CMakeLists.txt.orig 2024-03-08 17:32:40 UTC ++++ CMakeLists.txt +@@ -44,12 +44,6 @@ target_link_libraries(hyprcursor PkgConfig::deps) + + target_link_libraries(hyprcursor PkgConfig::deps) + +-if (CMAKE_CXX_COMPILER_ID MATCHES "Clang") +- # for std::expected. +- # probably evil. Arch's clang is very outdated tho... +- target_compile_options(hyprcursor PUBLIC -std=gnu++2b -D__cpp_concepts=202002L -Wno-macro-redefined) +-endif() +- + # hyprcursor-util + add_subdirectory(hyprcursor-util) + +--- libhyprcursor/hyprcursor.cpp.orig 2024-03-08 17:32:40 UTC ++++ libhyprcursor/hyprcursor.cpp +@@ -468,7 +468,7 @@ static cairo_status_t readPNG(void* data, unsigned cha + + size_t toRead = len > DATA->dataLen - DATA->readNeedle ? DATA->dataLen - DATA->readNeedle : len; + +- std::memcpy(output, DATA->data + DATA->readNeedle, toRead); ++ std::memcpy(output, (uint8_t*)DATA->data + DATA->readNeedle, toRead); + DATA->readNeedle += toRead; + + if (DATA->readNeedle >= DATA->dataLen) { diff --git a/x11/hyprcursor/pkg-descr b/x11/hyprcursor/pkg-descr new file mode 100644 index 000000000000..df51e19e3a9e --- /dev/null +++ b/x11/hyprcursor/pkg-descr @@ -0,0 +1 @@ +The hyprland cursor format, library and utilities. diff --git a/x11/hyprcursor/pkg-plist b/x11/hyprcursor/pkg-plist new file mode 100644 index 000000000000..c6d339fd5f80 --- /dev/null +++ b/x11/hyprcursor/pkg-plist @@ -0,0 +1,9 @@ +bin/hyprcursor-util +include/hyprcursor.hpp +include/hyprcursor/hyprcursor.h +include/hyprcursor/hyprcursor.hpp +include/hyprcursor/shared.h +lib/libhyprcursor.so +lib/libhyprcursor.so.0 +lib/libhyprcursor.so.0.1.0 +libdata/pkgconfig/hyprcursor.pc