summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/libdatrie/DESCR7
-rw-r--r--devel/libdatrie/Makefile22
-rw-r--r--devel/libdatrie/PLIST10
-rw-r--r--devel/libdatrie/buildlink3.mk19
-rw-r--r--devel/libdatrie/distinfo5
5 files changed, 63 insertions, 0 deletions
diff --git a/devel/libdatrie/DESCR b/devel/libdatrie/DESCR
new file mode 100644
index 00000000000..fd3da3f30c3
--- /dev/null
+++ b/devel/libdatrie/DESCR
@@ -0,0 +1,7 @@
+datrie is an implementation of double-array structure for representing trie, as
+proposed by Junichi Aoe.
+
+Trie is a kind of digital search tree, an efficient indexing method with O(1)
+time complexity for searching. Comparably as efficient as hashing, trie also
+provides flexibility on incremental matching and key spelling manipulation.
+This makes it ideal for lexical analyzers, as well as spelling dictionaries.
diff --git a/devel/libdatrie/Makefile b/devel/libdatrie/Makefile
new file mode 100644
index 00000000000..22d1d5b06ce
--- /dev/null
+++ b/devel/libdatrie/Makefile
@@ -0,0 +1,22 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/02/11 02:11:24 obache Exp $
+#
+
+DISTNAME= libdatrie-0.1.3
+CATEGORIES= devel
+MASTER_SITES= ftp://linux.thai.net/pub/ThaiLinux/software/libthai/
+
+MAINTAINER= obache@NetBSD.org
+HOMEPAGE= http://linux.thai.net/~thep/datrie/datrie.html
+COMMENT= Implementation of Double-Array Trie
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config
+
+PKGCONFIG_OVERRIDE+= datrie.pc.in
+
+CONFIGURE_ARGS+= --disable-doxygen-doc
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/devel/libdatrie/PLIST b/devel/libdatrie/PLIST
new file mode 100644
index 00000000000..b9427940831
--- /dev/null
+++ b/devel/libdatrie/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/02/11 02:11:24 obache Exp $
+bin/trietool
+include/datrie/sb-trie.h
+include/datrie/trie.h
+include/datrie/triedefs.h
+include/datrie/typedefs.h
+lib/libdatrie.la
+lib/pkgconfig/datrie.pc
+man/man1/trietool.1
+@dirrm include/datrie
diff --git a/devel/libdatrie/buildlink3.mk b/devel/libdatrie/buildlink3.mk
new file mode 100644
index 00000000000..9f848002bb0
--- /dev/null
+++ b/devel/libdatrie/buildlink3.mk
@@ -0,0 +1,19 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/02/11 02:11:24 obache Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+LIBDATRIE_BUILDLINK3_MK:= ${LIBDATRIE_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= libdatrie
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Nlibdatrie}
+BUILDLINK_PACKAGES+= libdatrie
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}libdatrie
+
+.if ${LIBDATRIE_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.libdatrie+= libdatrie>=0.1.3
+BUILDLINK_PKGSRCDIR.libdatrie?= ../../devel/libdatrie
+.endif # LIBDATRIE_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/devel/libdatrie/distinfo b/devel/libdatrie/distinfo
new file mode 100644
index 00000000000..2d172805391
--- /dev/null
+++ b/devel/libdatrie/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/02/11 02:11:24 obache Exp $
+
+SHA1 (libdatrie-0.1.3.tar.gz) = 5a41b911885e0aae84e9546df8f509e5949f2b07
+RMD160 (libdatrie-0.1.3.tar.gz) = 2a9825ecedaf03dace1eec1a5fc2a1bb22668b8c
+Size (libdatrie-0.1.3.tar.gz) = 357590 bytes