<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/2769820c72275b75a3fbc8409367cefbec0946d4">https://github.com/macports/macports-ports/commit/2769820c72275b75a3fbc8409367cefbec0946d4</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 2769820c72275b75a3fbc8409367cefbec0946d4
</span>Author: barracuda156 <vital.had@gmail.com>
AuthorDate: Mon Oct 16 17:38:04 2023 +0800
<span style='display:block; white-space:pre;color:#404040;'> mlton-bootstrap: provide version for 10.6–10.7 x86_64
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/67821
</span>---
lang/mlton-bootstrap/Portfile | 19 +++++++-
lang/mlton-bootstrap/files/patch-20130715.diff | 64 ++++++++++++++++++++++++++
2 files changed, 81 insertions(+), 2 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/mlton-bootstrap/Portfile b/lang/mlton-bootstrap/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f3e0ab9d842..8ed1227bb8e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/mlton-bootstrap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/mlton-bootstrap/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -60,7 +60,7 @@ if {${configure.build_arch} eq "ppc"} {
</span> size 17824913
patchfiles-append \
patch-x86_64.diff
<span style='display:block; white-space:pre;background:#ffe0e0;'>- } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } elseif {${os.major} > 11} {
</span> version 20180207
revision 0
distfiles mlton-${version}-1.amd64-darwin.gmp-homebrew.tgz
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -69,6 +69,17 @@ if {${configure.build_arch} eq "ppc"} {
</span> size 18874573
patchfiles-append \
patch-${version}.diff
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # 20180207 is too new for 10.6–10.7: https://github.com/MLton/mlton/issues/502
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ version 20130715
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ distfiles mlton-${version}-1.amd64-darwin.gmp-macports.tgz
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ checksums rmd160 bc348fbab45b270932a24e6fc20c98166e484c5c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 a9bfff3bc5a793e84306f98cd60f195a8139902900f96e1072d13c0813b49c10 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 22767949
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ worksrcdir ${worksrcpath}/local
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-${version}.diff
</span> }
} elseif {${configure.build_arch} eq "arm64"} {
version 20210117
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -124,7 +135,11 @@ post-destroot {
</span> set old_gmp /opt/local/lib/libgmp.10.dylib
# Ugly paths below are intended:
} elseif {${configure.build_arch} eq "x86_64"} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- set old_gmp /usr/local/opt/gmp/lib/libgmp.10.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} < 12} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set old_gmp /opt/local/lib/libgmp.10.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ } else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set old_gmp /usr/local/opt/gmp/lib/libgmp.10.dylib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> } elseif {${configure.build_arch} eq "arm64"} {
set old_gmp /opt/homebrew/opt/gmp/lib/libgmp.10.dylib
}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/mlton-bootstrap/files/patch-20130715.diff b/lang/mlton-bootstrap/files/patch-20130715.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..f546a50c799
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/mlton-bootstrap/files/patch-20130715.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,64 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- bin/mlton 2007-08-30 07:10:03.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ bin/mlton 2023-07-21 01:57:07.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -5,9 +5,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set -e
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dir=`dirname "$0"`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-lib='/usr/local/lib/mlton'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++lib='@MLTON@'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ eval `"$lib/platform"`
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-gcc='gcc'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++gcc='@CC@'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case "$HOST_OS" in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ mingw)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ exe='.exe'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- bin/mlton 2023-07-21 22:12:12.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ bin/mlton 2023-07-21 22:20:42.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -83,11 +83,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # The darwin linker complains (loudly) about non-existent library
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # search paths.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ darwinLinkOpts=''
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if [ -d '/usr/local/lib' ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- darwinLinkOpts="$darwinLinkOpts -L/usr/local/lib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-if [ -d '/opt/local/lib' ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- darwinLinkOpts="$darwinLinkOpts -L/opt/local/lib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++if [ -d '@PREFIX@/lib' ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ darwinLinkOpts="$darwinLinkOpts -L@PREFIX@/lib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if [ -d '/sw/lib' ]; then
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ darwinLinkOpts="$darwinLinkOpts -L/sw/lib"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -107,8 +104,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ '-mieee -mbwx -mtune=ev6 -mfp-rounding-mode=d' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -target-cc-opt amd64 '-m64' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -target-cc-opt darwin \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- '-I/usr/local/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- -I/opt/local/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ '-I@PREFIX@/include
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -I/sw/include' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -target-cc-opt freebsd '-I/usr/local/include' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -target-cc-opt netbsd '-I/usr/pkg/include' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- lib/mlton/include/platform/darwin.h 2010-06-08 23:00:43.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ lib/mlton/include/platform/darwin.h 2023-07-21 22:27:28.000000000 +0800
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,3 +1,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifndef __STDC_FORMAT_MACROS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define __STDC_FORMAT_MACROS
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <fenv.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <inttypes.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <stdint.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -27,6 +31,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/wait.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <syslog.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <termios.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifndef _XOPEN_SOURCE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define _XOPEN_SOURCE /* In order for <ucontext.h> to work. */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/ucontext.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <utime.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>