aboutsummaryrefslogtreecommitdiff
path: root/japanese/kasumi
diff options
context:
space:
mode:
authorMANTANI Nobutaka <nobutaka@FreeBSD.org>2005-01-10 12:05:53 +0000
committerMANTANI Nobutaka <nobutaka@FreeBSD.org>2005-01-10 12:05:53 +0000
commit108ed945b5fd1f7884418dcd0064ab701ad1259e (patch)
tree4dca7352ee289d84e511117f3e7c4ca55eda6939 /japanese/kasumi
parentee2d77ff31148d6267e672187b801b9ad56f3691 (diff)
downloadports-108ed945b5fd1f7884418dcd0064ab701ad1259e.tar.gz
ports-108ed945b5fd1f7884418dcd0064ab701ad1259e.zip
Notes
Diffstat (limited to 'japanese/kasumi')
-rw-r--r--japanese/kasumi/Makefile31
-rw-r--r--japanese/kasumi/distinfo2
-rw-r--r--japanese/kasumi/files/patch-KasumiWord.cxx32
-rw-r--r--japanese/kasumi/pkg-descr3
-rw-r--r--japanese/kasumi/pkg-plist2
5 files changed, 70 insertions, 0 deletions
diff --git a/japanese/kasumi/Makefile b/japanese/kasumi/Makefile
new file mode 100644
index 000000000000..fc81182df7d5
--- /dev/null
+++ b/japanese/kasumi/Makefile
@@ -0,0 +1,31 @@
+# New ports collection makefile for: kasumi
+# Date Created: 10 January 2005
+# Whom: MANTANI Nobutaka <nobutaka@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= kasumi
+PORTVERSION= 0.7
+CATEGORIES= japanese
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_JP}
+MASTER_SITE_SUBDIR= ${PORTNAME}/12766
+
+MAINTAINER= nobutaka@FreeBSD.org
+COMMENT= A dictionary management tool for anthy
+
+USE_X_PREFIX= yes
+USE_GNOME= gnomehier gtk20
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
+
+.include <bsd.port.mk>
diff --git a/japanese/kasumi/distinfo b/japanese/kasumi/distinfo
new file mode 100644
index 000000000000..ffdb2c66637f
--- /dev/null
+++ b/japanese/kasumi/distinfo
@@ -0,0 +1,2 @@
+MD5 (kasumi-0.7.tar.gz) = a2938134357b0c37de02079ea3138335
+SIZE (kasumi-0.7.tar.gz) = 223656
diff --git a/japanese/kasumi/files/patch-KasumiWord.cxx b/japanese/kasumi/files/patch-KasumiWord.cxx
new file mode 100644
index 000000000000..7351fcf7c964
--- /dev/null
+++ b/japanese/kasumi/files/patch-KasumiWord.cxx
@@ -0,0 +1,32 @@
+--- 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);
+ }
+
diff --git a/japanese/kasumi/pkg-descr b/japanese/kasumi/pkg-descr
new file mode 100644
index 000000000000..9f8c80fedddf
--- /dev/null
+++ b/japanese/kasumi/pkg-descr
@@ -0,0 +1,3 @@
+Kasumi is a dictionary management tool for anthy kana-kanji conversion system.
+
+WWW: http://kasumi.sourceforge.jp/
diff --git a/japanese/kasumi/pkg-plist b/japanese/kasumi/pkg-plist
new file mode 100644
index 000000000000..003c26762400
--- /dev/null
+++ b/japanese/kasumi/pkg-plist
@@ -0,0 +1,2 @@
+bin/kasumi
+%%NLS%%share/locale/ja/LC_MESSAGES/kasumi.mo