summaryrefslogtreecommitdiff
path: root/databases
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2008-09-04 12:10:28 +0000
committerobache <obache@pkgsrc.org>2008-09-04 12:10:28 +0000
commitf0ee1bc675581ba0ab9d015c5db38a04c3d249bd (patch)
treef843564c9a79913f3d601f6c973be220bd064548 /databases
parent4d4683c0456b61dfd61a910631721d8b7a58f2bc (diff)
downloadpkgsrc-f0ee1bc675581ba0ab9d015c5db38a04c3d249bd.tar.gz
Import tokyocabinet-1.3.7 as databases/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.
Diffstat (limited to 'databases')
-rw-r--r--databases/tokyocabinet/DESCR6
-rw-r--r--databases/tokyocabinet/Makefile41
-rw-r--r--databases/tokyocabinet/PLIST65
-rw-r--r--databases/tokyocabinet/buildlink3.mk25
-rw-r--r--databases/tokyocabinet/distinfo7
-rw-r--r--databases/tokyocabinet/patches/patch-aa53
-rw-r--r--databases/tokyocabinet/patches/patch-ab15
7 files changed, 212 insertions, 0 deletions
diff --git a/databases/tokyocabinet/DESCR b/databases/tokyocabinet/DESCR
new file mode 100644
index 00000000000..46c0f4b15a3
--- /dev/null
+++ b/databases/tokyocabinet/DESCR
@@ -0,0 +1,6 @@
+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.
diff --git a/databases/tokyocabinet/Makefile b/databases/tokyocabinet/Makefile
new file mode 100644
index 00000000000..e2daeb2bc3f
--- /dev/null
+++ b/databases/tokyocabinet/Makefile
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/09/04 12:10:28 obache Exp $
+#
+
+DISTNAME= tokyocabinet-1.3.7
+CATEGORIES= databases
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tokyocabinet/}
+
+MAINTAINER= obache@NetBSD.org
+HOMEPAGE= http://tokyocabinet.sourceforge.net/
+COMMENT= Modern implementation of DBM
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_TOOLS+= gmake pkg-config
+
+PKGCONFIG_OVERRIDE+= tokyocabinet.pc.in
+
+CONFIGURE_ARGS+= --enable-zlib
+CONFIGURE_ARGS+= --enable-bzip
+CONFIGURE_ARGS+= --enable-exlzma
+CONFIGURE_ARGS+= --enable-exlzo
+
+TEST_TARGET= check
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../archivers/lzmalib/buildlink3.mk"
+.include "../../archivers/lzo/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+PTHREAD_AUTO_VARS= yes
+.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none"
+CONFIGURE_ARGS+= --disable-pthread
+.else
+CONFIGURE_ARGS+= --enable-pthread
+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/tokyocabinet/PLIST b/databases/tokyocabinet/PLIST
new file mode 100644
index 00000000000..5108c925cae
--- /dev/null
+++ b/databases/tokyocabinet/PLIST
@@ -0,0 +1,65 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/09/04 12:10:28 obache Exp $
+bin/tcamgr
+bin/tcatest
+bin/tcbmgr
+bin/tcbmttest
+bin/tcbtest
+bin/tcfmgr
+bin/tcfmttest
+bin/tcftest
+bin/tchmgr
+bin/tchmttest
+bin/tchtest
+bin/tcucodec
+bin/tcumttest
+bin/tcutest
+include/tcadb.h
+include/tcbdb.h
+include/tcfdb.h
+include/tchdb.h
+include/tcutil.h
+lib/libtokyocabinet.a
+lib/libtokyocabinet.so
+lib/libtokyocabinet.so.5
+lib/libtokyocabinet.so.5.1.0
+lib/pkgconfig/tokyocabinet.pc
+libexec/tcawmgr.cgi
+man/man1/tcamgr.1
+man/man1/tcatest.1
+man/man1/tcbmgr.1
+man/man1/tcbmttest.1
+man/man1/tcbtest.1
+man/man1/tcfmgr.1
+man/man1/tcfmttest.1
+man/man1/tcftest.1
+man/man1/tchmgr.1
+man/man1/tchmttest.1
+man/man1/tchtest.1
+man/man1/tcucodec.1
+man/man1/tcumttest.1
+man/man1/tcutest.1
+man/man3/tcadb.3
+man/man3/tcbdb.3
+man/man3/tcfdb.3
+man/man3/tchdb.3
+man/man3/tclist.3
+man/man3/tcmap.3
+man/man3/tcmdb.3
+man/man3/tcmpool.3
+man/man3/tcutil.3
+man/man3/tcxstr.3
+man/man3/tokyocabinet.3
+share/tokyocabinet/COPYING
+share/tokyocabinet/ChangeLog
+share/tokyocabinet/THANKS
+share/tokyocabinet/doc/benchmark.pdf
+share/tokyocabinet/doc/common.css
+share/tokyocabinet/doc/icon16.png
+share/tokyocabinet/doc/index.html
+share/tokyocabinet/doc/index.ja.html
+share/tokyocabinet/doc/logo-ja.png
+share/tokyocabinet/doc/logo.png
+share/tokyocabinet/doc/spex-en.html
+share/tokyocabinet/doc/spex-ja.html
+@dirrm share/tokyocabinet/doc
+@dirrm share/tokyocabinet
diff --git a/databases/tokyocabinet/buildlink3.mk b/databases/tokyocabinet/buildlink3.mk
new file mode 100644
index 00000000000..580fdffd597
--- /dev/null
+++ b/databases/tokyocabinet/buildlink3.mk
@@ -0,0 +1,25 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/09/04 12:10:28 obache Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+TOKYOCABINET_BUILDLINK3_MK:= ${TOKYOCABINET_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= tokyocabinet
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ntokyocabinet}
+BUILDLINK_PACKAGES+= tokyocabinet
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}tokyocabinet
+
+.if ${TOKYOCABINET_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.tokyocabinet+= tokyocabinet>=1.3.7
+BUILDLINK_PKGSRCDIR.tokyocabinet?= ../../databases/tokyocabinet
+.endif # TOKYOCABINET_BUILDLINK3_MK
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../archivers/lzmalib/buildlink3.mk"
+.include "../../archivers/lzo/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/databases/tokyocabinet/distinfo b/databases/tokyocabinet/distinfo
new file mode 100644
index 00000000000..fff718c437d
--- /dev/null
+++ b/databases/tokyocabinet/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/09/04 12:10:28 obache Exp $
+
+SHA1 (tokyocabinet-1.3.7.tar.gz) = 23f25c9acc8e15ef785802fa0033516bc22dcf2a
+RMD160 (tokyocabinet-1.3.7.tar.gz) = 5e81109e7cded2fc9acd9158c9eb95b7eb4003a5
+Size (tokyocabinet-1.3.7.tar.gz) = 443873 bytes
+SHA1 (patch-aa) = 0bccf7e2f027a19af7d96f593aa302717a6c252f
+SHA1 (patch-ab) = ea56d5fe1176ac3a8d8546d2bd46eca6b63b3a55
diff --git a/databases/tokyocabinet/patches/patch-aa b/databases/tokyocabinet/patches/patch-aa
new file mode 100644
index 00000000000..ab8fe71ae65
--- /dev/null
+++ b/databases/tokyocabinet/patches/patch-aa
@@ -0,0 +1,53 @@
+$NetBSD: patch-aa,v 1.1.1.1 2008/09/04 12:10:28 obache Exp $
+
+--- configure.orig 2008-08-25 01:32:42.000000000 +0000
++++ configure
+@@ -1737,9 +1737,9 @@ MYDOCUMENTFILES="COPYING ChangeLog THANK
+ MYPCFILES="tokyocabinet.pc"
+
+ # Building flags
+-MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char -O2"
+-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"
++MYCFLAGS="-std=c99 -Wall -fPIC -fsigned-char"
++MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -DNDEBUG -D_GNU_SOURCE=1"
++MYLDFLAGS="-L. -L\$(LIBDIR)"
+ MYRUNPATH="\$(LIBDIR)"
+ MYLDLIBPATHENV="LD_LIBRARY_PATH"
+ MYPOSTCMD="true"
+@@ -4074,7 +4074,7 @@ _ACEOF
+ fi
+
+ fi
+-if test "$enable_exlzma" == "yes"
++if test "$enable_exlzma" = "yes"
+ then
+
+ { echo "$as_me:$LINENO: checking for main in -llzma" >&5
+@@ -4142,7 +4142,7 @@ _ACEOF
+ fi
+
+ fi
+-if test "$enable_exlzo" == "yes"
++if test "$enable_exlzo" = "yes"
+ then
+
+ { echo "$as_me:$LINENO: checking for main in -llzo2" >&5
+@@ -5427,7 +5427,7 @@ fi
+
+
+ fi
+-if test "$enable_exlzma" == "yes"
++if test "$enable_exlzma" = "yes"
+ then
+ if test "${ac_cv_header_lzmalib_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for lzmalib.h" >&5
+@@ -5564,7 +5564,7 @@ fi
+
+
+ fi
+-if test "$enable_exlzo" == "yes"
++if test "$enable_exlzo" = "yes"
+ then
+ if test "${ac_cv_header_lzo_lzo1x_h+set}" = set; then
+ { echo "$as_me:$LINENO: checking for lzo/lzo1x.h" >&5
diff --git a/databases/tokyocabinet/patches/patch-ab b/databases/tokyocabinet/patches/patch-ab
new file mode 100644
index 00000000000..f1e909cbfc8
--- /dev/null
+++ b/databases/tokyocabinet/patches/patch-ab
@@ -0,0 +1,15 @@
+$NetBSD: patch-ab,v 1.1.1.1 2008/09/04 12:10:28 obache Exp $
+
+--- Makefile.in.orig 2008-08-26 13:39:59.000000000 +0000
++++ Makefile.in
+@@ -50,8 +50,8 @@ CPPFLAGS = @MYCPPFLAGS@ \
+ -D_TC_PREFIX="\"$(prefix)\"" -D_TC_INCLUDEDIR="\"$(INCLUDEDIR)\"" \
+ -D_TC_LIBDIR="\"$(LIBDIR)\"" -D_TC_BINDIR="\"$(BINDIR)\"" -D_TC_LIBEXECDIR="\"$(LIBEXECDIR)\"" \
+ -D_TC_APPINC="\"-I$(INCLUDEDIR)\"" -D_TC_APPLIBS="\"-L$(LIBDIR) -ltokyocabinet @LIBS@\""
+-CFLAGS = @MYCFLAGS@
+-LDFLAGS = @MYLDFLAGS@
++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@