<pre style='margin:0'>
Ryan Schmidt (ryandesign) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/99f21c0bd58edf3edf74c8d76ebb337640f1b4d0">https://github.com/macports/macports-ports/commit/99f21c0bd58edf3edf74c8d76ebb337640f1b4d0</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 99f21c0bd58edf3edf74c8d76ebb337640f1b4d0
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sun Mar 13 20:18:36 2022 -0500
<span style='display:block; white-space:pre;color:#404040;'> slang2: Update to 2.3.2 and fix -L flag order
</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/64802
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Also fix livecheck.
</span>---
lang/slang2/Portfile | 30 +++++++++++++-----------
lang/slang2/files/LDFLAGS.patch | 41 +++++++++++++++++++++++++++++++++
lang/slang2/files/patch-png-module.diff | 10 --------
3 files changed, 57 insertions(+), 24 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/slang2/Portfile b/lang/slang2/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index efcf9ce34b4..a4543d03758 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/slang2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/slang2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,12 +5,15 @@ PortSystem 1.0
</span> name slang2
conflicts slang
set my_name slang
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version 2.2.4
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 2.3.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 2e79cca75621585519744b9f4362120f86074823 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 fc9e3b0fc4f67c3c1f6d43c90c16a5c42d117b8e28457c5b46831b8b5d3ae31a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1586720
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> set branch [join [lrange [split ${version} .] 0 1] .]
categories lang devel
license GPL-2+
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> maintainers nomaintainer
description multi-platform programmer's library
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -23,25 +26,24 @@ long_description \
</span> slang interpreter that may be easily embedded into a program \
to make it extensible.
<span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage http://www.jedsoft.org/slang/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-master_sites ftp://space.mit.edu/pub/davis/slang/v${branch}/ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ftp://ftp.fu-berlin.de/pub/unix/misc/slang/v${branch}/ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- http://ftp.ntua.gr/pub/lang/slang/slang/v${branch}/ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ftp://ftp.plig.org/pub/slang/v${branch}/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://www.jedsoft.org/slang/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites https://www.jedsoft.org/releases/slang/ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ https://www.jedsoft.org/releases/slang/old/
</span>
distname ${my_name}-${version}
use_bzip2 yes
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 fc023080f021201a99263d686ab4a8b87bbb575a \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 9a8257a9a2a55099af858b13338dc8f3a06dd2069f46f0df2c9c3bb84a01d5db
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-png-module.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> depends_lib port:libiconv \
port:libpng \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:oniguruma6 \
</span> port:pcre \
port:zlib
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles LDFLAGS.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.args --without-x
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# make[1]: *** No rule to make target `.../src/elfobjs', needed by `.../src/elfobjs/libslang.2.3.2.dylib'. Stop.
</span> use_parallel_build no
destroot.args install_doc_dir=${prefix}/share/doc/${my_name}-${version} \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -59,4 +61,4 @@ test.target check
</span>
livecheck.type regex
livecheck.url [lindex ${master_sites} 0]
<span style='display:block; white-space:pre;background:#ffe0e0;'>-livecheck.regex {LATEST_IS_(\d+(?:\.\d+)*)}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex >slang-(\\d+(?:\\.\\d+)*)[quotemeta ${extract.suffix}]<
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/slang2/files/LDFLAGS.patch b/lang/slang2/files/LDFLAGS.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..c61c2283b77
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/slang2/files/LDFLAGS.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,41 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Put -L flags in the right order. User (MacPorts) LDFLAGS must be after
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+project LDFLAGS.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- slsh/Makefile.in.orig 2018-03-04 17:16:36.000000000 -0600
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ slsh/Makefile.in 2022-03-13 19:43:20.000000000 -0500
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -77,22 +77,22 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #----------------------------------------------------------------------------
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ @SET_MAKE@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SHELL = /bin/sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-INST_LIBS = $(DEST_LIB_DIR) $(RPATH) $(SLANG_INST_LIB) -lslang $(READLINE_LIB) $(DYNAMIC_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++INST_LIBS = $(DEST_LIB_DIR) $(RPATH) $(SLANG_INST_LIB) -lslang $(LDFLAGS) $(READLINE_LIB) $(DYNAMIC_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ DEFS = -DSLSH_CONF_DIR='"$(SLSH_CONF_DIR)"' -DSLSH_PATH='"$(SLSH_LIB_DIR)"' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DSLSH_CONF_DIR_ENV='$(SLSH_CONF_DIR_ENV)' -DSLSH_LIB_DIR_ENV='$(SLSH_LIB_DIR_ENV)' \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ -DSLSH_PATH_ENV='$(SLSH_PATH_ENV)' $(SLSYSWRAP_DEF)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SDEFS = $(DEFS) -DSLSH_STATIC
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-SRC_LIBS = $(SLANG_ELFLIB) -lslang $(SLSYSWRAP_LIB) $(READLINE_LIB) $(DYNAMIC_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-STATIC_SRC_LIBS = $(SLANG_OBJLIB) -lslang $(SLSYSWRAP_LIB) $(READLINE_LIB) $(STATIC_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++SRC_LIBS = $(SLANG_ELFLIB) -lslang $(SLSYSWRAP_LIB) $(LDFLAGS) $(READLINE_LIB) $(DYNAMIC_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++STATIC_SRC_LIBS = $(SLANG_OBJLIB) -lslang $(SLSYSWRAP_LIB) $(LDFLAGS) $(READLINE_LIB) $(STATIC_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJDIR_TSTAMP = $(OBJDIR)/tstamp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SOBJDIR_TSTAMP = $(SOBJDIR)/tstamp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ all: $(OBJDIR)/slsh_exe
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ slsh: $(OBJDIR)/slsh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(OBJDIR)/slsh_exe: $(OBJDIR)/slsh.o $(OBJDIR)/readline.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(CC) $(CFLAGS) $(OBJDIR)/slsh.o $(OBJDIR)/readline.o -o $(OBJDIR)/slsh_exe $(LDFLAGS) $(DLINK_FLAGS) $(SRC_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) $(OBJDIR)/slsh.o $(OBJDIR)/readline.o -o $(OBJDIR)/slsh_exe $(DLINK_FLAGS) $(SRC_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(OBJDIR)/slsh: $(OBJDIR)/slsh.o $(OBJDIR)/readline.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(CC) $(CFLAGS) $(OBJDIR)/slsh.o $(OBJDIR)/readline.o -o $(OBJDIR)/slsh $(LDFLAGS) $(DLINK_FLAGS) $(INST_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) $(OBJDIR)/slsh.o $(OBJDIR)/readline.o -o $(OBJDIR)/slsh $(DLINK_FLAGS) $(INST_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(OBJDIR)/slsh.o: $(OBJDIR_TSTAMP) slsh.c slsh.h config.h Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cd $(OBJDIR) && $(CC) $(SLANG_SRCINC) $(CFLAGS) -c $(DEFS) $(SRCDIR)/slsh.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(OBJDIR)/readline.o: $(OBJDIR_TSTAMP) readline.c slsh.h config.h Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -103,7 +103,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static: $(SOBJDIR)/slsh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(SOBJDIR)/slsh: $(SOBJDIR)/slsh.o $(SOBJDIR)/readline.o
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(CC) $(CFLAGS) $(SOBJDIR)/slsh.o $(SOBJDIR)/readline.o -o $(SOBJDIR)/slsh $(LDFLAGS) $(STATIC_SRC_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CC) $(SOBJDIR)/slsh.o $(SOBJDIR)/readline.o -o $(SOBJDIR)/slsh $(STATIC_SRC_LIBS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(SOBJDIR)/slsh.o: $(SOBJDIR_TSTAMP) slsh.c slsh.h config.h Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ cd $(SOBJDIR) && $(CC) $(SLANG_SRCINC) $(CFLAGS) -c $(SDEFS) $(SRCDIR)/slsh.c
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(SOBJDIR)/readline.o: $(SOBJDIR_TSTAMP) readline.c slsh.h config.h Makefile
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/slang2/files/patch-png-module.diff b/lang/slang2/files/patch-png-module.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 5c32d7f24be..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/slang2/files/patch-png-module.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,10 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- modules/png-module.c.orig 2020-10-14 15:50:41.000000000 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ modules/png-module.c 2020-10-14 15:51:25.000000000 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -24,6 +24,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <stdio.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <errno.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+#include <string.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <slang.h>
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- #include <png.h>
</span></pre><pre style='margin:0'>
</pre>