[36827] trunk/dports/devel

andrea.damore at macports.org andrea.damore at macports.org
Thu May 15 22:45:18 PDT 2008


Revision: 36827
          http://trac.macosforge.org/projects/macports/changeset/36827
Author:   andrea.damore at macports.org
Date:     2008-05-15 22:45:17 -0700 (Thu, 15 May 2008)

Log Message:
-----------
lua-expat is a XML parsing module for lua based on SAX, Simple API for XML.

Added Paths:
-----------
    trunk/dports/devel/lua-expat/
    trunk/dports/devel/lua-expat/Portfile
    trunk/dports/devel/lua-expat/files/
    trunk/dports/devel/lua-expat/files/patch-luaexpat.diff

Added: trunk/dports/devel/lua-expat/Portfile
===================================================================
--- trunk/dports/devel/lua-expat/Portfile	                        (rev 0)
+++ trunk/dports/devel/lua-expat/Portfile	2008-05-16 05:45:17 UTC (rev 36827)
@@ -0,0 +1,58 @@
+# $Id:$
+
+PortSystem 1.0
+
+name                    lua-expat
+version                 1.1
+revision                0
+categories              devel
+platforms               darwin
+maintainers             andrea.damore at macports.org
+description             SAX XML parser
+long_description        LuaExpat is a SAX XML parser based on the Expat library. \
+			LuaExpat is free software and uses the same license as Lua 5.1.
+
+homepage                http://www.keplerproject.org/luaexpat/index.html
+master_sites            http://luaforge.net/frs/download.php/2469/
+
+distname                luaexpat-${version}
+
+use_configure		no
+
+checksums	\
+			luaexpat-1.1.tar.gz \
+				md5  6ecb895ccf5cff1e7f2facd438b1f8d0 \
+				sha1  ea359bdbd346ee378c47179a17ac3ee410be5c9d \
+				rmd160  f661c0e7f22363f51862187e96306498addea9d9
+
+patchfiles              patch-luaexpat.diff
+
+patch.pre_args		-p1
+
+build.target		
+
+destroot	{
+	xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
+	file copy 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 libraries
+	xinstall -m 755 -d ${destroot}${prefix}/share/lua/5.1/lxp
+	foreach luadat [glob src/lxp/*.lua] {
+		xinstall -m 0644 ${luadat} ${destroot}${prefix}/share/lua/5.1/lxp
+	}
+	
+	# 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
+	}	
+}
\ No newline at end of file


Property changes on: trunk/dports/devel/lua-expat/Portfile
___________________________________________________________________
Name: svn:keywords
   + Id
Name: svn:eol-style
   + native

Added: trunk/dports/devel/lua-expat/files/patch-luaexpat.diff
===================================================================
--- trunk/dports/devel/lua-expat/files/patch-luaexpat.diff	                        (rev 0)
+++ trunk/dports/devel/lua-expat/files/patch-luaexpat.diff	2008-05-16 05:45:17 UTC (rev 36827)
@@ -0,0 +1,46 @@
+diff -ru luaexpat-1.1-orig/config luaexpat-1.1/config
+--- luaexpat-1.1-orig/config	2006-06-08 22:41:48.000000000 +0200
++++ luaexpat-1.1/config	2008-05-14 23:27:14.000000000 +0200
+@@ -1,23 +1,23 @@
+ # 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
++LUA_INC= /opt/local/include
+ # Expat includes directory
+-EXPAT_INC= /usr/local/include
++EXPAT_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
+ 
+ LIBNAME= $T.so.$V
+ # Lua version number
+ # (according to Lua 5.1 definition:
+ # first version digit * 100 + second version digit
+ # e.g. Lua 5.0.2 => 500, Lua 5.1 => 501, Lua 5.1.1 => 501)
+-LUA_VERSION_NUM= 500
++LUA_VERSION_NUM= 513
+ 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080515/76d24562/attachment.htm 


More information about the macports-changes mailing list