luaexpat-1.1, lua library for the expat XML parser

from scott vokes
This commit is contained in:
jolan 2009-08-15 18:19:02 +00:00
parent e81c743dde
commit 9b086db4cb
5 changed files with 95 additions and 0 deletions

View File

@ -0,0 +1,45 @@
# $OpenBSD: Makefile,v 1.1.1.1 2009/08/15 18:19:02 jolan Exp $
SHARED_ONLY = Yes
COMMENT = lua library for the expat XML parser
DISTNAME = luaexpat-1.1
CATEGORIES = textproc
HOMEPAGE = http://www.keplerproject.org/luaexpat/
MAINTAINER = Scott Vokes <vokes.s@gmail.com>
# MIT
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
WANTLIB = expat
MASTER_SITES = http://luaforge.net/frs/download.php/2469/
MODULES = lang/lua
REGRESS_DEPENDS = ::textproc/luaexpat
MAKE_ENV+= LUA_INC="${LOCALBASE}/include"
USE_GMAKE = Yes
MAKE_FILE = makefile
ALL_TARGET = lib
LUA = ${LOCALBASE}/bin/lua
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/lua/5.1
${INSTALL_DATA_DIR} ${PREFIX}/lib/lua/5.1/lxp
${INSTALL_DATA_DIR} ${PREFIX}/share/lua/5.1
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/luaexpat
${INSTALL_DATA} ${WRKSRC}/src/lxp.so ${PREFIX}/lib/lua/5.1
${INSTALL_DATA} ${WRKSRC}/src/lxp/lom.lua ${PREFIX}/lib/lua/5.1/lxp
${INSTALL_DATA} ${WRKSRC}/doc/us/{examples,index,license,lom,manual}.html \
${PREFIX}/share/doc/luaexpat
${INSTALL_DATA} ${WRKSRC}/doc/us/luaexpat.png ${PREFIX}/share/doc/luaexpat
do-regress:
cd ${WRKSRC}/tests && ${LUA} test-lom.lua && ${LUA} test.lua
.include <bsd.port.mk>

View File

@ -0,0 +1,5 @@
MD5 (luaexpat-1.1.tar.gz) = bsuJXM9c/x5/L6zUOLH40A==
RMD160 (luaexpat-1.1.tar.gz) = 9mHA5/IjY/UYYhh+ljBkmK3eqdk=
SHA1 (luaexpat-1.1.tar.gz) = 6jWb29NG7jeMRxeaF6w+5BC+XJ0=
SHA256 (luaexpat-1.1.tar.gz) = nXCd3GBmMPm53D86r8sqfB/LJnUADAmXjYo3l0507/0=
SIZE (luaexpat-1.1.tar.gz) = 27907

View File

@ -0,0 +1,33 @@
$OpenBSD: patch-config,v 1.1.1.1 2009/08/15 18:19:02 jolan Exp $
--- config.orig Thu Jun 8 15:41:48 2006
+++ config Sat Aug 15 13:02:52 2009
@@ -6,18 +6,18 @@ LUA_DIR= /usr/local/share/lua/5.0
# Lua includes directory
LUA_INC= /usr/local/include
# Expat includes directory
-EXPAT_INC= /usr/local/include
+EXPAT_INC= /usr/include
# OS dependent
-LIB_OPTION= -shared #for Linux
+LIB_OPTION= -shared -fPIC #for Linux
#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
-LIBNAME= $T.so.$V
+LIBNAME= $T.so
# 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= 501
COMPAT_DIR= ../compat/src
# Compilation parameters
@@ -32,5 +32,5 @@ CWARNS = -Wall -pedantic \
-Wwrite-strings
CFLAGS = $(CWARNS) -ansi -O2 -I$(LUA_INC) \
- -I$(COMPAT_DIR) -I$(EXPAT_INC)
+ -I$(COMPAT_DIR) -I$(EXPAT_INC) -shared -fPIC
CC = gcc

View File

@ -0,0 +1 @@
LuaExpat is a SAX XML parser based on the Expat library.

View File

@ -0,0 +1,11 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2009/08/15 18:19:02 jolan Exp $
lib/lua/5.1/lxp.so
lib/lua/5.1/lxp/
lib/lua/5.1/lxp/lom.lua
share/doc/luaexpat/
share/doc/luaexpat/examples.html
share/doc/luaexpat/index.html
share/doc/luaexpat/license.html
share/doc/luaexpat/lom.html
share/doc/luaexpat/luaexpat.png
share/doc/luaexpat/manual.html