[76461] trunk/dports/devel

ryandesign at macports.org ryandesign at macports.org
Wed Feb 23 17:30:34 PST 2011


Revision: 76461
          http://trac.macports.org/changeset/76461
Author:   ryandesign at macports.org
Date:     2011-02-23 17:30:34 -0800 (Wed, 23 Feb 2011)
Log Message:
-----------
lpeg: new port, version 0.10.2; see #28527

Added Paths:
-----------
    trunk/dports/devel/lpeg/
    trunk/dports/devel/lpeg/Portfile
    trunk/dports/devel/lpeg/files/
    trunk/dports/devel/lpeg/files/patch-makefile.diff

Added: trunk/dports/devel/lpeg/Portfile
===================================================================
--- 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: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/devel/lpeg/files/patch-makefile.diff
===================================================================
--- 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110223/8c6046d6/attachment.html>


More information about the macports-changes mailing list