<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/27105cacf2acfd6fba5e038b87e57e636f6ba8c7">https://github.com/macports/macports-ports/commit/27105cacf2acfd6fba5e038b87e57e636f6ba8c7</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 27105ca libzzip: Add snowleopard_fixes portgroup
</span>27105ca is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 27105cacf2acfd6fba5e038b87e57e636f6ba8c7
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Sat Feb 10 23:22:28 2018 -0600
<span style='display:block; white-space:pre;color:#404040;'> libzzip: Add snowleopard_fixes portgroup
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Fixes build on Snow Leopard and earlier.
</span>---
archivers/libzzip/Portfile | 15 +++++++-------
archivers/libzzip/files/patch-bins-unzzip.c.diff | 26 ------------------------
2 files changed, 7 insertions(+), 34 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/libzzip/Portfile b/archivers/libzzip/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a6b9c16..f2ce372 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/archivers/libzzip/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/libzzip/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,6 +1,7 @@
</span> # -*- 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
PortSystem 1.0
<span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup snowleopard_fixes 1.0
</span>
name libzzip
set my_name zziplib
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,22 +28,20 @@ checksums rmd160 93b396557defaf3254fcc84f5352828fe78a853e \
</span> sha256 81628fde8f79cd0095b15f2778946ff330f477543e7578d698fc3fa21c68200e \
size 842094
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_build port:pkgconfig \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_build-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:pkgconfig \
</span> port:xmlto
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib port:zlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:zlib
</span>
patchfiles patch-zzip_Makefile.in.diff \
yosemite-libtool.patch
<span style='display:block; white-space:pre;background:#ffe0e0;'>-platform darwin {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if {${os.major} < 11} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles-append patch-bins-unzzip.c.diff
</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> set docdir ${prefix}/share/doc/${name}
<span style='display:block; white-space:pre;background:#e0ffe0;'>+snowleopard_fixes.addheader yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.python /usr/bin/python
configure.env ac_cv_path_PAX=":"
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/libzzip/files/patch-bins-unzzip.c.diff b/archivers/libzzip/files/patch-bins-unzzip.c.diff
</span>deleted file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 2c070f4..0000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/archivers/libzzip/files/patch-bins-unzzip.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,26 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- bins/unzzip.c.orig 2017-04-23 18:46:28.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ bins/unzzip.c 2017-05-27 02:01:15.000000000 -0500
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -14,6 +14,23 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- extern int unzzip_print(int argc, char** argv);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- extern int unzzip_extract(int argc, char** argv);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+size_t strnlen(const char *s, size_t len)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+{
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ size_t i;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ for(i=0; i<len && *(s+i); i++);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return i;
</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;'>-+char* strndup (char const *s, size_t n)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+{
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ size_t len = strnlen (s, n);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ char *new = malloc (len + 1);
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ if (new == NULL)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return NULL;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ new[len] = '\0';
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ return memcpy (new, s, len);
</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;'>- static const char usage[] =
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- "unzzip <dir>.. \n"
</span></pre><pre style='margin:0'>
</pre>