# -*- 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 PortGroup legacysupport 1.1 PortGroup muniversal 1.0 PortGroup xcode_workaround 1.0 PortGroup makefile 1.0 # clock_gettime legacysupport.newest_darwin_requires_legacy 15 name redis version 7.2.4 revision 0 categories databases platforms darwin license BSD maintainers {gmail.com:davidgilman1 @dgilman} openmaintainer description Redis is an open source, advanced key-value store. long_description {*}${description} set redis_domain redis.io homepage https://${redis_domain} master_sites https://download.${redis_domain}/releases/ checksums rmd160 bafd2ca5b5599e00ef9380809320ec900d403724 \ sha256 8d104c26a154b29fd67d6568b4f375212212ad41e0c2caa3d66480e78dbd3b59 \ size 3386861 patchfiles patch-redis.conf.diff \ patch-hiredis.diff \ patch-gh-12585.diff post-patch { reinplace "s|@PREFIX@|${prefix}|g" \ ${worksrcpath}/redis.conf \ ${worksrcpath}/deps/hiredis/Makefile } # see ${worksrcpath}/deps/jemalloc/Makefile compiler.cxx_standard 2014 configure.cxxflags-append -std=c++14 # https://trac.macports.org/ticket/59245 xcode_workaround.fixed_xcode_version 11.2 # redis and dep makefiles have their own optflags configure.optflags # avoid build conflict with lua configure.cppflags-replace \ -I${prefix}/include \ -isystem${prefix}/include # redis doesn't know about CPPFLAGS so pass it this way build.args-append REDIS_CFLAGS="${configure.cppflags}" # disable silent rules build.args-append V=1 # use jemalloc build.args-append MALLOC=jemalloc # enable TLS. build.args-append BUILD_TLS=yes depends_lib path:lib/libssl.dylib:openssl destroot.keepdirs ${destroot}${prefix}/var/db/redis installs_libs no makefile.has_destdir no post-destroot { foreach conffile {redis.conf sentinel.conf} { xinstall -m 0644 ${worksrcpath}/${conffile} \ ${destroot}${prefix}/etc/${conffile}.sample } } post-activate { foreach conffile {redis.conf sentinel.conf} { if {![file exists ${prefix}/etc/${conffile}]} { file copy ${prefix}/etc/${conffile}.sample ${prefix}/etc/${conffile} } } xinstall -d ${prefix}/var/log touch ${prefix}/var/log/redis.log } startupitem.create yes startupitem.executable ${prefix}/bin/redis-server ${prefix}/etc/redis.conf notes " If you prefer to start a redis server manually, rather than using 'port load', then use this command: redis-server ${prefix}/etc/redis.conf " livecheck.regex ${name}-(\\d+.\\d+.\\d+)