[36987] trunk/dports/devel
andrea.damore at macports.org
andrea.damore at macports.org
Thu May 22 02:40:49 PDT 2008
Revision: 36987
http://trac.macosforge.org/projects/macports/changeset/36987
Author: andrea.damore at macports.org
Date: 2008-05-22 02:40:35 -0700 (Thu, 22 May 2008)
Log Message:
-----------
new port for lua-zip and patch fix for lua-expat, will change both patches in future
Modified Paths:
--------------
trunk/dports/devel/lua-expat/Portfile
trunk/dports/devel/lua-expat/files/patch-luaexpat.diff
Added Paths:
-----------
trunk/dports/devel/lua-zip/
trunk/dports/devel/lua-zip/Portfile
trunk/dports/devel/lua-zip/files/
trunk/dports/devel/lua-zip/files/patch-luazip.diff
Modified: trunk/dports/devel/lua-expat/Portfile
===================================================================
--- trunk/dports/devel/lua-expat/Portfile 2008-05-22 07:43:52 UTC (rev 36986)
+++ trunk/dports/devel/lua-expat/Portfile 2008-05-22 09:40:35 UTC (rev 36987)
@@ -29,11 +29,13 @@
patch.pre_args -p1
+depends_lib port:expat
+
build.target
destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
- file copy README ${destroot}${prefix}/share/doc/${name}
+ file copy ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
foreach doc [glob doc/us/*] {
xinstall -m 0644 ${doc} ${destroot}${prefix}/share/doc/${name}
}
Modified: trunk/dports/devel/lua-expat/files/patch-luaexpat.diff
===================================================================
--- trunk/dports/devel/lua-expat/files/patch-luaexpat.diff 2008-05-22 07:43:52 UTC (rev 36986)
+++ trunk/dports/devel/lua-expat/files/patch-luaexpat.diff 2008-05-22 09:40:35 UTC (rev 36987)
@@ -32,15 +32,3 @@
COMPAT_DIR= ../compat/src
# Compilation parameters
-diff -ru luaexpat-1.1-orig/makefile luaexpat-1.1/makefile
---- luaexpat-1.1-orig/makefile 2006-06-08 22:41:48.000000000 +0200
-+++ luaexpat-1.1/makefile 2008-05-15 07:56:31.000000000 +0200
-@@ -12,7 +12,7 @@
- lib: src/$(LIBNAME)
-
- src/$(LIBNAME) : $(OBJS)
-- export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) -o src/$(LIBNAME) $(LIB_OPTION) $(OBJS) -lexpat
-+ export MACOSX_DEPLOYMENT_TARGET="10.5"; $(CC) -o src/$(LIBNAME) $(LIB_OPTION) $(OBJS) -lexpat
-
- $(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
- $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
Added: trunk/dports/devel/lua-zip/Portfile
===================================================================
--- trunk/dports/devel/lua-zip/Portfile (rev 0)
+++ trunk/dports/devel/lua-zip/Portfile 2008-05-22 09:40:35 UTC (rev 36987)
@@ -0,0 +1,55 @@
+# $Id$
+
+PortSystem 1.0
+
+name lua-zip
+version 1.2.3
+categories devel
+platforms darwin
+maintainers andrea.damore
+description LuaZip is a Lua extension library used to read files stored inside zip files.
+long_description ${description}
+
+homepage http://www.keplerproject.org/luazip/index.html
+master_sites http://luaforge.net/frs/download.php/2493/
+
+distname luazip-${version}
+
+use_configure no
+
+checksums \
+ luazip-1.2.3.tar.gz \
+ md5 8129ba93a8df6ebd324fee9adca23fae \
+ sha1 40d2589d5060582ce5dc1dd87604114eb42067ea \
+ rmd160 035d290488a7d67efe9df461e6c790ea67c908dd
+
+patchfiles patch-luazip.diff
+
+patch.pre_args -p1
+
+depends_lib port:libzzip
+
+build.target
+#build.args-append CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib
+
+destroot {
+ # Docs
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+ file copy ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}
+ foreach doc [glob doc/us/*] {
+ xinstall -m 0644 ${doc} ${destroot}${prefix}/share/doc/${name}
+ }
+
+ # Binaries
+ xinstall -m 755 -d ${destroot}${prefix}/lib/lua/5.1
+ foreach lib [glob src/*.so.*] {
+ xinstall -m 0644 ${lib} ${destroot}${prefix}/lib/lua/5.1
+ }
+
+ # Lua includes
+ xinstall -m 755 -d ${destroot}${prefix}/include/lua5.1
+ foreach inc [glob src/*.h] {
+ xinstall -m 0644 ${inc} ${destroot}${prefix}/include/lua5.1
+ }
+}
+
Property changes on: trunk/dports/devel/lua-zip/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/devel/lua-zip/files/patch-luazip.diff
===================================================================
--- trunk/dports/devel/lua-zip/files/patch-luazip.diff (rev 0)
+++ trunk/dports/devel/lua-zip/files/patch-luazip.diff 2008-05-22 09:40:35 UTC (rev 36987)
@@ -0,0 +1,38 @@
+diff -ru luazip-1.2.3-orig/config luazip-1.2.3/config
+--- luazip-1.2.3-orig/config 2006-07-24 03:24:36.000000000 +0200
++++ luazip-1.2.3/config 2008-05-22 10:54:15.000000000 +0200
+@@ -1,26 +1,26 @@
+ # Installation directories
+ # System's libraries directory (where binary libraries are installed)
+-LUA_LIBDIR= /usr/local/lib/lua/5.0
++LUA_LIBDIR= /opt/local/lib/lua/5.1
+ # System's lua directory (where Lua libraries are installed)
+-LUA_DIR= /usr/local/share/lua/5.0
++LUA_DIR= /opt/local/share/lua/5.1
+ # Lua includes directory
+-LUA_INC= /usr/local/include/lua5
++LUA_INC= /opt/local/include/lua5
+ # Zziplib includes directory
+-ZZLIB_INC= /usr/local/include
++ZZLIB_INC= /opt/local/include
+
+ # OS dependent
+-LIB_OPTION= -shared #for Linux
+-#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
++#LIB_OPTION= -shared #for Linux
++LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
+
+ # Lua version number (first and second digits of target version)
+-LUA_VERSION_NUM= 500
++LUA_VERSION_NUM= 513
+ LIBNAME= $T.so.$V
+ COMPAT_DIR= ../compat/src
+
+ # Compilation directives
+ WARN= -O2 -Wall -fPIC -W -Waggregate-return -Wcast-align -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings
+ INCS= -I$(LUA_INC) -I$(ZZLIB_INC) -I$(COMPAT_DIR)
+-CFLAGS= $(WARN) $(INCS)
++CFLAGS= $(WARN) $(INCS) -L/opt/local/lib
+ CC= gcc
+
+ # $Id: config,v 1.6 2006/07/24 01:24:36 tomas Exp $
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080522/582b53dc/attachment.htm
More information about the macports-changes
mailing list