diff --git a/devel/hyprutils/Makefile b/devel/hyprutils/Makefile index 325071599ec3..1b6a0ea46e65 100644 --- a/devel/hyprutils/Makefile +++ b/devel/hyprutils/Makefile @@ -1,33 +1,33 @@ PORTNAME= hyprutils DISTVERSIONPREFIX= v -DISTVERSION= 0.11.1 +DISTVERSION= 0.12.0 CATEGORIES= devel MAINTAINER= tagattie@FreeBSD.org COMMENT= Hyprland utilities library used across the ecosystem WWW= https://github.com/hyprwm/hyprutils LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE BUILD_DEPENDS= googletest>0:devel/googletest USES= cmake:testing compiler:c++11-lib pkgconfig xorg USE_GITHUB= yes GH_ACCOUNT= hyprwm USE_LDCONFIG= yes USE_XORG= pixman LDFLAGS+= -pthread PLIST_SUB= SOVERSION_FULL=${DISTVERSION:C/-.*//} \ - SOVERSION_MAJOR=10 + SOVERSION_MAJOR=11 post-patch: # Respect PREFIX for system-wide config @${REINPLACE_CMD} 's|/etc|${PREFIX}&|' \ ${WRKSRC}/src/path/Path.cpp .include diff --git a/devel/hyprutils/distinfo b/devel/hyprutils/distinfo index b8404b8f789f..652094a87956 100644 --- a/devel/hyprutils/distinfo +++ b/devel/hyprutils/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1774168328 -SHA256 (hyprwm-hyprutils-v0.11.1_GH0.tar.gz) = 575a025dd1b85f94c25328469358f7feeba1867fe516189cfb4253543b26714f -SIZE (hyprwm-hyprutils-v0.11.1_GH0.tar.gz) = 58859 +TIMESTAMP = 1775393373 +SHA256 (hyprwm-hyprutils-v0.12.0_GH0.tar.gz) = d9b495cc8c7602fe54148388fe94892a1337be871267dc5e93f4e719fe6ef8f2 +SIZE (hyprwm-hyprutils-v0.12.0_GH0.tar.gz) = 59380 diff --git a/devel/hyprutils/files/patch-include_hyprutils_string_Numeric.hpp b/devel/hyprutils/files/patch-include_hyprutils_string_Numeric.hpp deleted file mode 100644 index 9e3bb4ca2052..000000000000 --- a/devel/hyprutils/files/patch-include_hyprutils_string_Numeric.hpp +++ /dev/null @@ -1,72 +0,0 @@ ---- include/hyprutils/string/Numeric.hpp.orig 2026-03-22 11:10:17 UTC -+++ include/hyprutils/string/Numeric.hpp -@@ -5,6 +5,12 @@ - #include - #include - -+#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 200000 -+#include -+#include -+#include -+#endif -+ - namespace Hyprutils::String { - - enum eNumericParseResult : uint8_t { -@@ -40,6 +46,47 @@ namespace Hyprutils::String { - } - } - -+#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION < 200000 -+ // libc++ < 20 does not implement std::from_chars for floating point types -+ if constexpr (std::floating_point) { -+ std::string_view ts = sv; -+ if (ts.starts_with('+') || ts.starts_with('-')) -+ ts.remove_prefix(1); -+ if (ts.size() >= 2 && ts[0] == '0' && (ts[1] == 'x' || ts[1] == 'X')) -+ return std::unexpected(NUMERIC_PARSE_GARBAGE); -+ -+ std::string s{sv}; -+ char* endptr = nullptr; -+ errno = 0; -+ -+ if constexpr (std::same_as) -+ value = std::strtof(s.c_str(), &endptr); -+ else if constexpr (std::same_as) -+ value = std::strtod(s.c_str(), &endptr); -+ else -+ value = std::strtold(s.c_str(), &endptr); -+ -+ if (endptr == s.c_str()) -+ return std::unexpected(NUMERIC_PARSE_BAD); -+ if (errno == ERANGE) -+ return std::unexpected(NUMERIC_PARSE_OUT_OF_RANGE); -+ if (endptr != s.c_str() + s.size()) -+ return std::unexpected(NUMERIC_PARSE_GARBAGE); -+ -+ return value; -+ } else { -+ const auto [ptr, ec] = std::from_chars(sv.data(), sv.data() + sv.size(), value); -+ -+ if (ec == std::errc::invalid_argument) -+ return std::unexpected(NUMERIC_PARSE_BAD); -+ if (ec == std::errc::result_out_of_range) -+ return std::unexpected(NUMERIC_PARSE_OUT_OF_RANGE); -+ if (ptr != sv.data() + sv.size()) -+ return std::unexpected(NUMERIC_PARSE_GARBAGE); -+ -+ return value; -+ } -+#else - const auto [ptr, ec] = std::from_chars(sv.data(), sv.data() + sv.size(), value); - - if (ec == std::errc::invalid_argument) -@@ -50,5 +97,6 @@ namespace Hyprutils::String { - return std::unexpected(NUMERIC_PARSE_GARBAGE); - - return value; -+#endif - } --}; -\ No newline at end of file -+}; diff --git a/devel/hyprutils/files/patch-tests_os_Process.cpp b/devel/hyprutils/files/patch-tests_os_Process.cpp deleted file mode 100644 index 802b1862220f..000000000000 --- a/devel/hyprutils/files/patch-tests_os_Process.cpp +++ /dev/null @@ -1,12 +0,0 @@ ---- tests/os/Process.cpp.orig 2025-11-25 18:53:32 UTC -+++ tests/os/Process.cpp -@@ -2,6 +2,9 @@ - - #include - -+#include -+#include -+ - using namespace Hyprutils::OS; - - TEST(OS, process) {