Import of pkgsrc-2013Q2

This commit is contained in:
2013-09-26 17:14:40 +02:00
commit 785076ae39
74991 changed files with 4380255 additions and 0 deletions

8
textproc/lua-expat/DESCR Normal file
View File

@@ -0,0 +1,8 @@
LuaExpat is a XML parser based on the Expat XML parser.
It allows Lua programs to:
- Process a XML document incrementally, thus being able to handle
huge documents without memory penalties;
- Register handler functions which are called by the parser during
the processing of the document, handling the document elements or text.

View File

@@ -0,0 +1,8 @@
===========================================================================
$NetBSD: MESSAGE,v 1.3 2009/12/15 12:43:04 fhajny Exp $
The examples have been installed in:
${PREFIX}/share/examples/lua
===========================================================================

View File

@@ -0,0 +1,34 @@
# $NetBSD: Makefile,v 1.17 2012/10/25 06:56:06 asau Exp $
#
DISTNAME= luaexpat-1.2.0
PKGNAME= ${DISTNAME:S/lua/lua-/}
CATEGORIES= textproc
MASTER_SITES= http://matthewwild.co.uk/projects/luaexpat/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://matthewwild.co.uk/projects/projects
COMMENT= XML parser for LUA based on expat
LICENSE= mit
USE_TOOLS+= gmake
MAKE_FILE= makefile
CFLAGS+= -fPIC
MAKE_FLAGS+= LUA_DIR=${BUILDLINK_PREFIX.lua}
MAKE_FLAGS+= LUA_INC=${BUILDLINK_PREFIX.lua}/include
MAKE_FLAGS+= EXPAT_INC=${BUILDLINK_PREFIX.expat}/include
MAKE_FLAGS+= LUA_VERSION_NUM=${LUA_VERSION_MAJOR}0${LUA_VERSION_MINOR}
BUILD_TARGET= lib
INSTALLATION_DIRS= ${LUA_CDIR} ${LUA_LDIR} share/examples/lua
do-install:
${INSTALL_LIB} ${WRKSRC}/src/lxp.so.${PKGVERSION} ${DESTDIR}${PREFIX}/${LUA_CDIR}/lxp.so
${INSTALL_DATA} ${WRKSRC}/src/lxp/lom.lua ${DESTDIR}${PREFIX}/${LUA_LDIR}/lom.lua
${INSTALL_DATA} ${WRKSRC}/tests/test.lua ${DESTDIR}${PREFIX}/share/examples/lua/lxp.lua
.include "../../textproc/expat/buildlink3.mk"
.include "../../lang/lua/module.mk"
.include "../../mk/bsd.pkg.mk"

4
textproc/lua-expat/PLIST Normal file
View File

@@ -0,0 +1,4 @@
@comment $NetBSD: PLIST,v 1.2 2009/12/15 12:43:04 fhajny Exp $
${LUA_CDIR}/lxp.so
${LUA_LDIR}/lom.lua
share/examples/lua/lxp.lua

View File

@@ -0,0 +1,7 @@
$NetBSD: distinfo,v 1.5 2011/06/04 23:13:40 schnoebe Exp $
SHA1 (luaexpat-1.2.0.tar.gz) = 76f036e6fb928a3e5f3c3ba1b854e5fef8e1b28f
RMD160 (luaexpat-1.2.0.tar.gz) = e92fb3447b3cd17bdd03ebfdaf000a1f001c59f2
Size (luaexpat-1.2.0.tar.gz) = 28621 bytes
SHA1 (patch-aa) = dd908d36c310b3a17a7e2319dc4f969a903f9402
SHA1 (patch-ac) = 61d9bb455ef189d6ceb5dd71b06f7218da29e2f9

View File

@@ -0,0 +1,17 @@
$NetBSD: patch-aa,v 1.3 2009/12/15 12:43:04 fhajny Exp $
Fix environment for true /bin/sh, LDFLAGS
--- makefile.orig 2006-06-08 20:41:48.000000000 +0000
+++ makefile
@@ -12,7 +12,9 @@ OBJS= src/lxplib.o $(COMPAT_O)
lib: src/$(LIBNAME)
src/$(LIBNAME) : $(OBJS)
- export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) -o src/$(LIBNAME) $(LIB_OPTION) $(OBJS) -lexpat
+ MACOSX_DEPLOYMENT_TARGET="10.3"
+ export MACOSX_DEPLOYMENT_TARGET
+ $(CC) -o src/$(LIBNAME) $(LIB_OPTION) $(OBJS) $(LDFLAGS) -lexpat -llua
$(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c

View File

@@ -0,0 +1,41 @@
$NetBSD: patch-ac,v 1.1 2009/12/15 12:43:04 fhajny Exp $
Standard lua locations, compiler fixes
--- config.orig 2006-06-08 20:41:48.000000000 +0000
+++ config
@@ -1,12 +1,12 @@
# Installation directories
# System's libraries directory (where binary libraries are installed)
-LUA_LIBDIR= /usr/local/lib/lua/5.0
+LUA_LIBDIR= $(PREFIX)
# System's lua directory (where Lua libraries are installed)
-LUA_DIR= /usr/local/share/lua/5.0
+LUA_DIR?= $(PREFIX)
# Lua includes directory
-LUA_INC= /usr/local/include
+LUA_INC?= $(PREFIX)/include
# Expat includes directory
-EXPAT_INC= /usr/local/include
+EXPAT_INC?= $(PREFIX)/include
# OS dependent
LIB_OPTION= -shared #for Linux
@@ -17,7 +17,7 @@ LIBNAME= $T.so.$V
# (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
@@ -31,6 +31,6 @@ CWARNS = -Wall -pedantic \
-Wshadow \
-Wwrite-strings
-CFLAGS = $(CWARNS) -ansi -O2 -I$(LUA_INC) \
+CFLAGS += -O2 -I$(LUA_INC) \
-I$(COMPAT_DIR) -I$(EXPAT_INC)
-CC = gcc
+CC? = gcc