aboutsummaryrefslogtreecommitdiff
path: root/editors
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2022-05-30 08:37:28 +0000
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2022-05-30 08:38:04 +0000
commit14e94b4f735b8341079942d31e963c04e729d2a4 (patch)
tree724dcd246c506a548f2222516fafbd6728dace0b /editors
parent31a29caea4aef58a9ab1419da7f23f44406d2a5a (diff)
downloadports-14e94b4f735b8341079942d31e963c04e729d2a4.tar.gz
ports-14e94b4f735b8341079942d31e963c04e729d2a4.zip
editors/imhex: Update to 1.18.1
Diffstat (limited to 'editors')
-rw-r--r--editors/imhex/Makefile7
-rw-r--r--editors/imhex/distinfo10
-rw-r--r--editors/imhex/files/patch-lib_libimhex_include_hex_api_keybinding.hpp11
-rw-r--r--editors/imhex/files/patch-lib_libimhex_include_hex_helpers_utils.hpp24
-rw-r--r--editors/imhex/files/patch-main_source_window_window.cpp4
-rw-r--r--editors/imhex/files/patch-plugins_builtin_source_content_views_view__hex__editor.cpp11
6 files changed, 21 insertions, 46 deletions
diff --git a/editors/imhex/Makefile b/editors/imhex/Makefile
index 5e48b4f72f3d..017209b85998 100644
--- a/editors/imhex/Makefile
+++ b/editors/imhex/Makefile
@@ -1,5 +1,5 @@
PORTNAME= imhex
-PORTVERSION= 1.17.0
+PORTVERSION= 1.18.1
DISTVERSIONPREFIX= v
CATEGORIES= editors
MASTER_SITES= https://git.sr.ht/~danyspin97/xdgpp/blob/f01f810714443d0f10c333d4d1d9c0383be41375/:xdg
@@ -24,8 +24,7 @@ EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} \
WerWolv-PatternLanguage-${GH_TAG_PATTERN_LANGUAGE}_GH0${EXTRACT_SUFX}
BUILD_DEPENDS= glm>0:math/glm \
- nlohmann-json>0:devel/nlohmann-json \
- ${LOCALBASE}/include/range/v3/range.hpp:devel/range-v3
+ nlohmann-json>0:devel/nlohmann-json
LIB_DEPENDS= libcurl.so:ftp/curl \
libfreetype.so:print/freetype2 \
libglfw.so:graphics/glfw \
@@ -54,7 +53,7 @@ GH_TAG_FMT= bc654fa
GH_TAG_IMHEX_PATTERNS= 4ec37de
GH_TAG_LIBROMFS= f14e88a
GH_TAG_NATIVEFILEDIALOG= 28ade5a
-GH_TAG_PATTERN_LANGUAGE= 49bafd8
+GH_TAG_PATTERN_LANGUAGE= 23ec4e4
GH_TAG_YARA= 1367943
CMAKE_ARGS= -DUSE_SYSTEM_CURL=ON -DUSE_SYSTEM_NLOHMANN_JSON=ON
diff --git a/editors/imhex/distinfo b/editors/imhex/distinfo
index 2ed552024e28..84f1d1f63dd1 100644
--- a/editors/imhex/distinfo
+++ b/editors/imhex/distinfo
@@ -1,8 +1,8 @@
-TIMESTAMP = 1651665999
+TIMESTAMP = 1653792475
SHA256 (imhex/xdg.hpp) = 2e08ce74adb71ff9b9aa9e1c999733fccd4b00967b9cf0c0e51dbf049392a9ec
SIZE (imhex/xdg.hpp) = 7674
-SHA256 (imhex/WerWolv-ImHex-v1.17.0_GH0.tar.gz) = 08e7c6c2b43708e71ad8a2de01d8f4b200e6fb7d17fd29cc9eba76f4f82e03c0
-SIZE (imhex/WerWolv-ImHex-v1.17.0_GH0.tar.gz) = 8723416
+SHA256 (imhex/WerWolv-ImHex-v1.18.1_GH0.tar.gz) = 55159316af07042d494570d0f6f8fcfdc9bbc0d3ebd35fe7d202d0f90d116b1e
+SIZE (imhex/WerWolv-ImHex-v1.18.1_GH0.tar.gz) = 8726145
SHA256 (imhex/btzy-nativefiledialog-extended-28ade5a_GH0.tar.gz) = dcba95e4af561468fd30533882af0733a8e4df7a963c2a19eef9789c90807e28
SIZE (imhex/btzy-nativefiledialog-extended-28ade5a_GH0.tar.gz) = 409643
SHA256 (imhex/capstone-engine-capstone-d5141c0_GH0.tar.gz) = 435d40757928fa73dec19c6d0fbf171bd76341391c8525ce1286927dab44c3e7
@@ -13,7 +13,7 @@ SHA256 (imhex/VirusTotal-yara-1367943_GH0.tar.gz) = 2afca72e2dd10a929d1341e69f1f
SIZE (imhex/VirusTotal-yara-1367943_GH0.tar.gz) = 1284035
SHA256 (imhex/WerWolv-ImHex-Patterns-4ec37de_GH0.tar.gz) = 59e81f8d4dbeb21da5ddf6c6dcbf404b79c32d583f59a9be6d01c3468effa4bd
SIZE (imhex/WerWolv-ImHex-Patterns-4ec37de_GH0.tar.gz) = 217951
-SHA256 (imhex/WerWolv-PatternLanguage-49bafd8_GH0.tar.gz) = 48080776130cdf3bed27dda4fd8b9babbcf6e77bbb375ff1125cc7f71b78da7e
-SIZE (imhex/WerWolv-PatternLanguage-49bafd8_GH0.tar.gz) = 168895
+SHA256 (imhex/WerWolv-PatternLanguage-23ec4e4_GH0.tar.gz) = f7b405bfc37a19bdd538e94df7eaa6f42524fd6806a65c564c41b684909a7b5f
+SIZE (imhex/WerWolv-PatternLanguage-23ec4e4_GH0.tar.gz) = 170287
SHA256 (imhex/WerWolv-libromfs-f14e88a_GH0.tar.gz) = cb375ae5b5539d19f6a17af1690e0b3cbbd0ad2e4282ce3c33efb94960ebff4b
SIZE (imhex/WerWolv-libromfs-f14e88a_GH0.tar.gz) = 3600
diff --git a/editors/imhex/files/patch-lib_libimhex_include_hex_api_keybinding.hpp b/editors/imhex/files/patch-lib_libimhex_include_hex_api_keybinding.hpp
deleted file mode 100644
index dd14015b2fab..000000000000
--- a/editors/imhex/files/patch-lib_libimhex_include_hex_api_keybinding.hpp
+++ /dev/null
@@ -1,11 +0,0 @@
---- lib/libimhex/include/hex/api/keybinding.hpp.orig 2022-01-16 14:56:46 UTC
-+++ lib/libimhex/include/hex/api/keybinding.hpp
-@@ -7,6 +7,8 @@
- #include <map>
- #include <set>
-
-+#include <range/v3/compare.hpp>
-+
- struct ImGuiWindow;
-
- namespace hex {
diff --git a/editors/imhex/files/patch-lib_libimhex_include_hex_helpers_utils.hpp b/editors/imhex/files/patch-lib_libimhex_include_hex_helpers_utils.hpp
deleted file mode 100644
index 239e4d750c1f..000000000000
--- a/editors/imhex/files/patch-lib_libimhex_include_hex_helpers_utils.hpp
+++ /dev/null
@@ -1,24 +0,0 @@
---- lib/libimhex/include/hex/helpers/utils.hpp.orig 2022-04-17 23:53:01 UTC
-+++ lib/libimhex/include/hex/helpers/utils.hpp
-@@ -94,6 +94,12 @@ namespace hex {
- template<size_t Size>
- using SizeType = typename SizeTypeImpl<Size>::Type;
-
-+ // Workaround for FreeBSD versions that std::has_single_bit() is not available
-+ template <class T>
-+ constexpr bool has_single_bit(T x) {
-+ return x != 0 && (((x & (x - 1)) == 0));
-+ }
-+
- template<typename T>
- constexpr T changeEndianess(const T &value, std::endian endian) {
- if (endian == std::endian::native)
-@@ -106,7 +112,7 @@ namespace hex {
-
- SizeType<Size> swapped;
-
-- if constexpr (!std::has_single_bit(Size) || Size > 16)
-+ if constexpr (!has_single_bit(Size) || Size > 16)
- static_assert(always_false<T>::value, "Invalid type provided!");
-
- switch (Size) {
diff --git a/editors/imhex/files/patch-main_source_window_window.cpp b/editors/imhex/files/patch-main_source_window_window.cpp
index cd8164abd262..a7e0a5c9c081 100644
--- a/editors/imhex/files/patch-main_source_window_window.cpp
+++ b/editors/imhex/files/patch-main_source_window_window.cpp
@@ -1,4 +1,4 @@
---- main/source/window/window.cpp.orig 2022-04-17 23:53:01 UTC
+--- main/source/window/window.cpp.orig 2022-05-28 18:14:30 UTC
+++ main/source/window/window.cpp
@@ -148,7 +148,6 @@ namespace hex {
std::signal(SIGSEGV, signalHandler);
@@ -8,7 +8,7 @@
std::signal(SIGFPE, signalHandler);
auto imhexLogo = romfs::get("logo.png");
-@@ -597,7 +596,7 @@ namespace hex {
+@@ -607,7 +606,7 @@ namespace hex {
return;
for (int i = 0; i < count; i++) {
diff --git a/editors/imhex/files/patch-plugins_builtin_source_content_views_view__hex__editor.cpp b/editors/imhex/files/patch-plugins_builtin_source_content_views_view__hex__editor.cpp
new file mode 100644
index 000000000000..8f17b860c16f
--- /dev/null
+++ b/editors/imhex/files/patch-plugins_builtin_source_content_views_view__hex__editor.cpp
@@ -0,0 +1,11 @@
+--- plugins/builtin/source/content/views/view_hex_editor.cpp.orig 2022-05-28 18:14:30 UTC
++++ plugins/builtin/source/content/views/view_hex_editor.cpp
+@@ -199,7 +199,7 @@ namespace hex::plugin::builtin {
+ reader.seek(this->m_searchPosition.value_or(editor->getSelection().getEndAddress()));
+
+ constexpr static auto searchFunction = [](const auto &haystackBegin, const auto &haystackEnd, const auto &needleBegin, const auto &needleEnd) {
+- #if defined(OS_MACOS)
++ #if defined(OS_MACOS) || defined(__FreeBSD__)
+ return std::search(haystackBegin, haystackEnd, needleBegin, needleEnd);
+ #else
+ return std::search(haystackBegin, haystackEnd, std::boyer_moore_horspool_searcher(needleBegin, needleEnd));