notes "If you upgraded lua from 5.1 to 5.2 you'll need to reinstall your rocks, you can find a list of the previous installed rocks in ${prefix}/share/${name}/lib/lua/5.1 and in ~/.luarocks/ . Note that these previously installed rocks may be listed as installed but luarocks.require function will not be able to load them"
# -*- 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
github.setup luarocks luarocks 2.4.3 v
description Manager for rocks, lua extensions.
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/
checksums rmd160 20e6cd57acc5bd0e51d8a77246741b8ab4a40feb \
sha256 f5cf36a87bf32b2bed2997d19b042b146a9dda4b134181aa9853b384c3ced3c7
configure.args --with-lua=${prefix} \
--rocks-tree=${prefix}/share/${name}
patchfiles patch-src_luarocks_cfg.diff
reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/src/luarocks/cfg.lua
reinplace "s|%COMPILER%|${configure.cc}|g" ${worksrcpath}/src/luarocks/cfg.lua
configure.args-append --lua-version=[string range [lindex [lindex [registry_active lua] 0] 1] 0 2]
reinplace -E "/ln -nfs/s|\\\$\\\(DESTDIR\\\)\\\$\\\(BINDIR\\\)/|${prefix}/bin/|" ${worksrcpath}/Makefile
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 path:lib/libssl.dylib: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