<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5c7799ac41e7828d9cdffdc77ec18aa198917307">https://github.com/macports/macports-ports/commit/5c7799ac41e7828d9cdffdc77ec18aa198917307</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 5c7799ac41e7828d9cdffdc77ec18aa198917307
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Sun Apr 7 13:23:19 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> wxHexEditor: new port in sysutils
</span>---
sysutils/wxHexEditor/Portfile | 75 ++++++++++++++++++++++
.../0001-Fix-build-for-wxWidgets-v3.1.2.patch | 40 ++++++++++++
2 files changed, 115 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/wxHexEditor/Portfile b/sysutils/wxHexEditor/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..4378e674ffc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/wxHexEditor/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,75 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup makefile 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup wxWidgets 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup EUA wxHexEditor 0.24 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories sysutils devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@barracuda156 gmail.com:vital.had} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Free hex editor / disk editor
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license GPL-2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.wxhexeditor.org
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 dfb5fd7030291b9cbebd8625408e6c57304c11aa \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 6ad993ba13a0076b31fb95daa7a812eae3b613d86f5e6709021e4d3398afcf00 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1699052
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from archive
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} > 20} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wxWidgets.use wxWidgets-3.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # https://github.com/EUA/wxHexEditor/commit/ebe2449fac22089825d124935a215fd1c0739403
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 0001-Fix-build-for-wxWidgets-v3.1.2.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} elseif {${os.platform} eq "darwin" && ${os.major} > 12} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wxWidgets.use wxWidgets-3.0-cxx11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # While it builds on older systems with wxWidgets-3.0-cxx11,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # it does not work due to a bug in wxWidgets-3.0.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wxWidgets.use wxGTK-3.0-cxx11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|= /usr|= ${prefix}|" ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set py_ver 3.12
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set py_ver_nodot [string map {. {}} ${py_ver}]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:autoconf \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:automake \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gettext \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:libtool \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:python${py_ver_nodot}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:gettext-runtime \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:${wxWidgets.port}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.python ${prefix}/bin/python${py_ver}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.openmp_version 2.5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {[string match macports-clang* ${configure.compiler}]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ configure.ldflags-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -L${prefix}/lib/libomp \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -lomp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# See: https://github.com/EUA/wxHexEditor/issues/211
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platform macosx {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.target mac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.args-append WXCONFIG=${wxWidgets.wxconfig}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ move ${worksrcpath}/${name}.app ${destroot}${applications_dir}/${name}.app
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/sysutils/wxHexEditor/files/0001-Fix-build-for-wxWidgets-v3.1.2.patch b/sysutils/wxHexEditor/files/0001-Fix-build-for-wxWidgets-v3.1.2.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..7d68ed245f9
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/sysutils/wxHexEditor/files/0001-Fix-build-for-wxWidgets-v3.1.2.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,40 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From ebe2449fac22089825d124935a215fd1c0739403 Mon Sep 17 00:00:00 2001
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+From: GT <george@tsimperopoulos.com>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Date: Tue, 10 Sep 2019 23:52:19 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Subject: [PATCH] Fix build for wxWidgets v3.1.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/HexDialogs.cpp | 2 +-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ src/HexEditorCtrl/HexEditorCtrl.cpp | 6 +++---
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 2 files changed, 4 insertions(+), 4 deletions(-)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/HexDialogs.cpp src/HexDialogs.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 260571b..9c312ba 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/HexDialogs.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/HexDialogs.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -420,7 +420,7 @@ void FindDialog::OnChar( wxKeyEvent& event ){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ void FindDialog::EventHandler( wxCommandEvent& event ){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WX_CLEAR_ARRAY(parent->HighlightArray )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ WX_CLEAR_ARRAY(parent->HighlightArray);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ parent->HighlightArray.Shrink();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if( event.GetId() == btnFind->GetId())
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+diff --git src/HexEditorCtrl/HexEditorCtrl.cpp src/HexEditorCtrl/HexEditorCtrl.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+index 37a6e4b..6f3a4a0 100644
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/HexEditorCtrl/HexEditorCtrl.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/HexEditorCtrl/HexEditorCtrl.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -64,9 +64,9 @@ HexEditorCtrl::~HexEditorCtrl( void ){
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Dynamic_Disconnector();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Clear();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WX_CLEAR_ARRAY(MainTagArray)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WX_CLEAR_ARRAY(HighlightArray)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WX_CLEAR_ARRAY(CompareArray)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ WX_CLEAR_ARRAY(MainTagArray);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ WX_CLEAR_ARRAY(HighlightArray);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ WX_CLEAR_ARRAY(CompareArray);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ MainTagArray.Shrink();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ HighlightArray.Shrink();
</span></pre><pre style='margin:0'>
</pre>