# $Id: Portfile 89926 2012-02-15 19:09:57Z and.damore@macports.org $ PortSystem 1.0 name luarocks version 2.0.7.1 revision 2 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 f1c5e707d75e490de0cc05f2f7b5fc5bf7d465fd \ sha256 a7da6f796e6cffd63dd7a7f9a2fdab2ca3a1461e5e5e94aa8569068b701f7272 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/ }