# $Id$ PortSystem 1.0 name luarocks version 2.0.10 license MIT categories devel platforms darwin maintainers and.damore openmaintainer supported_archs noarch description Manager for rocks, lua extensions. long_description \ LuaRocks is a deployment and management system for Lua modules that allows \ you to install self-contained modules (\"rocks\") which also contain \ version dependency information. It handles both install time dependencies \ and runtime version check. LuaRocks supports local and remote \ repositories, and multiple local rocks trees. homepage http://www.luarocks.org/ master_sites http://luarocks.org/releases/ depends_run port:lua checksums rmd160 42fa03274a56fdc93bfb25cf6e9631e0d310485e \ sha256 11731dfe6e210a962cb2a857b8b2f14a9ab1043e13af09a1b9455b486401b46e configure.args --with-lua=${prefix} \ --rocks-tree=${prefix}/share/${name} patchfiles patch-src_luarocks_cfg.lua.diff post-patch { reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/src/luarocks/cfg.lua reinplace "s|%COMPILER%|${configure.cc}|g" ${worksrcpath}/src/luarocks/cfg.lua } use_parallel_build no variant md5 conflicts openssl description { Use md5 as checker } { configure.args-append --with-md5-checker=md5sum } variant openssl conflicts md5 description { Use openssl as checker } { configure.args-append --with-md5-checker=openssl depends_run-append port:openssl } if {![variant_isset md5]} { default_variants +openssl } variant wget conflicts curl description { Use wget as downloader } { configure.args-append --with-downloader=wget depends_run-append port:wget } variant curl conflicts wget description { Use curl as downloader } { configure.args-append --with-downloader=curl depends_run-append port:curl } if {![variant_isset wget]} { default_variants +curl } destroot.keepdirs ${destroot}${prefix}/share/luarocks/ post-destroot { xinstall -m 755 -d ${destroot}${prefix}/share/luarocks/ }