Subject: pkg/35336: New package: inputmethod/kasumi
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <ishit@oak.dti.ne.jp>
List: pkgsrc-bugs
Date: 12/29/2006 04:45:00
>Number:         35336
>Category:       pkg
>Synopsis:       New package: inputmethod/kasumi
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 29 04:45:00 +0000 2006
>Originator:     ISIHARA Takanori
>Release:        NetBSD/amd64 3.1
>Organization:
Nagoya *BSD Users' Group :-)
>Environment:
NetBSD ishitPc6.home 3.1_STABLE NetBSD 3.1_STABLE (GENERIC) #4: Mon Nov 20 05:53:07 JST 2006  sysbuild@ishitPc6.home:/opt/sysbuild/netbsd-3/obj/amd64/sys/arch/amd64/compile/GENERIC amd64

>Description:
Kasumi is a dictionary management tool for anthy kana-kanji conversion system.

import this package from pkgsrc-wip-jp.
http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/pkgsrc-wip/wip-jp/kasumi/

>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	.
#	./patches
#	./patches/patch-aa
#	./Makefile
#	./DESCR
#	./distinfo
#	./PLIST
#
echo c - .
mkdir -p . > /dev/null 2>&1
echo c - ./patches
mkdir -p ./patches > /dev/null 2>&1
echo x - ./patches/patch-aa
sed 's/^X//' >./patches/patch-aa << 'END-of-./patches/patch-aa'
X$NetBSD$
X
X+++ KasumiWord.cxx	Mon Jan 10 20:38:01 2005
X@@ -16,24 +16,27 @@
X string KasumiWord::convertUTF8ToEUCJP(const string &aUTF8){
X   char *utf8 = (char*)malloc(strlen(aUTF8.c_str())+1);
X   strcpy(utf8, aUTF8.c_str());
X+  const char *ptr_utf8 = utf8;
X   size_t len = strlen(utf8)+1;
X   size_t len_eucjp = len*2;
X   char *eucjp_buf = (char*)malloc(len_eucjp);
X   char *eucjp = eucjp_buf;
X 
X-  iconv(IconvUTF8_To_EUCJP, &utf8, &len, &eucjp_buf, &len_eucjp);
X+  iconv(IconvUTF8_To_EUCJP, &ptr_utf8, &len, &eucjp_buf, &len_eucjp);
X   return string(eucjp);
X }
X 
X string KasumiWord::convertEUCJPToUTF8(const string &aEUCJP){
X   char *eucjp = (char*)malloc(strlen(aEUCJP.c_str())+1);
X   strcpy(eucjp, aEUCJP.c_str());
X+  const char *ptr_eucjp = eucjp;
X   size_t len = strlen(eucjp)+1;
X   size_t len_utf8 = len*2;
X   char *utf8_buf = (char*)malloc(len_utf8);
X   char *utf8 = utf8_buf;
X 
X-  iconv(IconvEUCJP_To_UTF8, &eucjp, &len, &utf8_buf, &len_utf8);
X+
X+  iconv(IconvEUCJP_To_UTF8, &ptr_eucjp, &len, &utf8_buf, &len_utf8);
X   return string(utf8);
X }
X 
END-of-./patches/patch-aa
echo x - ./Makefile
sed 's/^X//' >./Makefile << 'END-of-./Makefile'
X# $NetBSD$
X# FreeBSD Id: ports/japanese/kasumi/Makefile,v 1.3 2005/04/09 15:20:28 nobutaka Exp
X
XDISTNAME=	kasumi-1.0.1
XCATEGORIES=	inputmethod japanese
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE_JP:=kasumi/20685/}
X
XMAINTAINER=	pkgsrc-users@NetBSD.org
XHOMEPAGE=	http://kasumi.sourceforge.jp/
XCOMMENT=	Dictionary management tool for anthy
X
XUSE_X11=	yes
XUSE_PKGLOCALEDIR=	yes
XGNU_CONFIGURE=	yes
X
XUSE_LANGUAGES+=	c c++
X
XBUILDLINK_API_DEPENDS.anthy=	anthy>=6520
XBUILDLINK_API_DEPENDS.gtk2=	gtk2+>=2.4
X
X.include "../../inputmethod/anthy/buildlink3.mk"
X.include "../../devel/gettext-lib/buildlink3.mk"
X.include "../../converters/libiconv/buildlink3.mk"
X.include "../../x11/gtk2/buildlink3.mk"
X.include "../../mk/bsd.pkg.mk"
END-of-./Makefile
echo x - ./DESCR
sed 's/^X//' >./DESCR << 'END-of-./DESCR'
XKasumi is a dictionary management tool for anthy kana-kanji conversion system.
END-of-./DESCR
echo x - ./distinfo
sed 's/^X//' >./distinfo << 'END-of-./distinfo'
X$NetBSD$
X
XSHA1 (kasumi-1.0.1.tar.gz) = 8cd7d5d9b91875a7dea5450fcdfdcbabdd1d52ce
XRMD160 (kasumi-1.0.1.tar.gz) = 2c49afa2b6c0de63d303cefdfd71457c394cf950
XSize (kasumi-1.0.1.tar.gz) = 290336 bytes
XSHA1 (patch-aa) = b111c7f78982376c1422fd102505cc02b6033591
END-of-./distinfo
echo x - ./PLIST
sed 's/^X//' >./PLIST << 'END-of-./PLIST'
X@comment $NetBSD$
Xbin/kasumi
Xshare/kasumi/kasumi.png
X${PKGLOCALEDIR}/locale/ja/LC_MESSAGES/kasumi.mo
X@dirrm share/kasumi
END-of-./PLIST
exit