<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e4d9ec3a199f93a744a80cdd8e7bbe11258e791f">https://github.com/macports/macports-ports/commit/e4d9ec3a199f93a744a80cdd8e7bbe11258e791f</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new e4d9ec3a199 dzip: fix universal archflags
</span>e4d9ec3a199 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit e4d9ec3a199f93a744a80cdd8e7bbe11258e791f
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Sat Aug 20 04:02:00 2022 +1000
<span style='display:block; white-space:pre;color:#404040;'> dzip: fix universal archflags
</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/65695
</span>---
archivers/dzip/Portfile | 16 ++++------------
archivers/dzip/files/Makefile.linux.diff | 19 +++++++++++++++++++
archivers/dzip/files/patch-Makefile.linux.diff | 9 ---------
3 files changed, 23 insertions(+), 21 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/dzip/Portfile b/archivers/dzip/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index f8cd1de962a..c5829e1122e 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/archivers/dzip/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/dzip/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,7 +3,6 @@ PortSystem 1.0
</span> name dzip
version 2.9
categories archivers
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platforms darwin
</span> maintainers nomaintainer
license zlib
description file compression tool
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,13 +28,15 @@ post-extract {
</span> reinplace "s|\r||g" ${worksrcpath}/Makefile.linux
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-patchfiles patch-Makefile.linux.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles Makefile.linux.diff
</span>
use_configure no
<span style='display:block; white-space:pre;background:#e0ffe0;'>+variant universal {}
</span>
build.target ${name}
build.args -f Makefile.linux
<span style='display:block; white-space:pre;background:#ffe0e0;'>-build.env CC=${configure.cc}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.env CC=${configure.cc} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "CFLAGS=${configure.cflags} [get_canonical_archflags cc] -isysroot${configure.sdkroot}"
</span>
destroot {
xinstall ${worksrcpath}/dzip ${destroot}${prefix}/bin
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -45,15 +46,6 @@ destroot {
</span> xinstall -m 0644 ${worksrcpath}/Readme ${destroot}${docdir}
}
<span style='display:block; white-space:pre;background:#ffe0e0;'>-variant universal {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- build.args-append "LDFLAGS=\"${configure.universal_ldflags}\""
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace -E "s|^(CFLAGS.*)\r\$|\\1 ${configure.universal_cflags}|" ${worksrcpath}/Makefile.linux
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> livecheck.type regex
livecheck.url ${homepage}download.html
livecheck.regex v(\\d+(?:\\.\\d+)*)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/dzip/files/Makefile.linux.diff b/archivers/dzip/files/Makefile.linux.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..cb8ce0cf3cd
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/dzip/files/Makefile.linux.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,19 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Makefile.linux.orig 2022-08-20 03:57:06.000000000 +1000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Makefile.linux 2022-08-20 03:57:53.000000000 +1000
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,7 +1,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Makefile for linux
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CC = gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CFLAGS = -Wall -O3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CC ?= gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CFLAGS += -Wall -O3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ TARGET = dzip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ OBJECTS = main.o compress.o uncompress.o list.o crc32.o \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ encode.o decode.o v1code.o conmain.o delete.o \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -24,4 +24,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ encode.o: encode.c dzip.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ list.o: list.c dzip.h dzipcon.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ decode.o: decode.c dzip.h dzipcon.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-v1code.o: v1code.c dzip.h dzipcon.h
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+\ No newline at end of file
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++v1code.o: v1code.c dzip.h dzipcon.h
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/dzip/files/patch-Makefile.linux.diff b/archivers/dzip/files/patch-Makefile.linux.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 1fe06d1d8c3..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/archivers/dzip/files/patch-Makefile.linux.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,9 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- Makefile.linux 2002-07-17 12:51:40.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ Makefile.linux 2009-06-25 01:24:39.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -1,6 +1,5 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # Makefile for linux
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--CC = gcc
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CFLAGS = -Wall -O3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- TARGET = dzip
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- OBJECTS = main.o compress.o uncompress.o list.o crc32.o \
</span></pre><pre style='margin:0'>
</pre>