[106219] trunk/dports/devel/luarocks/Portfile
and.damore at macports.org
and.damore at macports.org
Sun May 19 09:07:14 PDT 2013
Revision: 106219
https://trac.macports.org/changeset/106219
Author: and.damore at macports.org
Date: 2013-05-19 09:07:14 -0700 (Sun, 19 May 2013)
Log Message:
-----------
port luarocks: moving lua version number argument to pre-configure phase
Modified Paths:
--------------
trunk/dports/devel/luarocks/Portfile
Modified: trunk/dports/devel/luarocks/Portfile
===================================================================
--- trunk/dports/devel/luarocks/Portfile 2013-05-19 15:09:10 UTC (rev 106218)
+++ trunk/dports/devel/luarocks/Portfile 2013-05-19 16:07:14 UTC (rev 106219)
@@ -25,8 +25,7 @@
sha256 5eac098dcde65ca417930be42ccbd1a1cd151d5aebd8cc17898231de8289edb2
configure.args --with-lua=${prefix} \
- --rocks-tree=${prefix}/share/${name} \
- --lua-version=[string range [lindex [lindex [registry_active lua] 0] 1] 0 2]
+ --rocks-tree=${prefix}/share/${name}
patchfiles patch-src_luarocks_cfg.diff
post-patch {
@@ -34,6 +33,10 @@
reinplace "s|%COMPILER%|${configure.cc}|g" ${worksrcpath}/src/luarocks/cfg.lua
}
+pre-configure {
+ configure.args-append --lua-version=[string range [lindex [lindex [registry_active lua] 0] 1] 0 2]
+}
+
post-configure {
reinplace -E "/ln -nfs/s|\\\$\\\(DESTDIR\\\)\\\$\\\(BINDIR\\\)/|${prefix}/bin/|" ${worksrcpath}/Makefile
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130519/f6091d2b/attachment.html>
More information about the macports-changes
mailing list