summaryrefslogtreecommitdiff
path: root/databases/kyotocabinet
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-11-21 11:29:52 +0000
committerobache <obache@pkgsrc.org>2014-11-21 11:29:52 +0000
commitc58dc2bbb546d855446388b9a6facceb6ab75147 (patch)
treeed4f11276d5c7913df718a062d5d3fbf2cd01543 /databases/kyotocabinet
parent3c92c156e3a48f18b5ecdbfbf8f6a6c62ee2a22c (diff)
downloadpkgsrc-c58dc2bbb546d855446388b9a6facceb6ab75147.tar.gz
Import kyotocabinet-1.2.76 as databases/kyotocabinet.
Kyoto 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. Each key must be unique within a database. There is neither concept of data tables nor data types. Records are organized in hash table or B+ tree.
Diffstat (limited to 'databases/kyotocabinet')
-rw-r--r--databases/kyotocabinet/DESCR7
-rw-r--r--databases/kyotocabinet/Makefile35
-rw-r--r--databases/kyotocabinet/PLIST333
-rw-r--r--databases/kyotocabinet/buildlink3.mk12
-rw-r--r--databases/kyotocabinet/distinfo8
-rw-r--r--databases/kyotocabinet/options.mk32
-rw-r--r--databases/kyotocabinet/patches/patch-configure52
-rw-r--r--databases/kyotocabinet/patches/patch-kccommon.h15
-rw-r--r--databases/kyotocabinet/patches/patch-kcthread.cc15
9 files changed, 509 insertions, 0 deletions
diff --git a/databases/kyotocabinet/DESCR b/databases/kyotocabinet/DESCR
new file mode 100644
index 00000000000..c31389ac02c
--- /dev/null
+++ b/databases/kyotocabinet/DESCR
@@ -0,0 +1,7 @@
+Kyoto 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. Each key must be unique within a
+database. There is neither concept of data tables nor data types.
+Records are organized in hash table or B+ tree.
diff --git a/databases/kyotocabinet/Makefile b/databases/kyotocabinet/Makefile
new file mode 100644
index 00000000000..97ebf52caf7
--- /dev/null
+++ b/databases/kyotocabinet/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1 2014/11/21 11:29:52 obache Exp $
+#
+
+DISTNAME= kyotocabinet-1.2.76
+CATEGORIES= databases
+MASTER_SITES= http://fallabs.com/kyotocabinet/pkg/
+
+MAINTAINER= obache@NetBSD.org
+HOMEPAGE= http://fallabs.com/kyotocabinet/
+COMMENT= Straightforward implementation of DBM
+LICENSE= gnu-gpl-v3
+
+GNU_CONFIGURE= yes
+USE_GCC_RUNTIME=yes
+USE_TOOLS+= gmake pkg-config
+USE_LANGUAGES= c c++
+
+PKGCONFIG_OVERRIDE+= kyotocabinet.pc.in
+
+.include "options.mk"
+
+TEST_TARGET= check
+
+PTHREAD_AUTO_VARS= yes
+.include "../../mk/pthread.buildlink3.mk"
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/compiler.mk"
+# using GCC atomic functions only available with i586 in kcthread.cc
+.if !empty(CC_VERSION:Mgcc-*) && !empty(MACHINE_ARCH:Mi[34]86)
+GNU_ARCH.i386= i586
+CFLAGS+= -march=i586
+.endif
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/databases/kyotocabinet/PLIST b/databases/kyotocabinet/PLIST
new file mode 100644
index 00000000000..3788aa62393
--- /dev/null
+++ b/databases/kyotocabinet/PLIST
@@ -0,0 +1,333 @@
+@comment $NetBSD: PLIST,v 1.1 2014/11/21 11:29:52 obache Exp $
+bin/kccachetest
+bin/kcdirmgr
+bin/kcdirtest
+bin/kcforestmgr
+bin/kcforesttest
+bin/kcgrasstest
+bin/kchashmgr
+bin/kchashtest
+bin/kclangctest
+bin/kcpolymgr
+bin/kcpolytest
+bin/kcprototest
+bin/kcstashtest
+bin/kctreemgr
+bin/kctreetest
+bin/kcutilmgr
+bin/kcutiltest
+include/kccachedb.h
+include/kccommon.h
+include/kccompare.h
+include/kccompress.h
+include/kcdb.h
+include/kcdbext.h
+include/kcdirdb.h
+include/kcfile.h
+include/kchashdb.h
+include/kclangc.h
+include/kcmap.h
+include/kcplantdb.h
+include/kcpolydb.h
+include/kcprotodb.h
+include/kcregex.h
+include/kcstashdb.h
+include/kctextdb.h
+include/kcthread.h
+include/kcutil.h
+lib/libkyotocabinet.a
+lib/libkyotocabinet.so
+lib/libkyotocabinet.so.16
+lib/libkyotocabinet.so.16.13.0
+lib/pkgconfig/kyotocabinet.pc
+man/man1/kccachetest.1
+man/man1/kcdirmgr.1
+man/man1/kcdirtest.1
+man/man1/kcforestmgr.1
+man/man1/kcforesttest.1
+man/man1/kcgrasstest.1
+man/man1/kchashmgr.1
+man/man1/kchashtest.1
+man/man1/kclangctest.1
+man/man1/kcpolymgr.1
+man/man1/kcpolytest.1
+man/man1/kcprototest.1
+man/man1/kcstashtest.1
+man/man1/kctreemgr.1
+man/man1/kctreetest.1
+man/man1/kcutilmgr.1
+man/man1/kcutiltest.1
+share/doc/kyotocabinet/COPYING
+share/doc/kyotocabinet/ChangeLog
+share/doc/kyotocabinet/FOSSEXCEPTION
+share/doc/kyotocabinet/doc/api/annotated.html
+share/doc/kyotocabinet/doc/api/bc_s.png
+share/doc/kyotocabinet/doc/api/classes.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ArcfourCompressor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ArcfourCompressor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1AtomicInt64-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1AtomicInt64.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB_1_1Cursor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB_1_1Cursor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB_1_1Error-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB_1_1Error.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB_1_1FileProcessor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB_1_1FileProcessor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB_1_1Logger-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB_1_1Logger.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB_1_1MetaTrigger-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB_1_1MetaTrigger.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB_1_1ProgressChecker-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1BasicDB_1_1ProgressChecker.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1CacheDB-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1CacheDB.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1CacheDB_1_1Cursor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1CacheDB_1_1Cursor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1Comparator-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1Comparator.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1Compressor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1Compressor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1CondMap-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1CondMap.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1CondVar-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1CondVar.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DB-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DB.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DB_1_1Cursor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DB_1_1Cursor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DB_1_1Visitor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DB_1_1Visitor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DecimalComparator-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DecimalComparator.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DecimalDescendingComparator-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DecimalDescendingComparator.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DirDB-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DirDB.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DirDB_1_1Cursor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DirDB_1_1Cursor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DirStream-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1DirStream.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1File-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1File.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1HashDB-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1HashDB.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1HashDB_1_1Cursor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1HashDB_1_1Cursor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1IndexDB-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1IndexDB.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LZMA-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LZMA.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LZMACompressor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LZMACompressor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LZO-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LZO.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LZOCompressor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LZOCompressor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LexicalComparator-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LexicalComparator.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LexicalDescendingComparator-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LexicalDescendingComparator.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LinkedHashMap-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LinkedHashMap.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LinkedHashMap_1_1Iterator-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1LinkedHashMap_1_1Iterator.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1MapReduce-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1MapReduce.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1MapReduce_1_1ReduceTaskQueue_1_1ReduceTask-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1MapReduce_1_1ReduceTaskQueue_1_1ReduceTask.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1MapReduce_1_1ValueIterator-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1MapReduce_1_1ValueIterator.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1Mutex-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1Mutex.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1PlantDB-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1PlantDB.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1PlantDB_1_1Cursor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1PlantDB_1_1Cursor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1PolyDB-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1PolyDB.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1PolyDB_1_1Cursor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1PolyDB_1_1Cursor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ProtoDB-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ProtoDB.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ProtoDB_1_1Cursor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ProtoDB_1_1Cursor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1RWLock-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1RWLock.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1Regex-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1Regex.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ScopedMutex-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ScopedMutex.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ScopedRWLock-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ScopedRWLock.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ScopedSpinLock-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ScopedSpinLock.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ScopedSpinRWLock-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ScopedSpinRWLock.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1SlottedMutex-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1SlottedMutex.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1SlottedRWLock-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1SlottedRWLock.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1SlottedSpinLock-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1SlottedSpinLock.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1SlottedSpinRWLock-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1SlottedSpinRWLock.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1SpinLock-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1SpinLock.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1SpinRWLock-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1SpinRWLock.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1StashDB-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1StashDB.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1StashDB_1_1Cursor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1StashDB_1_1Cursor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TSD-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TSD.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TSDKey-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TSDKey.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TaskQueue-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TaskQueue.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TaskQueue_1_1Task-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TaskQueue_1_1Task.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TextDB-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TextDB.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TextDB_1_1Cursor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TextDB_1_1Cursor.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1Thread-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1Thread.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TinyArrayList-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TinyArrayList.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TinyHashMap-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TinyHashMap.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TinyHashMap_1_1Iterator-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TinyHashMap_1_1Iterator.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TinyHashMap_1_1Sorter-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1TinyHashMap_1_1Sorter.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ZLIB-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ZLIB.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ZLIBCompressor-members.html
+share/doc/kyotocabinet/doc/api/classkyotocabinet_1_1ZLIBCompressor.html
+share/doc/kyotocabinet/doc/api/closed.png
+share/doc/kyotocabinet/doc/api/doxygen.css
+share/doc/kyotocabinet/doc/api/doxygen.png
+share/doc/kyotocabinet/doc/api/files.html
+share/doc/kyotocabinet/doc/api/functions.html
+share/doc/kyotocabinet/doc/api/functions_0x62.html
+share/doc/kyotocabinet/doc/api/functions_0x63.html
+share/doc/kyotocabinet/doc/api/functions_0x64.html
+share/doc/kyotocabinet/doc/api/functions_0x65.html
+share/doc/kyotocabinet/doc/api/functions_0x66.html
+share/doc/kyotocabinet/doc/api/functions_0x67.html
+share/doc/kyotocabinet/doc/api/functions_0x68.html
+share/doc/kyotocabinet/doc/api/functions_0x69.html
+share/doc/kyotocabinet/doc/api/functions_0x6a.html
+share/doc/kyotocabinet/doc/api/functions_0x6b.html
+share/doc/kyotocabinet/doc/api/functions_0x6c.html
+share/doc/kyotocabinet/doc/api/functions_0x6d.html
+share/doc/kyotocabinet/doc/api/functions_0x6e.html
+share/doc/kyotocabinet/doc/api/functions_0x6f.html
+share/doc/kyotocabinet/doc/api/functions_0x70.html
+share/doc/kyotocabinet/doc/api/functions_0x72.html
+share/doc/kyotocabinet/doc/api/functions_0x73.html
+share/doc/kyotocabinet/doc/api/functions_0x74.html
+share/doc/kyotocabinet/doc/api/functions_0x75.html
+share/doc/kyotocabinet/doc/api/functions_0x76.html
+share/doc/kyotocabinet/doc/api/functions_0x77.html
+share/doc/kyotocabinet/doc/api/functions_0x78.html
+share/doc/kyotocabinet/doc/api/functions_0x79.html
+share/doc/kyotocabinet/doc/api/functions_0x7e.html
+share/doc/kyotocabinet/doc/api/functions_enum.html
+share/doc/kyotocabinet/doc/api/functions_eval.html
+share/doc/kyotocabinet/doc/api/functions_func.html
+share/doc/kyotocabinet/doc/api/functions_func_0x62.html
+share/doc/kyotocabinet/doc/api/functions_func_0x63.html
+share/doc/kyotocabinet/doc/api/functions_func_0x64.html
+share/doc/kyotocabinet/doc/api/functions_func_0x65.html
+share/doc/kyotocabinet/doc/api/functions_func_0x66.html
+share/doc/kyotocabinet/doc/api/functions_func_0x67.html
+share/doc/kyotocabinet/doc/api/functions_func_0x68.html
+share/doc/kyotocabinet/doc/api/functions_func_0x69.html
+share/doc/kyotocabinet/doc/api/functions_func_0x6a.html
+share/doc/kyotocabinet/doc/api/functions_func_0x6b.html
+share/doc/kyotocabinet/doc/api/functions_func_0x6c.html
+share/doc/kyotocabinet/doc/api/functions_func_0x6d.html
+share/doc/kyotocabinet/doc/api/functions_func_0x6e.html
+share/doc/kyotocabinet/doc/api/functions_func_0x6f.html
+share/doc/kyotocabinet/doc/api/functions_func_0x70.html
+share/doc/kyotocabinet/doc/api/functions_func_0x72.html
+share/doc/kyotocabinet/doc/api/functions_func_0x73.html
+share/doc/kyotocabinet/doc/api/functions_func_0x74.html
+share/doc/kyotocabinet/doc/api/functions_func_0x75.html
+share/doc/kyotocabinet/doc/api/functions_func_0x76.html
+share/doc/kyotocabinet/doc/api/functions_func_0x77.html
+share/doc/kyotocabinet/doc/api/functions_func_0x79.html
+share/doc/kyotocabinet/doc/api/functions_func_0x7e.html
+share/doc/kyotocabinet/doc/api/functions_vars.html
+share/doc/kyotocabinet/doc/api/globals.html
+share/doc/kyotocabinet/doc/api/globals_defs.html
+share/doc/kyotocabinet/doc/api/globals_eval.html
+share/doc/kyotocabinet/doc/api/globals_func.html
+share/doc/kyotocabinet/doc/api/globals_type.html
+share/doc/kyotocabinet/doc/api/globals_vars.html
+share/doc/kyotocabinet/doc/api/hierarchy.html
+share/doc/kyotocabinet/doc/api/index.html
+share/doc/kyotocabinet/doc/api/kccachedb_8h.html
+share/doc/kyotocabinet/doc/api/kccommon_8h.html
+share/doc/kyotocabinet/doc/api/kccompare_8h.html
+share/doc/kyotocabinet/doc/api/kccompress_8h.html
+share/doc/kyotocabinet/doc/api/kcdb_8h.html
+share/doc/kyotocabinet/doc/api/kcdbext_8h.html
+share/doc/kyotocabinet/doc/api/kcdirdb_8h.html
+share/doc/kyotocabinet/doc/api/kcfile_8h.html
+share/doc/kyotocabinet/doc/api/kchashdb_8h.html
+share/doc/kyotocabinet/doc/api/kclangc_8h.html
+share/doc/kyotocabinet/doc/api/kcmap_8h.html
+share/doc/kyotocabinet/doc/api/kcplantdb_8h.html
+share/doc/kyotocabinet/doc/api/kcpolydb_8h.html
+share/doc/kyotocabinet/doc/api/kcprotodb_8h.html
+share/doc/kyotocabinet/doc/api/kcregex_8h.html
+share/doc/kyotocabinet/doc/api/kctextdb_8h.html
+share/doc/kyotocabinet/doc/api/kcthread_8h.html
+share/doc/kyotocabinet/doc/api/kcutil_8h.html
+share/doc/kyotocabinet/doc/api/namespacekyotocabinet.html
+share/doc/kyotocabinet/doc/api/namespacemembers.html
+share/doc/kyotocabinet/doc/api/namespacemembers_func.html
+share/doc/kyotocabinet/doc/api/namespacemembers_type.html
+share/doc/kyotocabinet/doc/api/namespacemembers_vars.html
+share/doc/kyotocabinet/doc/api/namespaces.html
+share/doc/kyotocabinet/doc/api/nav_f.png
+share/doc/kyotocabinet/doc/api/nav_h.png
+share/doc/kyotocabinet/doc/api/open.png
+share/doc/kyotocabinet/doc/api/structKCCUR-members.html
+share/doc/kyotocabinet/doc/api/structKCCUR.html
+share/doc/kyotocabinet/doc/api/structKCDB-members.html
+share/doc/kyotocabinet/doc/api/structKCDB.html
+share/doc/kyotocabinet/doc/api/structKCIDX-members.html
+share/doc/kyotocabinet/doc/api/structKCIDX.html
+share/doc/kyotocabinet/doc/api/structKCLIST-members.html
+share/doc/kyotocabinet/doc/api/structKCLIST.html
+share/doc/kyotocabinet/doc/api/structKCMAP-members.html
+share/doc/kyotocabinet/doc/api/structKCMAP.html
+share/doc/kyotocabinet/doc/api/structKCMAPITER-members.html
+share/doc/kyotocabinet/doc/api/structKCMAPITER.html
+share/doc/kyotocabinet/doc/api/structKCMAPSORT-members.html
+share/doc/kyotocabinet/doc/api/structKCMAPSORT.html
+share/doc/kyotocabinet/doc/api/structKCREC-members.html
+share/doc/kyotocabinet/doc/api/structKCREC.html
+share/doc/kyotocabinet/doc/api/structKCSTR-members.html
+share/doc/kyotocabinet/doc/api/structKCSTR.html
+share/doc/kyotocabinet/doc/api/structkyotocabinet_1_1File_1_1Status-members.html
+share/doc/kyotocabinet/doc/api/structkyotocabinet_1_1File_1_1Status.html
+share/doc/kyotocabinet/doc/api/tab_a.png
+share/doc/kyotocabinet/doc/api/tab_b.png
+share/doc/kyotocabinet/doc/api/tab_h.png
+share/doc/kyotocabinet/doc/api/tab_s.png
+share/doc/kyotocabinet/doc/api/tabs.css
+share/doc/kyotocabinet/doc/command.html
+share/doc/kyotocabinet/doc/common.css
+share/doc/kyotocabinet/doc/icon16.png
+share/doc/kyotocabinet/doc/index.html
+share/doc/kyotocabinet/doc/index.ja.html
+share/doc/kyotocabinet/doc/logo.png
+share/doc/kyotocabinet/doc/spex.html
+share/doc/kyotocabinet/kyotocabinet.idl
diff --git a/databases/kyotocabinet/buildlink3.mk b/databases/kyotocabinet/buildlink3.mk
new file mode 100644
index 00000000000..e3e16301d05
--- /dev/null
+++ b/databases/kyotocabinet/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2014/11/21 11:29:52 obache Exp $
+
+BUILDLINK_TREE+= kyotocabinet
+
+.if !defined(KYOTOCABINET_BUILDLINK3_MK)
+KYOTOCABINET_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.kyotocabinet+= kyotocabinet>=1.2.72
+BUILDLINK_PKGSRCDIR.kyotocabinet?= ../../databases/kyotocabinet
+.endif # KYOTOCABINET_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -kyotocabinet
diff --git a/databases/kyotocabinet/distinfo b/databases/kyotocabinet/distinfo
new file mode 100644
index 00000000000..989f3dce780
--- /dev/null
+++ b/databases/kyotocabinet/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2014/11/21 11:29:52 obache Exp $
+
+SHA1 (kyotocabinet-1.2.76.tar.gz) = a4ec70d08ca6c8f510dbc329d5c27b55030d3521
+RMD160 (kyotocabinet-1.2.76.tar.gz) = 3bc2feb6e01310764c422cc93d9a98ced1da2cfb
+Size (kyotocabinet-1.2.76.tar.gz) = 951930 bytes
+SHA1 (patch-configure) = b443de68ff2865bf94780c2995302b6c42c5dc13
+SHA1 (patch-kccommon.h) = 5126d9af028bc2a86c3212797a0d5eb1f9de8d83
+SHA1 (patch-kcthread.cc) = d09d280cd9589b10bbc10b29dc51d40ce074cc7f
diff --git a/databases/kyotocabinet/options.mk b/databases/kyotocabinet/options.mk
new file mode 100644
index 00000000000..80796755cf5
--- /dev/null
+++ b/databases/kyotocabinet/options.mk
@@ -0,0 +1,32 @@
+# $NetBSD: options.mk,v 1.1 2014/11/21 11:29:52 obache Exp $
+#
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.kyotocabinet
+PKG_SUPPORTED_OPTIONS= zlib
+PKG_OPTIONS_OPTIONAL_GROUPS= codec
+PKG_OPTIONS_GROUP.codec= lzma lzo
+PKG_SUGGESTED_OPTIONS= zlib
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mzlib)
+.include "../../devel/zlib/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-zlib
+CONFIGURE_ARGS+= --with-zlib=${BUILDLINK_PREFIX.zlib}
+.else
+CONFIGURE_ARGS+= --disable-zlib
+.endif
+
+.if !empty(PKG_OPTIONS:Mlzma)
+.include "../../archivers/lzmalib/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-lzma
+.else
+CONFIGURE_ARGS+= --disable-lzma
+.endif
+
+.if !empty(PKG_OPTIONS:Mlzo)
+.include "../../archivers/lzo/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-lzo
+.else
+CONFIGURE_ARGS+= --disable-lzo
+.endif
diff --git a/databases/kyotocabinet/patches/patch-configure b/databases/kyotocabinet/patches/patch-configure
new file mode 100644
index 00000000000..4ec2dcf5af1
--- /dev/null
+++ b/databases/kyotocabinet/patches/patch-configure
@@ -0,0 +1,52 @@
+$NetBSD: patch-configure,v 1.1 2014/11/21 11:29:52 obache Exp $
+
+* prevent unwated overwrite variables
+
+--- configure.orig 2012-05-24 11:31:45.000000000 +0000
++++ configure
+@@ -2109,12 +2109,12 @@ MYDOCUMENTFILES="COPYING FOSSEXCEPTION C
+ MYPCFILES="kyotocabinet.pc"
+
+ # Building flags
+-MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char -g0 -O2"
+-MYCXXFLAGS="-Wall -fPIC -fsigned-char -g0 -O2"
+-MYCPPFLAGS="-I. -I\$(INCLUDEDIR) -I/usr/local/include"
++MYCFLAGS="-Wall -ansi -pedantic -fPIC -fsigned-char -g0"
++MYCXXFLAGS="-Wall -fPIC -fsigned-char -g0"
++MYCPPFLAGS="-I. -I\$(INCLUDEDIR)"
+ MYCPPFLAGS="$MYCPPFLAGS -DNDEBUG -D_GNU_SOURCE=1"
+-MYCPPFLAGS="$MYCPPFLAGS -D_FILE_OFFSET_BITS=64 -D_REENTRANT -D__EXTENSIONS__"
+-MYLDFLAGS="-L. -L\$(LIBDIR) -L/usr/local/lib"
++MYCPPFLAGS="$MYCPPFLAGS -D_FILE_OFFSET_BITS=64 -D__EXTENSIONS__"
++MYLDFLAGS="-L. -L\$(LIBDIR)"
+ MYCMDLDFLAGS=""
+ MYCMDLIBS=""
+ MYLDLIBPATH=""
+@@ -2122,11 +2122,8 @@ MYLDLIBPATHENV="LD_LIBRARY_PATH"
+ MYPOSTCMD="true"
+
+ # Building paths
+-PATH=".:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin:$PATH"
+-CPATH=".:/usr/local/include:$CPATH"
+ LIBRARY_PATH=".:/usr/local/lib:$LIBRARY_PATH"
+ LD_LIBRARY_PATH=".:/usr/local/lib:$LD_LIBRARY_PATH"
+-PKG_CONFIG_PATH=".:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH"
+ export PATH CPATH LIBRARY_PATH LD_LIBRARY_PATH PKG_CONFIG_PATH
+
+
+@@ -3977,15 +3974,6 @@ $as_echo "#define AC_APPLE_UNIVERSAL_BUI
+
+
+ # System-depending optimization
+-printf 'checking for 64-bit availability... '
+-if printf 'main() {}' | $CC -xc -m64 -o config.tmp - >config.tmp 2>&1
+-then
+- MYCFLAGS="-m64 $MYCFLAGS"
+- MYCXXFLAGS="-m64 $MYCXXFLAGS"
+- printf 'yes\n'
+-else
+- printf 'no\n'
+-fi
+ if test "$enable_opt" != "no"
+ then
+ printf 'checking for CPU optimization availability... '
diff --git a/databases/kyotocabinet/patches/patch-kccommon.h b/databases/kyotocabinet/patches/patch-kccommon.h
new file mode 100644
index 00000000000..f50cfbdb3c7
--- /dev/null
+++ b/databases/kyotocabinet/patches/patch-kccommon.h
@@ -0,0 +1,15 @@
+$NetBSD: patch-kccommon.h,v 1.1 2014/11/21 11:29:52 obache Exp $
+
+* NetBSD also missing modfl(3)
+
+--- kccommon.h.orig 2012-05-24 16:27:59.000000000 +0000
++++ kccommon.h
+@@ -68,7 +68,7 @@ extern "C" {
+ #define snprintf _snprintf
+ #endif
+
+-#if defined(__CYGWIN__)
++#if defined(__CYGWIN__) || defined(__NetBSD__)
+ inline long double modfl(long double val, long double* iptr) {
+ double integ;
+ double fract = std::modf(val, &integ);
diff --git a/databases/kyotocabinet/patches/patch-kcthread.cc b/databases/kyotocabinet/patches/patch-kcthread.cc
new file mode 100644
index 00000000000..d65260569b6
--- /dev/null
+++ b/databases/kyotocabinet/patches/patch-kcthread.cc
@@ -0,0 +1,15 @@
+$NetBSD: patch-kcthread.cc,v 1.1 2014/11/21 11:29:52 obache Exp $
+
+* NetBSD also use generic method
+
+--- kcthread.cc.orig 2012-05-24 16:27:59.000000000 +0000
++++ kcthread.cc
+@@ -402,7 +402,7 @@ bool Mutex::lock_try() {
+ * Try to get the lock.
+ */
+ bool Mutex::lock_try(double sec) {
+-#if defined(_SYS_MSVC_) || defined(_SYS_MINGW_) || defined(_SYS_CYGWIN_) || defined(_SYS_MACOSX_)
++#if defined(_SYS_MSVC_) || defined(_SYS_MINGW_) || defined(_SYS_CYGWIN_) || defined(_SYS_MACOSX_) || defined(_SYS_NETBSD_)
+ _assert_(sec >= 0.0);
+ if (lock_try()) return true;
+ double end = time() + sec;