diff options
author | obache <obache> | 2009-01-24 03:04:54 +0000 |
---|---|---|
committer | obache <obache> | 2009-01-24 03:04:54 +0000 |
commit | 0e97ef09f80398574da26e663055f56b67eae5a8 (patch) | |
tree | e5fd80307bcc457c5e4f846a4f8f79a918f2652d | |
parent | 566b76811c14d54e21f08f35bdf63ad032693d2c (diff) | |
download | pkgsrc-0e97ef09f80398574da26e663055f56b67eae5a8.tar.gz |
Import lua-tokyocabinet-1.4 as databases/lua-tokyocabinet.
Tokyo Cabinet is a library of routines for managing a database. The database is
a simple data file containing records, each is a pair of a key and a value.
Every key and value is serial bytes with variable length. Both binary data and
character string can be used as a key and a value. There is neither concept of
data tables nor data types. Records are organized in hash table, B+ tree, or
fixed-length array.
This package provides Lua binding of Tokyo Cabinet.
-rw-r--r-- | databases/lua-tokyocabinet/DESCR | 8 | ||||
-rw-r--r-- | databases/lua-tokyocabinet/Makefile | 47 | ||||
-rw-r--r-- | databases/lua-tokyocabinet/PLIST | 11 | ||||
-rw-r--r-- | databases/lua-tokyocabinet/distinfo | 7 | ||||
-rw-r--r-- | databases/lua-tokyocabinet/patches/patch-aa | 17 | ||||
-rw-r--r-- | databases/lua-tokyocabinet/patches/patch-ab | 22 |
6 files changed, 112 insertions, 0 deletions
diff --git a/databases/lua-tokyocabinet/DESCR b/databases/lua-tokyocabinet/DESCR new file mode 100644 index 00000000000..84e8cc32fe6 --- /dev/null +++ b/databases/lua-tokyocabinet/DESCR @@ -0,0 +1,8 @@ +Tokyo Cabinet is a library of routines for managing a database. The database is +a simple data file containing records, each is a pair of a key and a value. +Every key and value is serial bytes with variable length. Both binary data and +character string can be used as a key and a value. There is neither concept of +data tables nor data types. Records are organized in hash table, B+ tree, or +fixed-length array. + +This package provides Lua binding of Tokyo Cabinet. diff --git a/databases/lua-tokyocabinet/Makefile b/databases/lua-tokyocabinet/Makefile new file mode 100644 index 00000000000..51f8e5bd0f2 --- /dev/null +++ b/databases/lua-tokyocabinet/Makefile @@ -0,0 +1,47 @@ +# $NetBSD: Makefile,v 1.1.1.1 2009/01/24 03:04:54 obache Exp $ +# + +DISTNAME= tokyocabinet-lua-1.4 +PKGNAME= ${LUA_PKGPREFIX}-${DISTNAME:S/-lua-/-/} +CATEGORIES= databases +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tokyocabinet/} + +MAINTAINER= obache@NetBSD.org +HOMEPAGE= http://tokyocabinet.sourceforge.net/luadoc/ +COMMENT= Lua binding of Tokyo Cabinet + +PKG_DESTDIR_SUPPORT= user-destdir + +GNU_CONFIGURE= yes +USE_LANGUAGES= c +USE_TOOLS+= pkg-config pax + +TEST_TARGET= check +TEST_ENV+= LUA_CDIR=${WRKSRC} + +FIND_PREFIX:= LUADIR=lua +.include "../../mk/find-prefix.mk" + +REPLACE_INTERPRETER+= lua +REPLACE.lua.old= .*lua +REPLACE.lua.new= ${LUADIR}/bin/lua +REPLACE_FILES.lua= *.lua + +INSTALLATION_DIRS+= share/tokyocabinet/doc/lua + +post-install: + cd ${WRKSRC}/doc && pax -rwpe . \ + ${DESTDIR}${PREFIX}/share/tokyocabinet/doc/lua + +BUILDLINK_API_DEPENDS.tokyocabinet+= tokyocabinet>=1.3.11 +.include "../../databases/tokyocabinet/buildlink3.mk" +.include "../../lang/lua/module.mk" +PTHREAD_AUTO_VARS= yes +.include "../../mk/pthread.buildlink3.mk" +.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} != "none" +SUBST_CLASSES+= pthread +SUBST_STAGE.pthread= pre-configure +SUBST_FILES.pthread= configure +SUBST_SED.pthread= -e 's|-lpthread|${PTHREAD_LIBS}|' +.endif +.include "../../mk/bsd.pkg.mk" diff --git a/databases/lua-tokyocabinet/PLIST b/databases/lua-tokyocabinet/PLIST new file mode 100644 index 00000000000..10f5718aea6 --- /dev/null +++ b/databases/lua-tokyocabinet/PLIST @@ -0,0 +1,11 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2009/01/24 03:04:54 obache Exp $ +bin/tcbtest.lua +bin/tcftest.lua +bin/tchtest.lua +bin/tcutest.lua +${LUA_CDIR}/tokyocabinet.so +share/tokyocabinet/doc/lua/index.html +share/tokyocabinet/doc/lua/luadoc.css +share/tokyocabinet/doc/lua/modules/tokyocabinet.html +@dirrm share/tokyocabinet/doc/lua/modules +@dirrm share/tokyocabinet/doc/lua diff --git a/databases/lua-tokyocabinet/distinfo b/databases/lua-tokyocabinet/distinfo new file mode 100644 index 00000000000..efc638d17c3 --- /dev/null +++ b/databases/lua-tokyocabinet/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1.1.1 2009/01/24 03:04:54 obache Exp $ + +SHA1 (tokyocabinet-lua-1.4.tar.gz) = ce151ae386dca68ad8fa3328decdd4951cabd3c6 +RMD160 (tokyocabinet-lua-1.4.tar.gz) = 0b65270f0ae747bc8e4ba0aa994b1b3d3610cd13 +Size (tokyocabinet-lua-1.4.tar.gz) = 86225 bytes +SHA1 (patch-aa) = a02449c57d232192058c5673fbd3910220db856f +SHA1 (patch-ab) = 73a6c1e9f06128fb42cf3168eb6975ffb746f667 diff --git a/databases/lua-tokyocabinet/patches/patch-aa b/databases/lua-tokyocabinet/patches/patch-aa new file mode 100644 index 00000000000..e21f2f530cf --- /dev/null +++ b/databases/lua-tokyocabinet/patches/patch-aa @@ -0,0 +1,17 @@ +$NetBSD: patch-aa,v 1.1.1.1 2009/01/24 03:04:54 obache Exp $ + +--- Makefile.in.orig 2008-10-12 04:17:48.000000000 +0000 ++++ Makefile.in +@@ -32,9 +32,9 @@ DESTDIR = + + # Building configuration + CC = @CC@ +-CPPFLAGS = @MYCPPFLAGS@ +-CFLAGS = @MYCFLAGS@ +-LDFLAGS = @MYLDFLAGS@ ++CPPFLAGS = @CPPFLAGS@ @MYCPPFLAGS@ ++CFLAGS = @CFLAGS@ @MYCFLAGS@ ++LDFLAGS = @LDFLAGS@ @MYLDFLAGS@ + LIBS = @LIBS@ + LDENV = LD_RUN_PATH=/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@:. + RUNENV = @MYLDLIBPATHENV@=.:/lib:/usr/lib:$(LIBDIR):$(HOME)/lib:/usr/local/lib:@MYRUNPATH@ diff --git a/databases/lua-tokyocabinet/patches/patch-ab b/databases/lua-tokyocabinet/patches/patch-ab new file mode 100644 index 00000000000..22af8fc5811 --- /dev/null +++ b/databases/lua-tokyocabinet/patches/patch-ab @@ -0,0 +1,22 @@ +$NetBSD: patch-ab,v 1.1.1.1 2009/01/24 03:04:54 obache Exp $ + +--- configure.orig 2008-10-11 05:55:55.000000000 +0000 ++++ configure +@@ -1697,16 +1697,13 @@ MYCOMMANDFILES="tcutest.lua tchtest.lua + MYLUALIBDIR="" + + # Building flags +-MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char -O2" ++MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char" + MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -L$HOME/include -L/usr/local/include -DNDEBUG -D_GNU_SOURCE=1" + MYLDFLAGS="-L. -L\$(LIBDIR) -L$HOME/lib -L/usr/local/lib" + MYRUNPATH="\$(LIBDIR)" + MYLDLIBPATHENV="LD_LIBRARY_PATH" + + # Building paths +-pathtmp="$PATH" +-PATH="$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin" +-PATH="$PATH:/usr/ccs/bin:/usr/ucb:/usr/xpg4/bin:/usr/xpg6/bin:$pathtmp" + LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LIBRARY_PATH" + LD_LIBRARY_PATH="$HOME/lib:/usr/local/lib:$LD_LIBRARY_PATH" + CPATH="$HOME/include:/usr/local/include:$CPATH" |