summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2007-01-02 15:18:12 +0000
committerobache <obache@pkgsrc.org>2007-01-02 15:18:12 +0000
commit95e6aa6b3564fe6676c05b51d3d3719db9ebb370 (patch)
tree71e1177b4e8b977dcdacca01829599197d29058e
parentceebb73d3f8ba7caf2885f8018e8407d7d96054c (diff)
downloadpkgsrc-95e6aa6b3564fe6676c05b51d3d3719db9ebb370.tar.gz
Add kasumi version 1.0.1.
Imported from pkgsrc-wip-jp, suggested in PR 35336. And I fixed pkglint warnings. Kasumi is a dictionary management tool for anthy kana-kanji conversion system.
-rw-r--r--inputmethod/kasumi/DESCR1
-rw-r--r--inputmethod/kasumi/Makefile24
-rw-r--r--inputmethod/kasumi/PLIST5
-rw-r--r--inputmethod/kasumi/distinfo6
-rw-r--r--inputmethod/kasumi/patches/patch-aa34
5 files changed, 70 insertions, 0 deletions
diff --git a/inputmethod/kasumi/DESCR b/inputmethod/kasumi/DESCR
new file mode 100644
index 00000000000..9df900a416d
--- /dev/null
+++ b/inputmethod/kasumi/DESCR
@@ -0,0 +1 @@
+Kasumi is a dictionary management tool for anthy kana-kanji conversion system.
diff --git a/inputmethod/kasumi/Makefile b/inputmethod/kasumi/Makefile
new file mode 100644
index 00000000000..f0001f92fea
--- /dev/null
+++ b/inputmethod/kasumi/Makefile
@@ -0,0 +1,24 @@
+# $NetBSD: Makefile,v 1.1.1.1 2007/01/02 15:18:12 obache Exp $
+
+DISTNAME= kasumi-1.0.1
+CATEGORIES= inputmethod japanese
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP:=kasumi/20685/}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://kasumi.sourceforge.jp/
+COMMENT= Dictionary management tool for anthy
+
+USE_X11= yes
+USE_PKGLOCALEDIR= yes
+GNU_CONFIGURE= yes
+
+USE_LANGUAGES+= c c++
+
+BUILDLINK_API_DEPENDS.anthy+= anthy>=6520
+BUILDLINK_API_DEPENDS.gtk2+= gtk2+>=2.4
+
+.include "../../inputmethod/anthy/buildlink3.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/inputmethod/kasumi/PLIST b/inputmethod/kasumi/PLIST
new file mode 100644
index 00000000000..ae763da25bf
--- /dev/null
+++ b/inputmethod/kasumi/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2007/01/02 15:18:12 obache Exp $
+bin/kasumi
+share/kasumi/kasumi.png
+${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/kasumi.mo
+@dirrm share/kasumi
diff --git a/inputmethod/kasumi/distinfo b/inputmethod/kasumi/distinfo
new file mode 100644
index 00000000000..9721047280c
--- /dev/null
+++ b/inputmethod/kasumi/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2007/01/02 15:18:12 obache Exp $
+
+SHA1 (kasumi-1.0.1.tar.gz) = 8cd7d5d9b91875a7dea5450fcdfdcbabdd1d52ce
+RMD160 (kasumi-1.0.1.tar.gz) = 2c49afa2b6c0de63d303cefdfd71457c394cf950
+Size (kasumi-1.0.1.tar.gz) = 290336 bytes
+SHA1 (patch-aa) = b111c7f78982376c1422fd102505cc02b6033591
diff --git a/inputmethod/kasumi/patches/patch-aa b/inputmethod/kasumi/patches/patch-aa
new file mode 100644
index 00000000000..3ddf392e4ae
--- /dev/null
+++ b/inputmethod/kasumi/patches/patch-aa
@@ -0,0 +1,34 @@
+$NetBSD: patch-aa,v 1.1.1.1 2007/01/02 15:18:12 obache Exp $
+
+--- KasumiWord.cxx.orig Mon Jan 10 20:30:37 2005
++++ KasumiWord.cxx Mon Jan 10 20:38:01 2005
+@@ -16,24 +16,27 @@
+ string KasumiWord::convertUTF8ToEUCJP(const string &aUTF8){
+ char *utf8 = (char*)malloc(strlen(aUTF8.c_str())+1);
+ strcpy(utf8, aUTF8.c_str());
++ const char *ptr_utf8 = utf8;
+ size_t len = strlen(utf8)+1;
+ size_t len_eucjp = len*2;
+ char *eucjp_buf = (char*)malloc(len_eucjp);
+ char *eucjp = eucjp_buf;
+
+- iconv(IconvUTF8_To_EUCJP, &utf8, &len, &eucjp_buf, &len_eucjp);
++ iconv(IconvUTF8_To_EUCJP, &ptr_utf8, &len, &eucjp_buf, &len_eucjp);
+ return string(eucjp);
+ }
+
+ string KasumiWord::convertEUCJPToUTF8(const string &aEUCJP){
+ char *eucjp = (char*)malloc(strlen(aEUCJP.c_str())+1);
+ strcpy(eucjp, aEUCJP.c_str());
++ const char *ptr_eucjp = eucjp;
+ size_t len = strlen(eucjp)+1;
+ size_t len_utf8 = len*2;
+ char *utf8_buf = (char*)malloc(len_utf8);
+ char *utf8 = utf8_buf;
+
+- iconv(IconvEUCJP_To_UTF8, &eucjp, &len, &utf8_buf, &len_utf8);
++
++ iconv(IconvEUCJP_To_UTF8, &ptr_eucjp, &len, &utf8_buf, &len_utf8);
+ return string(utf8);
+ }
+