[140257] trunk/dports/devel/lua-lpeg

devans at macports.org devans at macports.org
Mon Sep 14 14:08:13 PDT 2015


Revision: 140257
          https://trac.macports.org/changeset/140257
Author:   devans at macports.org
Date:     2015-09-14 14:08:13 -0700 (Mon, 14 Sep 2015)
Log Message:
-----------
lua-lpeg: update to version 0.12.2 for lua 5.3 compatibility, configuration, livecheck.

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

Modified: trunk/dports/devel/lua-lpeg/Portfile
===================================================================
--- trunk/dports/devel/lua-lpeg/Portfile	2015-09-14 20:16:26 UTC (rev 140256)
+++ trunk/dports/devel/lua-lpeg/Portfile	2015-09-14 21:08:13 UTC (rev 140257)
@@ -5,7 +5,7 @@
 
 name                lua-lpeg
 license             MIT
-version             0.11
+version             0.12.2
 categories          devel
 platforms           darwin
 maintainers         gmail.com:andremm openmaintainer
@@ -19,16 +19,16 @@
 # upstream archive had a stealth update, setting subdir since it's likely to happen again
 dist_subdir         ${name}/${version}_1
 
-checksums           rmd160  2738018cab6231afbaee8045c45543e59ba8fa8d \
-                    sha256  234a3be92be6b263bb5b91df7067f1c1e14be2d38dae11184af5fa37436a0571
+checksums           rmd160  fb6d1613b668edbddfbffd378642827f0c1626ee \
+                    sha256  6aad270b91d1b1c6fd75f68e162329a04a644e50e917d55f46cc8384b7120004
 
 depends_build       port:pkgconfig
 depends_lib         port:lua
 
 patchfiles          patch-makefile.diff
 post-patch {
-    reinplace  "s|%%CFLAGS%%|${configure.cflags}  `${prefix}/bin/pkg-config lua --cflags`|" ${worksrcpath}/makefile
-    reinplace "s|%%LDFLAGS%%|${configure.ldflags} `${prefix}/bin/pkg-config lua --libs`|"   ${worksrcpath}/makefile
+    reinplace  "s|%%CFLAGS%%|${configure.cflags}  [exec ${prefix}/bin/pkg-config lua --cflags]|" ${worksrcpath}/makefile
+    reinplace "s|%%LDFLAGS%%|${configure.ldflags} [exec ${prefix}/bin/pkg-config lua --libs]|"   ${worksrcpath}/makefile
 
     reinplace "s|/usr/bin/env lua5.1|${prefix}/bin/lua|" ${worksrcpath}/test.lua
 }
@@ -37,7 +37,7 @@
 
 variant universal {}
 
-build.target
+build.target        macosx
 build.args          CC="${configure.cc} [get_canonical_archflags]" \
                     LUADIR=${prefix}/include 
 
@@ -59,3 +59,5 @@
     xinstall -m 644 -W ${worksrcpath} HISTORY lpeg-128.gif lpeg.html re.html ${destroot}${lua_docdir}
     xinstall -m 755 ${worksrcpath}/test.lua ${destroot}${lua_exampledir}
 }
+
+livecheck.regex     "lpeg-(\\d+(?:\\.\\d+)*)${extract.suffix}"

Modified: trunk/dports/devel/lua-lpeg/files/patch-makefile.diff
===================================================================
--- trunk/dports/devel/lua-lpeg/files/patch-makefile.diff	2015-09-14 20:16:26 UTC (rev 140256)
+++ trunk/dports/devel/lua-lpeg/files/patch-makefile.diff	2015-09-14 21:08:13 UTC (rev 140257)
@@ -1,23 +1,22 @@
---- makefile.orig	2013-03-29 08:31:31.000000000 +0100
-+++ makefile	2013-03-29 08:32:58.000000000 +0100
-@@ -22,16 +22,16 @@
- 	#  -Wunreachable-code \
+--- makefile.orig	2015-03-04 09:34:17.000000000 -0800
++++ makefile	2015-09-14 13:11:45.000000000 -0700
+@@ -22,8 +22,8 @@
+ # -Wunreachable-code \
  
  
--CFLAGS = $(CWARNS) $(COPT) -ansi -I$(LUADIR) -fPIC
-+CFLAGS = $(CWARNS) $(COPT) -ansi -I$(LUADIR) -fPIC %%CFLAGS%%
- CC = gcc
+-CFLAGS = $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC
+-CC = gcc
++CFLAGS = $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC %%CFLAGS%%
++#CC = gcc
  
- # For Linux
--DLLFLAGS = -shared -fPIC
--ENV = 
-+#DLLFLAGS = -shared -fPIC
-+#ENV = 
+ FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o
  
+@@ -33,7 +33,7 @@
+ 
  # For Mac OS
- # ENV = MACOSX_DEPLOYMENT_TARGET=10.4
--# DLLFLAGS = -bundle -undefined dynamic_lookup
-+ DLLFLAGS = -bundle -undefined dynamic_lookup %%LDFLAGS%%
+ macosx:
+-	make lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup"
++	make lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup %%LDFLAGS%%"
  
- 
- FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o
+ lpeg.so: $(FILES)
+ 	env $(CC) $(DLLFLAGS) $(FILES) -o lpeg.so
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150914/26c40182/attachment.html>


More information about the macports-changes mailing list