summaryrefslogtreecommitdiff
path: root/inputmethod/skk-jisyo-cdb
diff options
context:
space:
mode:
authorobache <obache>2010-09-10 09:00:38 +0000
committerobache <obache>2010-09-10 09:00:38 +0000
commit42b7563a04bb1596ef51d63d9b86e62ebbbebbee (patch)
tree08b09654c2315d64b4377bcf956f279dfccb4970 /inputmethod/skk-jisyo-cdb
parent09f4803cf461327e322a44fc7f4768357c2c4c69 (diff)
downloadpkgsrc-42b7563a04bb1596ef51d63d9b86e62ebbbebbee.tar.gz
Import skk-jisyo-cdb-201008 as inputmethod/skk-jisyo-cdb.
Packaged by Ryo ONODERA in pkgsrc-wip. A part of import request by PR#43818. A basic set of Kana-Kanji conversion dictionary developed by SKK project. This package is cdb format dictionary for dbskkd-cdb and so on.
Diffstat (limited to 'inputmethod/skk-jisyo-cdb')
-rw-r--r--inputmethod/skk-jisyo-cdb/DESCR2
-rw-r--r--inputmethod/skk-jisyo-cdb/Makefile45
-rw-r--r--inputmethod/skk-jisyo-cdb/PLIST2
-rw-r--r--inputmethod/skk-jisyo-cdb/distinfo5
4 files changed, 54 insertions, 0 deletions
diff --git a/inputmethod/skk-jisyo-cdb/DESCR b/inputmethod/skk-jisyo-cdb/DESCR
new file mode 100644
index 00000000000..77e7ae078d5
--- /dev/null
+++ b/inputmethod/skk-jisyo-cdb/DESCR
@@ -0,0 +1,2 @@
+A basic set of Kana-Kanji conversion dictionary developed by SKK project.
+This package is cdb format dictionary for dbskkd-cdb and so on.
diff --git a/inputmethod/skk-jisyo-cdb/Makefile b/inputmethod/skk-jisyo-cdb/Makefile
new file mode 100644
index 00000000000..2b99835f331
--- /dev/null
+++ b/inputmethod/skk-jisyo-cdb/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/09/10 09:00:38 obache Exp $
+#
+
+DISTNAME= SKK-JISYO.L.${SKKJISYO_VERS}
+PKGNAME= skk-jisyo-cdb-${SKKJISYO_VERS}
+CATEGORIES= japanese inputmethod
+MASTER_SITES= ${MASTER_SITE_FREEBSD_LOCAL:=matusita/skk-jisyo/}
+EXTRACT_SUFX= .bz2
+
+MAINTAINER= ryo_on@yk.rim.or.jp
+HOMEPAGE= http://openlab.ring.gr.jp/skk/wiki/wiki.cgi?page=SKK%BC%AD%BD%F1
+COMMENT= Dictionary collection for SKK
+
+PKG_DESTDIR_SUPPORT= user-destdir
+WRKSRC= ${WRKDIR}
+
+BUILD_DEPENDS+= tinycdb-[0-9]*:../../databases/tinycdb
+
+USE_LANGUAGES= # empty
+
+SKKJISYO_VERS= 201008
+
+INSTALLATION_DIRS+= ${PREFIX}/share/skk
+
+FIND_PREFIX:= CDBDIR=tinycdb
+
+do-build:
+ LC_ALL=C ${AWK} '/^[^;]/ { \
+ s = substr($$0, index($$0, " ") + 1); \
+ print "+" length($$1) "," length(s) ":" $$1 "->" s; \
+ } \
+ END { \
+ print ""; \
+ }' \
+ < ${WRKDIR}/SKK-JISYO.L.${SKKJISYO_VERS} | \
+ ${CDBDIR}/bin/cdb -c -t - \
+ ${WRKDIR}/SKK-JISYO.L.${SKKJISYO_VERS}.cdb
+
+
+do-install:
+ ${INSTALL_DATA} ${WRKDIR}/SKK-JISYO.L.${SKKJISYO_VERS}.cdb \
+ ${DESTDIR}${PREFIX}/share/skk/SKK-JISYO.L.cdb
+
+.include "../../mk/find-prefix.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/inputmethod/skk-jisyo-cdb/PLIST b/inputmethod/skk-jisyo-cdb/PLIST
new file mode 100644
index 00000000000..7a910263494
--- /dev/null
+++ b/inputmethod/skk-jisyo-cdb/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/09/10 09:00:38 obache Exp $
+share/skk/SKK-JISYO.L.cdb
diff --git a/inputmethod/skk-jisyo-cdb/distinfo b/inputmethod/skk-jisyo-cdb/distinfo
new file mode 100644
index 00000000000..c8e123bc148
--- /dev/null
+++ b/inputmethod/skk-jisyo-cdb/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/09/10 09:00:38 obache Exp $
+
+SHA1 (SKK-JISYO.L.201008.bz2) = e3c49ade05325a4156ce4e6bd90bdce9f662d1f5
+RMD160 (SKK-JISYO.L.201008.bz2) = 5194fb5b53856be39847b23ebf8a2ebda991f1f0
+Size (SKK-JISYO.L.201008.bz2) = 1694337 bytes