<pre style='margin:0'>
Mojca Miklavec (mojca) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/9846ce353f33000ca015f1b1ea1898a16145f4e9">https://github.com/macports/macports-ports/commit/9846ce353f33000ca015f1b1ea1898a16145f4e9</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 9846ce3 sox: use curl instead of wget
</span>9846ce3 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 9846ce353f33000ca015f1b1ea1898a16145f4e9
</span>Author: Jan StarĂ½ <hans@stare.cz>
AuthorDate: Sat Aug 18 10:20:52 2018 +0200
<span style='display:block; white-space:pre;color:#404040;'> sox: use curl instead of wget
</span>---
audio/sox/Portfile | 6 +++---
audio/sox/files/patch-curl.diff | 20 ++++++++++++++++++++
2 files changed, 23 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/sox/Portfile b/audio/sox/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d967a7c..9c10dad 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/audio/sox/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/sox/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortSystem 1.0
</span> name sox
conflicts play
version 14.4.2
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision 1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 2
</span> categories audio
platforms darwin
maintainers {stare.cz:hans @janstary}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -28,6 +28,8 @@ checksums sha1 dc9668256b9d81ef25d672f14f12ec026b0b4087 \
</span> depends_build \
port:pkgconfig
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-curl.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> platform darwin 11 {
# System grep fails: "grep: Regular expression too big"
depends_build-append \
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -51,8 +53,6 @@ depends_lib \
</span> port:wavpack \
port:zlib
<span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_run port:wget
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span> configure.args \
--enable-largefile \
--disable-silent-libtool\
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/audio/sox/files/patch-curl.diff b/audio/sox/files/patch-curl.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..3943205
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/audio/sox/files/patch-curl.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,20 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/formats.c.orig 2018-08-18 10:05:14.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/formats.c 2018-08-18 10:09:26.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -353,7 +353,7 @@ static int sox_checkformat(sox_format_t
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return SOX_SUCCESS;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-static sox_bool is_url(char const * text) /* detects only wget-supported URLs */
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++static sox_bool is_url(char const * text)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return !(
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ strncasecmp(text, "http:" , (size_t)5) &&
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -390,7 +390,7 @@ static FILE * xfopen(char const * identi
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ else if (is_url(identifier)) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ FILE * f = NULL;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ifdef HAVE_POPEN
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- char const * const command_format = "wget --no-check-certificate -q -O- \"%s\"";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ char const * const command_format = "curl --no-cert-status -s -o - \"%s\"";
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ char * command = lsx_malloc(strlen(command_format) + strlen(identifier));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sprintf(command, command_format, identifier);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ f = popen(command, POPEN_MODE);
</span></pre><pre style='margin:0'>
</pre>