[106218] trunk/dports/lang/luajit/Portfile

and.damore at macports.org and.damore at macports.org
Sun May 19 08:09:11 PDT 2013


Revision: 106218
          https://trac.macports.org/changeset/106218
Author:   and.damore at macports.org
Date:     2013-05-19 08:09:10 -0700 (Sun, 19 May 2013)
Log Message:
-----------
port luajit: setting install path correctly according to installed lua version, fixing package.path and .cpath for 5.2

Modified Paths:
--------------
    trunk/dports/lang/luajit/Portfile

Modified: trunk/dports/lang/luajit/Portfile
===================================================================
--- trunk/dports/lang/luajit/Portfile	2013-05-19 14:42:21 UTC (rev 106217)
+++ trunk/dports/lang/luajit/Portfile	2013-05-19 15:09:10 UTC (rev 106218)
@@ -4,7 +4,7 @@
 
 name                luajit
 version             2.0.1
-revision            4
+revision            5
 categories          lang
 platforms           darwin
 license             BSD
@@ -31,9 +31,19 @@
                     CFLAGS="${configure.cflags} ${configure.cppflags} [get_canonical_archflags]" \
                     LDFLAGS="${configure.ldflags} [get_canonical_archflags]" \
                     PREFIX="${prefix}" \
+                    ABIVER=[string range [lindex [lindex [registry_active lua] 0] 1] 0 2] \
                     Q=""
 
-destroot.post_args-append   PREFIX="${prefix}"
+set lua_version     [string range [lindex [lindex [registry_active lua] 0] 1] 0 2] 
+post-patch {
+    if {[vercmp $lua_version 5.2] >= 0} {
+        reinplace "s|5\\.1|5.2|g" ${worksrcpath}/src/luaconf.h
+    }
+}
+
+destroot.post_args-append   PREFIX="${prefix}" \
+                            ABIVER=$lua_version
+
 post-destroot {
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
     xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/img
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130519/a07d29df/attachment.html>


More information about the macports-changes mailing list