[78100] trunk/dports/lang

and.damore at macports.org and.damore at macports.org
Sat Apr 23 10:44:41 PDT 2011


Revision: 78100
          http://trac.macports.org/changeset/78100
Author:   and.damore at macports.org
Date:     2011-04-23 10:44:38 -0700 (Sat, 23 Apr 2011)
Log Message:
-----------
new port luajit, Just in Time compiler for lua, rough comparison running http://lua-users.org/wiki/ObjectBenchmarkTests on iMac 2,1GHz with lua and luajit from macports
lua-5.1.4   luajit-2.0.0-beta6
16.347404   0.139161    Standard (solid)
18.422928   0.13899     Standard (metatable)
19.426281   0.138946    Object using closures (PiL 16.4)
11.870599   0.138944    Object using closures (noself)
7.251829    0.138971    Direct Access
1.620676    0.138837    Local Variable

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

Added: trunk/dports/lang/luajit/Portfile
===================================================================
--- trunk/dports/lang/luajit/Portfile	                        (rev 0)
+++ trunk/dports/lang/luajit/Portfile	2011-04-23 17:44:38 UTC (rev 78100)
@@ -0,0 +1,46 @@
+# $Id: Portfile 77869 2011-04-15 10:48:31Z ryandesign at macports.org $
+
+PortSystem          1.0
+
+name                luajit
+version             2.0.0-beta6
+categories          lang
+platforms           darwin
+maintainers         and.damore openmaintainer
+description         a Just-In-Time Compiler for Lua
+long_description    \
+LuaJIT is a Just-In-Time Compiler for the Lua programming language.
+
+homepage            http://luajit.org
+master_sites        ${homepage}/download
+distname            LuaJIT-${version}
+
+checksums           md5     bfcbe2a11162cfa84d5a1693b442c8bf \
+                    sha1    0412da515eb21fa5b537ce6b74f1743cb68c99f1 \
+                    rmd160  0c8d7724831ecb3a9b728e2d1344cc5d9ba9007e
+
+#depends_lib         port:readline
+
+post-patch {
+    reinplace "s|/usr/local|${prefix}|g" \
+		${worksrcpath}/etc/luajit.pc \
+		${worksrcpath}/Makefile \
+		${worksrcpath}/src/luaconf.h \
+		${worksrcpath}/src/Makefile 
+}
+
+post-destroot {
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/img
+    xinstall -m 644  ${worksrcpath}/COPYRIGHT ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 {*}[glob ${worksrcpath}/doc/*.html] ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 {*}[glob ${worksrcpath}/doc/*.css] ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 644 {*}[glob ${worksrcpath}/doc/img/*] ${destroot}${prefix}/share/doc/${name}/img
+}
+
+use_parallel_build  no
+use_configure       no
+
+livecheck.type  regex
+livecheck.url   ${master_sites}
+livecheck.regex {lua-(\d+(?:\.\d+)*)}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110423/be61b120/attachment.html>


More information about the macports-changes mailing list