[103973] trunk/dports/lang/luajit/Portfile
and.damore at macports.org
and.damore at macports.org
Mon Mar 11 02:55:54 PDT 2013
Revision: 103973
https://trac.macports.org/changeset/103973
Author: and.damore at macports.org
Date: 2013-03-11 02:55:54 -0700 (Mon, 11 Mar 2013)
Log Message:
-----------
port luajit: update to 2.0.1, passing makefile settings through build.args, installing man page and pkgconfig file; fix #38349
Modified Paths:
--------------
trunk/dports/lang/luajit/Portfile
Modified: trunk/dports/lang/luajit/Portfile
===================================================================
--- trunk/dports/lang/luajit/Portfile 2013-03-11 09:43:26 UTC (rev 103972)
+++ trunk/dports/lang/luajit/Portfile 2013-03-11 09:55:54 UTC (rev 103973)
@@ -3,7 +3,7 @@
PortSystem 1.0
name luajit
-version 2.0.0-beta10
+version 2.0.1
categories lang
platforms darwin
license BSD
@@ -16,16 +16,10 @@
master_sites ${homepage}/download
distname LuaJIT-${version}
-checksums md5 ed66689b96f7ad7bfeffe0b4ff2d63d4 \
- sha1 560d06621ea616bea1d67867faa235d608040396 \
- rmd160 7159791c2ad27856cb39e62a9b9f337a756ab9d2
+checksums md5 85e406e8829602988eb1233a82e29f1f \
+ sha1 330492aa5366e4e60afeec72f15e44df8a794db5 \
+ rmd160 99b6ef067a3f09865ff312baeb1ceb012bb9acb3
-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 \
@@ -41,12 +35,20 @@
eval xinstall -m 644 [glob ${worksrcpath}/doc/*.html] ${destroot}${prefix}/share/doc/${name}
eval xinstall -m 644 [glob ${worksrcpath}/doc/*.css] ${destroot}${prefix}/share/doc/${name}
eval xinstall -m 644 [glob ${worksrcpath}/doc/img/*] ${destroot}${prefix}/share/doc/${name}/img
+
+ xinstall -d -m 755 ${destroot}${prefix}/share/pkgconfig
+ xinstall -m 644 ${worksrcpath}/etc/luajit.pc ${destroot}${prefix}/share/pkgconfig
+ xinstall -m 644 ${worksrcpath}/etc/luajit.1 ${destroot}${prefix}/share/man/man1
}
use_parallel_build no
use_configure no
build.target amalg
+build.args-append CC="${configure.cc}" \
+ CFLAGS="${configure.cflags} ${configure.cppflags} [get_canonical_archflags]" \
+ LDFLAGS="${configure.ldflags} [get_canonical_archflags]" \
+ Q=""
livecheck.type regex
livecheck.url ${master_sites}.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130311/29221dec/attachment.html>
More information about the macports-changes
mailing list