Date: Thu, 12 Feb 2026 06:08:47 +0000 From: Hiroki Tagato <tagattie@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: 9c6482cd5a8e - main - x11/hyprpicker: Update to 0.4.6 Message-ID: <698d6e6f.32641.5be579f1@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=9c6482cd5a8eccd9db961117b7e6a4aa0cbb79a9 commit 9c6482cd5a8eccd9db961117b7e6a4aa0cbb79a9 Author: Hiroki Tagato <tagattie@FreeBSD.org> AuthorDate: 2026-02-12 06:07:19 +0000 Commit: Hiroki Tagato <tagattie@FreeBSD.org> CommitDate: 2026-02-12 06:08:40 +0000 x11/hyprpicker: Update to 0.4.6 While here: - remove custom do-install target, which is no longer necessary - sort variables to make portclippy happy https://github.com/hyprwm/hyprpicker/releases/tag/v0.4.6 Reported by: GitHub (watch releases) --- x11/hyprpicker/Makefile | 14 +++++--------- x11/hyprpicker/distinfo | 6 +++--- x11/hyprpicker/files/patch-src_main.cpp | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 40 insertions(+), 12 deletions(-) diff --git a/x11/hyprpicker/Makefile b/x11/hyprpicker/Makefile index b67732dba1ce..cb438a69f3e9 100644 --- a/x11/hyprpicker/Makefile +++ b/x11/hyprpicker/Makefile @@ -1,7 +1,6 @@ PORTNAME= hyprpicker DISTVERSIONPREFIX= v -DISTVERSION= 0.4.5 -PORTREVISION= 4 +DISTVERSION= 0.4.6 CATEGORIES= x11 wayland MAINTAINER= tagattie@FreeBSD.org @@ -18,9 +17,12 @@ LIB_DEPENDS= libhyprutils.so:devel/hyprutils \ libxkbcommon.so:x11/libxkbcommon USES= compiler:c++11-lib cmake gnome localbase:ldflags pkgconfig -USE_GNOME= cairo + USE_GITHUB= yes GH_ACCOUNT= hyprwm + +USE_GNOME= cairo + PLIST_FILES= bin/${PORTNAME} \ share/man/man1/${PORTNAME}.1.gz @@ -47,10 +49,4 @@ post-patch: @${REINPLACE_CMD} -e '/pthread\.h/d' \ ${WRKSRC}/src/includes.hpp -do-install: - ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \ - ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \ - ${STAGEDIR}${PREFIX}/share/man/man1/ - .include <bsd.port.mk> diff --git a/x11/hyprpicker/distinfo b/x11/hyprpicker/distinfo index a615915115cd..31f55e5b9931 100644 --- a/x11/hyprpicker/distinfo +++ b/x11/hyprpicker/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1746060866 -SHA256 (hyprwm-hyprpicker-v0.4.5_GH0.tar.gz) = fe9611ec78524f9bbea0d39308da3d9c61cb20f6103179a269cad8013bb0c1f3 -SIZE (hyprwm-hyprpicker-v0.4.5_GH0.tar.gz) = 26380 +TIMESTAMP = 1770873313 +SHA256 (hyprwm-hyprpicker-v0.4.6_GH0.tar.gz) = 3dc3dec1ba3254a9ab3303461a12593f18318961934d24e4b1adc08927ba675d +SIZE (hyprwm-hyprpicker-v0.4.6_GH0.tar.gz) = 28553 diff --git a/x11/hyprpicker/files/patch-src_main.cpp b/x11/hyprpicker/files/patch-src_main.cpp new file mode 100644 index 000000000000..8762740043aa --- /dev/null +++ b/x11/hyprpicker/files/patch-src_main.cpp @@ -0,0 +1,32 @@ +--- src/main.cpp.orig 2026-02-12 05:19:31 UTC ++++ src/main.cpp +@@ -1,3 +1,4 @@ ++#include <charconv> + #include <cstdint> + #include <format> + #include <regex> +@@ -90,12 +91,24 @@ int main(int argc, char** argv, char** envp) { + } + case 's': { + float value; ++#if defined(__FreeBSD__) ++ try { ++ size_t pos; ++ value = std::stof(optarg, &pos); ++ if (pos != strlen(optarg)) ++ throw std::invalid_argument(""); ++ } catch (...) { ++ std::cerr << "Invalid scale value: " << optarg << "\n"; ++ exit(1); ++ } ++#else + auto result = std::from_chars(optarg, optarg + strlen(optarg), value); + + if (result.ec != std::errc() || result.ptr != optarg + strlen(optarg)) { + std::cerr << "Invalid scale value: " << optarg << "\n"; + exit(1); + } ++#endif + + if (value < 1.0f || value > 10.0f) { + std::cerr << "Scale must be between 1 and 10!\n";home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?698d6e6f.32641.5be579f1>
