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

and.damore at macports.org and.damore at macports.org
Sun Oct 7 02:24:49 PDT 2012


Revision: 98498
          http://trac.macports.org//changeset/98498
Author:   and.damore at macports.org
Date:     2012-10-07 02:24:49 -0700 (Sun, 07 Oct 2012)
Log Message:
-----------
port luajit: upgrade, removed manual patch that is now in tarball, fixed livecheck, changed default target; fix #36483 #36484

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

Modified: trunk/dports/lang/luajit/Portfile
===================================================================
--- trunk/dports/lang/luajit/Portfile	2012-10-07 08:07:44 UTC (rev 98497)
+++ trunk/dports/lang/luajit/Portfile	2012-10-07 09:24:49 UTC (rev 98498)
@@ -3,7 +3,7 @@
 PortSystem          1.0
 
 name                luajit
-version             2.0.0-beta6
+version             2.0.0-beta10
 categories          lang
 platforms           darwin
 license             BSD
@@ -16,23 +16,22 @@
 master_sites        ${homepage}/download
 distname            LuaJIT-${version}
 
-checksums           md5     bfcbe2a11162cfa84d5a1693b442c8bf \
-                    sha1    0412da515eb21fa5b537ce6b74f1743cb68c99f1 \
-                    rmd160  0c8d7724831ecb3a9b728e2d1344cc5d9ba9007e
+checksums           md5     ed66689b96f7ad7bfeffe0b4ff2d63d4 \
+                    sha1    560d06621ea616bea1d67867faa235d608040396 \
+                    rmd160  7159791c2ad27856cb39e62a9b9f337a756ab9d2
 
-#depends_lib         port:readline
+configure {
+    reinplace -E "/^MYLDFLAGS=/s|\$| ${configure.ldflags} [get_canonical_archflags]|" ${worksrcpath}/src/Makefile
+    reinplace -E "/^CFLAGS=/s|\$| ${configure.cflags} ${configure.cppflags} [get_canonical_archflags]|" ${worksrcpath}/src/Makefile
+    reinplace "s|CC= .*\$|CC= ${configure.cc}|" ${worksrcpath}/src/Makefile
+}
 
 post-patch {
     reinplace "s|/usr/local|${prefix}|g" \
 		${worksrcpath}/etc/luajit.pc \
 		${worksrcpath}/Makefile \
 		${worksrcpath}/src/luaconf.h \
-		${worksrcpath}/src/Makefile 
-
-    # fixes missing type when using llvm/clang, this is in repository HEAD so it'll have to be removed in future
-    # http://lua-list.2524044.n2.nabble.com/luajit2-Unwind-Exception-Class-and-Unwind-Ptr-on-OS-X-10-7-td6684372.html
-    reinplace "s|_Unwind_Exception_Class|uint64_t|" ${worksrcpath}/src/lj_err.c
-    reinplace "s|_Unwind_Ptr|uintptr_t|"            ${worksrcpath}/src/lj_err.c
+		${worksrcpath}/src/Makefile
 }
 
 post-destroot {
@@ -47,6 +46,8 @@
 use_parallel_build  no
 use_configure       no
 
+build.target        amalg
+
 livecheck.type  regex
-livecheck.url   ${master_sites}
-livecheck.regex {lua-(\d+(?:\.\d+)*)}
+livecheck.url   ${master_sites}.html
+livecheck.regex {LuaJIT-(\d+(?:\.\d+)*(?:-beta\d+)?).tar.gz}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121007/2cdd12f2/attachment.html>


More information about the macports-changes mailing list