summaryrefslogtreecommitdiff
path: root/inputmethod
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2010-09-18 11:04:17 +0000
committerobache <obache@pkgsrc.org>2010-09-18 11:04:17 +0000
commita256b5d1864a58152bc594c0b5e0ee3f9159ddfa (patch)
tree106dc2fe1b5b7cb1d64dd1e35a468c6588f7ab10 /inputmethod
parent5127bfd4248ac519b712a1429839b4aab1b2c9ba (diff)
downloadpkgsrc-a256b5d1864a58152bc594c0b5e0ee3f9159ddfa.tar.gz
Import multiskkserv-20100128 as inputmethod/multiskkserv.
Packagesd by Ryo ONODERA in pkgsrc-wip, import requested via PR#43819. multiskkserv is a skk server which can use multiple dictionaries. This server uses cdb format as the dictionary format. cdb is the efficient and constant (i.e. cannot add, delete, modify) database format by Dan J. Bernstein, which I think is the appropriate format for the system-wide constant dictionary storage.
Diffstat (limited to 'inputmethod')
-rw-r--r--inputmethod/multiskkserv/DESCR5
-rw-r--r--inputmethod/multiskkserv/Makefile47
-rw-r--r--inputmethod/multiskkserv/PLIST7
-rw-r--r--inputmethod/multiskkserv/distinfo5
-rw-r--r--inputmethod/multiskkserv/files/multiskkserv.sh17
5 files changed, 81 insertions, 0 deletions
diff --git a/inputmethod/multiskkserv/DESCR b/inputmethod/multiskkserv/DESCR
new file mode 100644
index 00000000000..b75987c84c5
--- /dev/null
+++ b/inputmethod/multiskkserv/DESCR
@@ -0,0 +1,5 @@
+multiskkserv is a skk server which can use multiple dictionaries.
+This server uses cdb format as the dictionary format. cdb is the
+efficient and constant (i.e. cannot add, delete, modify) database
+format by Dan J. Bernstein, which I think is the appropriate format
+for the system-wide constant dictionary storage.
diff --git a/inputmethod/multiskkserv/Makefile b/inputmethod/multiskkserv/Makefile
new file mode 100644
index 00000000000..57ab9087550
--- /dev/null
+++ b/inputmethod/multiskkserv/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/09/18 11:04:17 obache Exp $
+#
+
+DISTNAME= multiskkserv-20100128-ac
+PKGNAME= ${DISTNAME:S/-ac//}
+CATEGORIES= inputmethod japanese
+MASTER_SITES= http://ryo-on.users.sourceforge.net/distrib/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= ryo_on@yk.rim.or.jp
+HOMEPAGE= http://github.com/sina-ht/multiskkserv/
+COMMENT= Simple skk multi-dictionary server
+LICENSE= gnu-gpl-v2
+
+DEPENDS= skk-jisyo-cdb-[0-9]*:../../inputmethod/skk-jisyo-cdb
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+FIND_PREFIX:= SKKJISYOCDBDIR=skk-jisyo-cdb
+
+DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
+INSTALLATION_DIRS= ${DOCSDIR}
+
+INSTALL_DOCS= README \
+ README.j
+
+USE_LIBTOOL= yes
+GNU_CONFIGURE= yes
+
+RCD_SCRIPTS= multiskkserv
+
+FILES_SUBST= SKKJISYOCDBDIR=${SKKJISYOCDBDIR}
+
+post-install:
+.for filename in ${INSTALL_DOCS}
+ ${INSTALL_DATA} ${WRKSRC}/${filename} ${DESTDIR}/${DOCSDIR}
+.endfor
+
+SUBST_CLASSES+= pthread
+SUBST_STAGE.pthread= pre-configure
+SUBST_FILES.pthread= configure
+SUBST_SED.pthread= -e 's/-D_REENTRANT/${PTHREAD_CFLAGS}/g'
+SUBST_SED.pthread+= -e 's/-lpthread/${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}/g'
+
+.include "../../mk/find-prefix.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/inputmethod/multiskkserv/PLIST b/inputmethod/multiskkserv/PLIST
new file mode 100644
index 00000000000..71900f29d1c
--- /dev/null
+++ b/inputmethod/multiskkserv/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/09/18 11:04:17 obache Exp $
+bin/skkdic-p2cdb
+sbin/multiskkserv
+sbin/multiskkserv-ctl
+share/doc/multiskkserv/README
+share/doc/multiskkserv/README.j
+share/examples/rc.d/multiskkserv
diff --git a/inputmethod/multiskkserv/distinfo b/inputmethod/multiskkserv/distinfo
new file mode 100644
index 00000000000..96d796b2f91
--- /dev/null
+++ b/inputmethod/multiskkserv/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/09/18 11:04:17 obache Exp $
+
+SHA1 (multiskkserv-20100128-ac.tar.bz2) = 0b6594439582a22a334f3a188a57c7ddf7c00bba
+RMD160 (multiskkserv-20100128-ac.tar.bz2) = 0116ef3b8b40ad46886a1687d20c738229338afe
+Size (multiskkserv-20100128-ac.tar.bz2) = 436233 bytes
diff --git a/inputmethod/multiskkserv/files/multiskkserv.sh b/inputmethod/multiskkserv/files/multiskkserv.sh
new file mode 100644
index 00000000000..c0a83a5b7f4
--- /dev/null
+++ b/inputmethod/multiskkserv/files/multiskkserv.sh
@@ -0,0 +1,17 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: multiskkserv.sh,v 1.1.1.1 2010/09/18 11:04:17 obache Exp $
+#
+# PROVIDE: multiskkserv
+# REQUIRE: DAEMON
+
+. /etc/rc.subr
+
+name="multiskkserv"
+rcvar=$name
+command="@PREFIX@/sbin/${name}"
+
+multiskkserv_flags="@SKKJISYOCDBDIR@/share/skk/SKK-JISYO.L.cdb &"
+
+load_rc_config $name
+run_rc_command "$1"