<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/fe01ec3f375f1f0df8e4f6e71ae207f8c8c9bab1">https://github.com/macports/macports-ports/commit/fe01ec3f375f1f0df8e4f6e71ae207f8c8c9bab1</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit fe01ec3f375f1f0df8e4f6e71ae207f8c8c9bab1
</span>Author: Ryan Schmidt <ryandesign@macports.org>
AuthorDate: Wed Jul 4 23:56:37 2018 -0500
<span style='display:block; white-space:pre;color:#404040;'> snappy: Fix API version in header
</span>---
archivers/snappy/Portfile | 2 ++
archivers/snappy/files/api-version.patch | 18 ++++++++++++++++++
2 files changed, 20 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/snappy/Portfile b/archivers/snappy/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 21dff40..a481047 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/archivers/snappy/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/snappy/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,5 +36,7 @@ checksums rmd160 a512cb6b3954ef42a8a54c30787fda79d430bb20 \
</span> depends_lib port:lzo2 \
port:zlib
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles api-version.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> configure.args-append \
-DBUILD_SHARED_LIBS=ON
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/archivers/snappy/files/api-version.patch b/archivers/snappy/files/api-version.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..14fa319
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/archivers/snappy/files/api-version.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,18 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Fix API version in header
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/google/snappy/pull/61
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/google/snappy/commit/26102a0c66175bc39edbf484c994a21902e986dc.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- snappy-stubs-public.h.in.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ snappy-stubs-public.h.in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -48,9 +48,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <sys/uio.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #endif // HAVE_SYS_UIO_H
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#define SNAPPY_MAJOR ${SNAPPY_MAJOR}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#define SNAPPY_MINOR ${SNAPPY_MINOR}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#define SNAPPY_PATCHLEVEL ${SNAPPY_PATCHLEVEL}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define SNAPPY_MAJOR ${PROJECT_VERSION_MAJOR}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define SNAPPY_MINOR ${PROJECT_VERSION_MINOR}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#define SNAPPY_PATCHLEVEL ${PROJECT_VERSION_PATCH}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #define SNAPPY_VERSION \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ((SNAPPY_MAJOR << 16) | (SNAPPY_MINOR << 8) | SNAPPY_PATCHLEVEL)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span></pre><pre style='margin:0'>
</pre>