source: trunk/dports/devel/luarocks/Portfile @ 89926

Last change on this file since 89926 was 89926, checked in by and.damore@…, 5 years ago

port luarocks: using the right compiler; version bumped

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# $Id: Portfile 89926 2012-02-15 19:09:57Z and.damore@macports.org $
2PortSystem          1.0
3name                luarocks
4version             2.0.7.1
5revision            2
6categories          devel
7platforms           darwin
8maintainers         and.damore openmaintainer
9supported_archs     noarch
10
11description         Manager for rocks, lua extensions.
12long_description    \
13    LuaRocks is a deployment and management system for Lua modules that allows \
14    you to install self-contained modules (\"rocks\") which also contain \
15    version dependency information. It handles both install time dependencies \
16    and runtime version check. LuaRocks supports local and remote \
17    repositories, and multiple local rocks trees.
18
19homepage            http://www.luarocks.org/
20master_sites        http://luarocks.org/releases/
21depends_run         port:lua
22
23checksums           rmd160  f1c5e707d75e490de0cc05f2f7b5fc5bf7d465fd \
24                    sha256  a7da6f796e6cffd63dd7a7f9a2fdab2ca3a1461e5e5e94aa8569068b701f7272
25
26configure.args      --with-lua=${prefix} \
27                    --rocks-tree=${prefix}/share/${name}
28
29patchfiles          patch-src_luarocks_cfg.lua.diff
30post-patch {
31    reinplace   "s|%PREFIX%|${prefix}|g"             ${worksrcpath}/src/luarocks/cfg.lua
32    reinplace "s|%COMPILER%|${configure.cc}|g" ${worksrcpath}/src/luarocks/cfg.lua
33}
34
35use_parallel_build  no
36
37variant md5 conflicts openssl description { Use md5 as checker } {
38    configure.args-append   --with-md5-checker=md5sum
39}
40   
41variant openssl conflicts md5 description { Use openssl as checker } {
42    configure.args-append   --with-md5-checker=openssl
43    depends_run-append  port:openssl
44}
45
46if {![variant_isset md5]} {
47    default_variants +openssl
48}
49
50variant wget conflicts curl description { Use wget as downloader } {
51    configure.args-append   --with-downloader=wget
52    depends_run-append  port:wget
53}
54
55variant curl conflicts wget description { Use curl as downloader } {
56    configure.args-append   --with-downloader=curl
57    depends_run-append  port:curl
58}
59
60if {![variant_isset wget]} {
61    default_variants +curl
62}
63
64destroot.keepdirs  ${destroot}${prefix}/share/luarocks/ 
65post-destroot {
66    xinstall -m 755 -d ${destroot}${prefix}/share/luarocks/
67}
Note: See TracBrowser for help on using the repository browser.