Added: trunk/dports/devel/lpeg/Portfile (0 => 76461)
--- trunk/dports/devel/lpeg/Portfile (rev 0)
+++ trunk/dports/devel/lpeg/Portfile 2011-02-24 01:30:34 UTC (rev 76461)
@@ -0,0 +1,54 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+
+name lpeg
+version 0.10.2
+categories devel
+platforms darwin
+maintainers gmail.com:andremm
+
+description Parsing Expression Grammars for Lua
+
+long_description LPeg is a new pattern-matching library for Lua, based on \
+ Parsing Expression Grammars (PEGs).
+
+homepage http://www.inf.puc-rio.br/~roberto/lpeg/lpeg.html
+master_sites http://www.inf.puc-rio.br/~roberto/lpeg/
+
+checksums sha1 f2cd5857efb6e1bb02dfb9fbd68e74a451467462 \
+ rmd160 77dc2f7ca88ac84e6f185cf6077aaf88a130c3af
+
+depends_build port:pkgconfig
+
+depends_lib port:lua
+
+patchfiles patch-makefile.diff
+
+use_configure no
+
+variant universal {}
+if {[variant_isset universal]} {
+ set archflags ${configure.universal_cflags}
+} else {
+ set archflags ${configure.cc_archflags}
+}
+
+build.target
+build.args CC="${configure.cc} ${archflags}" \
+ LUADIR=${prefix}/include
+
+destroot {
+ set lua_cmod [exec ${prefix}/bin/pkg-config lua --variable INSTALL_CMOD]
+ set lua_lmod [exec ${prefix}/bin/pkg-config lua --variable INSTALL_LMOD]
+
+ xinstall -m 755 -d ${destroot}${lua_cmod} ${destroot}${lua_lmod}
+
+ xinstall ${worksrcpath}/lpeg.so ${destroot}${lua_cmod}
+ xinstall ${worksrcpath}/re.lua ${destroot}${lua_lmod}
+
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}/html/
+ xinstall -m 644 ${worksrcpath}/HISTORY ${destroot}${prefix}/share/doc/${name}/
+ xinstall -m 644 -W ${worksrcpath} lpeg-128.gif lpeg.html re.html ${destroot}${prefix}/share/doc/${name}/html/
+}
Property changes on: trunk/dports/devel/lpeg/Portfile
___________________________________________________________________
Added: trunk/dports/devel/lpeg/files/patch-makefile.diff (0 => 76461)
--- trunk/dports/devel/lpeg/files/patch-makefile.diff (rev 0)
+++ trunk/dports/devel/lpeg/files/patch-makefile.diff 2011-02-24 01:30:34 UTC (rev 76461)
@@ -0,0 +1,17 @@
+--- makefile.orig 2011-02-16 09:03:25.000000000 -0600
++++ makefile 2011-02-23 19:22:58.000000000 -0600
+@@ -25,12 +25,12 @@
+ CC = gcc
+
+ # For Linux
+-DLLFLAGS = -shared -fpic
++# DLLFLAGS = -shared -fpic
+ ENV =
+
+ # For Mac OS
+ # ENV = MACOSX_DEPLOYMENT_TARGET=10.4
+-# DLLFLAGS = -bundle -undefined dynamic_lookup
++DLLFLAGS = -bundle -undefined dynamic_lookup
+
+ lpeg.so: lpeg.o
+ env $(ENV) $(CC) $(DLLFLAGS) lpeg.o -o lpeg.so