[76093] trunk/dports/lang/lua/Portfile

and.damore at macports.org and.damore at macports.org
Fri Feb 18 07:53:11 PST 2011


Revision: 76093
          http://trac.macports.org/changeset/76093
Author:   and.damore at macports.org
Date:     2011-02-18 07:53:09 -0800 (Fri, 18 Feb 2011)
Log Message:
-----------
whitespace change only, detabbed, stop.

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

Modified: trunk/dports/lang/lua/Portfile
===================================================================
--- trunk/dports/lang/lua/Portfile	2011-02-18 10:52:13 UTC (rev 76092)
+++ trunk/dports/lang/lua/Portfile	2011-02-18 15:53:09 UTC (rev 76093)
@@ -1,71 +1,70 @@
 # $Id$
 
-PortSystem              1.0
+PortSystem          1.0
+name                lua
+version             5.1.4
+categories          lang
+platforms           darwin
+maintainers         pmq openmaintainer
+description         powerful, lightweight programming language
+long_description    \
+    Lua is a powerful, light-weight programming language designed for \
+    extending applications. Lua is also frequently used as a general-purpose, \
+    standalone language.
 
-name                    lua
-version                 5.1.4
-categories              lang
-platforms               darwin
-maintainers             pmq openmaintainer
+homepage            http://www.lua.org
+master_sites        ${homepage}/ftp/
+checksums           sha1 2b11c8e60306efb7f0734b747588f57995493db7 \
+                    rmd160 c867c8364295d3e4fb4e4d8ebb27fa2b2312cdef
 
-description             powerful, lightweight programming language
-long_description        Lua is a powerful, light-weight programming language \
-			designed for extending applications. Lua is also frequently \
-			used as a general-purpose, standalone language.
+depends_lib         port:readline
+build.target        macosx
 
-homepage                http://www.lua.org
-master_sites		${homepage}/ftp/
-checksums               sha1 2b11c8e60306efb7f0734b747588f57995493db7 \
-			rmd160 c867c8364295d3e4fb4e4d8ebb27fa2b2312cdef
+test.run            yes
+test.env            DYLD_LIBRARY_PATH=./lib
 
-depends_lib		port:readline
-build.target		macosx
-
-test.run		yes
-test.env		DYLD_LIBRARY_PATH=./lib
-
 post-patch {
-	reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/Makefile
-	reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/src/luaconf.h
-	reinplace "s|/man/man1|/share/man/man1|g" ${worksrcpath}/Makefile
+    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/Makefile
+    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/src/luaconf.h
+    reinplace "s|/man/man1|/share/man/man1|g" ${worksrcpath}/Makefile
 
-	# for the pkgconfig file
-	reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/etc/lua.pc
+    # for the pkgconfig file
+    reinplace "s|/usr/local|${prefix}|g" ${worksrcpath}/etc/lua.pc
 }
 
 configure {
-	set myldflags ${configure.ldflags}
-	set cflags "${configure.cflags} ${configure.cppflags}"
+    set myldflags ${configure.ldflags}
+    set cflags "${configure.cflags} ${configure.cppflags}"
 
-	if {[variant_isset universal]} {
-		set myldflags "${myldflags} ${configure.universal_ldflags}"
-		set cflags "${cflags} ${configure.universal_cflags} ${configure.universal_cppflags}"
-	} else {
-		set myldflags "${myldflags} ${configure.ld_archflags}"
-		set cflags "${cflags} ${configure.cc_archflags}"
-	}
+    if {[variant_isset universal]} {
+        set myldflags "${myldflags} ${configure.universal_ldflags}"
+        set cflags "${cflags} ${configure.universal_cflags} ${configure.universal_cppflags}"
+    } else {
+        set myldflags "${myldflags} ${configure.ld_archflags}"
+        set cflags "${cflags} ${configure.cc_archflags}"
+    }
 
-	reinplace -E "/^MYLDFLAGS=/s|\$| ${myldflags}|" ${worksrcpath}/src/Makefile
-	reinplace -E "/^CFLAGS=/s|\$| ${cflags}|" ${worksrcpath}/src/Makefile
-	reinplace "s|CC= .*\$|CC= ${configure.cc}|" ${worksrcpath}/src/Makefile
+    reinplace -E "/^MYLDFLAGS=/s|\$| ${myldflags}|" ${worksrcpath}/src/Makefile
+    reinplace -E "/^CFLAGS=/s|\$| ${cflags}|" ${worksrcpath}/src/Makefile
+    reinplace "s|CC= .*\$|CC= ${configure.cc}|" ${worksrcpath}/src/Makefile
 }
 
 use_parallel_build  yes
 
-destroot.target	install INSTALL_TOP=${destroot}${prefix}
+destroot.target install INSTALL_TOP=${destroot}${prefix}
 post-destroot {
-	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
-	xinstall -m 0644 -W ${worksrcpath} COPYRIGHT HISTORY README ${destroot}${prefix}/share/doc/${name}
-	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/html
-	foreach html [glob ${worksrcpath}/doc/*.html ${worksrcpath}/doc/*.gif] {
-		xinstall -m 0644 ${html} ${destroot}${prefix}/share/doc/${name}/html
-	}
-	xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/test
-	foreach test [glob ${worksrcpath}/test/README ${worksrcpath}/test/*.lua] {
-		xinstall -m 0644 ${test} ${destroot}${prefix}/share/doc/${name}/test
-	}
-	xinstall -d -m 0755 ${destroot}${prefix}/lib/pkgconfig
-	xinstall -m 0644 ${worksrcpath}/etc/lua.pc ${destroot}${prefix}/lib/pkgconfig/lua.pc
+    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
+    xinstall -m 0644 -W ${worksrcpath} COPYRIGHT HISTORY README ${destroot}${prefix}/share/doc/${name}
+    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/html
+    foreach html [glob ${worksrcpath}/doc/*.html ${worksrcpath}/doc/*.gif] {
+        xinstall -m 0644 ${html} ${destroot}${prefix}/share/doc/${name}/html
+    }
+    xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}/test
+    foreach test [glob ${worksrcpath}/test/README ${worksrcpath}/test/*.lua] {
+        xinstall -m 0644 ${test} ${destroot}${prefix}/share/doc/${name}/test
+    }
+    xinstall -d -m 0755 ${destroot}${prefix}/lib/pkgconfig
+    xinstall -m 0644 ${worksrcpath}/etc/lua.pc ${destroot}${prefix}/lib/pkgconfig/lua.pc
 }
 
 livecheck.type  regex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110218/c826e65b/attachment.html>


More information about the macports-changes mailing list