<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/617c46fe4b8db83a9255db9f4afb401680604c36">https://github.com/macports/macports-ports/commit/617c46fe4b8db83a9255db9f4afb401680604c36</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 617c46fe4b8db83a9255db9f4afb401680604c36
</span>Author: Sergey Fedorov <barracuda@macos-powerpc.org>
AuthorDate: Sat Jul 6 23:17:50 2024 +0800
<span style='display:block; white-space:pre;color:#404040;'> ocaml-base_bigstring: use legacysupport correctly
</span>---
ocaml/ocaml-base_bigstring/Portfile | 4 ++++
ocaml/ocaml-base_bigstring/files/patch-memmem.diff | 24 ++++------------------
2 files changed, 8 insertions(+), 20 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/ocaml/ocaml-base_bigstring/Portfile b/ocaml/ocaml-base_bigstring/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 649e76efd90..3fd2a7df7a9 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/ocaml/ocaml-base_bigstring/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/ocaml/ocaml-base_bigstring/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,6 +27,10 @@ github.tarball_from archive
</span> # Use legacysupport to provide it.
if {${os.platform} eq "darwin" && ${os.major} < 11} {
patchfiles patch-memmem.diff
<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|@PREFIX@|${prefix}|g" ${worksrcpath}/src/dune
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> }
depends_lib-append port:ocaml-base \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/ocaml/ocaml-base_bigstring/files/patch-memmem.diff b/ocaml/ocaml-base_bigstring/files/patch-memmem.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index 1effd2504b5..70c050601f7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/ocaml/ocaml-base_bigstring/files/patch-memmem.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/ocaml/ocaml-base_bigstring/files/patch-memmem.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,25 +1,9 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- src/base_bigstring.h 2023-04-25 21:12:24.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/base_bigstring.h 2023-10-25 15:23:59.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -3,6 +3,13 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <caml/bigarray.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#ifdef __APPLE__
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <AvailabilityMacros.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#if MAC_OS_X_VERSION_MAX_ALLOWED <= 1060
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <LegacySupport/string.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#endif
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- /* Bigarray flags for creating a [Bigstring.t] */
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #define BASE_BIGSTRING_FLAGS (CAML_BA_CHAR | CAML_BA_C_LAYOUT)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> --- src/dune 2023-04-25 21:12:24.000000000 +0800
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ src/dune 2023-10-25 19:59:56.000000000 +0800
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1,3 +1,3 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/dune 2024-07-06 23:12:51.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,3 +1,4 @@
</span> (library (name base_bigstring) (public_name base_bigstring)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-- (js_of_ocaml (javascript_files runtime.js)) (libraries base int_repr)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ (js_of_ocaml (javascript_files runtime.js)) (libraries base int_repr)
</span> - (c_names base_bigstring_stubs) (preprocess (pps ppx_jane)))
\ No newline at end of file
<span style='display:block; white-space:pre;background:#ffe0e0;'>-+ (js_of_ocaml (javascript_files runtime.js)) (libraries base int_repr) (c_library_flags -lMacportsLegacySupport)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ (c_flags -I@PREFIX@/include/LegacySupport) (c_library_flags -lMacportsLegacySupport)
</span> + (c_names base_bigstring_stubs) (preprocess (pps ppx_jane)))
</pre><pre style='margin:0'>
</pre>