[121602] trunk/dports/www/nginx/Portfile
cal at macports.org
cal at macports.org
Tue Jul 1 13:43:39 PDT 2014
Revision: 121602
https://trac.macports.org/changeset/121602
Author: cal at macports.org
Date: 2014-07-01 13:43:39 -0700 (Tue, 01 Jul 2014)
Log Message:
-----------
nginx: add +lua variant, closes #44074
Modified Paths:
--------------
trunk/dports/www/nginx/Portfile
Modified: trunk/dports/www/nginx/Portfile
===================================================================
--- trunk/dports/www/nginx/Portfile 2014-07-01 20:38:34 UTC (rev 121601)
+++ trunk/dports/www/nginx/Portfile 2014-07-01 20:43:39 UTC (rev 121602)
@@ -28,7 +28,9 @@
https://github.com/downloads/masterzen/nginx-upload-progress-module:uploadprogress_module \
https://github.com/arut/nginx-dav-ext-module/archive/:davext_module \
https://github.com/arut/nginx-rtmp-module/archive/:rtmp_module \
- https://github.com/slact/nginx_http_push_module/archive/:http_push_module
+ https://github.com/slact/nginx_http_push_module/archive/:http_push_module \
+ https://github.com/simpl/ngx_devel_kit/archive/:devel_kit_module \
+ https://github.com/openresty/lua-nginx-module/archive/:lua_module
distfiles ${name}-${version}${extract.suffix}:nginx
checksums ${name}-${version}${extract.suffix} \
@@ -297,6 +299,34 @@
configure.args-append --add-module=${workpath}/${http_push_distname}
}
+variant devel_kit description {Enable ngx_devel_kit module (https://github.com/simpl/ngx_devel_kit)} {
+ set devel_kit_filename ngx_devel_kit
+ set devel_kit_version 0.2.19
+ set devel_kit_distname ${devel_kit_filename}-${devel_kit_version}
+ distfiles-append v${devel_kit_version}.tar.gz:devel_kit_module
+ checksums-append v${devel_kit_version}.tar.gz \
+ rmd160 64d3737bc4cc948c1363cce80d70e5260878811e \
+ sha256 501f299abdb81b992a980bda182e5de5a4b2b3e275fbf72ee34dd7ae84c4b679
+
+ configure.args-append --add-module=${workpath}/${devel_kit_distname}
+}
+
+variant lua requires devel_kit description {Enable Lua module (https://github.com/openresty/lua-nginx-module)} {
+ depends_lib-append port:luajit
+ set ngx_lua_filename lua-nginx-module
+ set ngx_lua_version 0.9.8
+ set ngx_lua_distname ${ngx_lua_filename}-${ngx_lua_version}
+ distfiles-append v${ngx_lua_version}.tar.gz:lua_module
+ checksums-append v${ngx_lua_version}.tar.gz \
+ rmd160 b2941977549bb345322e1ec00fca8916e56ea1e7 \
+ sha256 b138ce7e2615f40e68c20dd248e26d88757a6206ca74f0fcdf10d6b06fe01514
+
+ configure.cflags -I${prefix}/include/luajit-2.0/ ${configure.cflags}
+ configure.env LUAJIT_INC=${prefix}/include/luajit-2.0/
+ configure.env LUAJIT_LIB=${prefix}/lib
+ configure.args-append --add-module=${workpath}/${ngx_lua_distname}
+}
+
livecheck.type regexm
livecheck.url ${homepage}
livecheck.regex {nginx-(\d+\.\d+\.\d+)</a>\s+stable}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140701/471ecd87/attachment.html>
More information about the macports-changes
mailing list