<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/5868896669d72d1a54ed34132c573bb5716dc15c">https://github.com/macports/macports-ports/commit/5868896669d72d1a54ed34132c573bb5716dc15c</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 5868896 redis: allow universal build
</span>5868896 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit 5868896669d72d1a54ed34132c573bb5716dc15c
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Wed Oct 18 18:10:29 2017 -0700
<span style='display:block; white-space:pre;color:#404040;'> redis: allow universal build
</span>---
databases/redis/Portfile | 34 ++++++++++++++++++----------------
1 file changed, 18 insertions(+), 16 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/databases/redis/Portfile b/databases/redis/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index a0c98c4..8fa9a68 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/databases/redis/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/databases/redis/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,9 +1,11 @@
</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 muniversal 1.0
</span>
name redis
version 4.0.2
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 1
</span> categories databases
platforms darwin
license BSD
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -27,10 +29,14 @@ post-patch {
</span>
use_configure no
<span style='display:block; white-space:pre;background:#ffe0e0;'>-# configure: error: C preprocessor "/lib/cpp" fails sanity check
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#variant universal {}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-build.args-append CC="${configure.cc} [get_canonical_archflags cc]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![variant_isset universal]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.args-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CC="${configure.cc} [get_canonical_archflags cc]"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach arch ${configure.universal_archs} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend merger_build_args(${arch}) CC='${configure.cc} -arch ${arch}'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span>
# disable silent rules
build.args-append V=1
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -40,19 +46,15 @@ build.args-append MALLOC=jemalloc
</span>
destroot.keepdirs ${destroot}${prefix}/var/db/redis
<span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -d ${destroot}${prefix}/var/db/redis
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- xinstall -m 0755 -W ${worksrcpath}/src \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- redis-benchmark \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- redis-check-aof \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- redis-check-rdb \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- redis-cli \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- redis-server \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ln -s redis-server \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ${destroot}${prefix}/bin/redis-sentinel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {![variant_isset universal]} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.args-append PREFIX=${destroot}${prefix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ foreach arch ${configure.universal_archs} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ lappend merger_destroot_args(${arch}) PREFIX=${destroot}-${arch}${prefix}
</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;'>+post-destroot {
</span> xinstall -m 0644 ${worksrcpath}/redis.conf \
${destroot}${prefix}/etc/redis.conf.sample
}
</pre><pre style='margin:0'>
</pre>