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

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

Drop maintenance, leave openmaintainer in ports with shared maintenance

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