SUMMARY="A Japanese input method add-on"

DESCRIPTION="
	Canna (CannaIM) is a Japanese input method add-on. It is based a client-server based Kana-Kanji conversion system \"Canna\".
	"

HOMEPAGE="http://canna.sourceforge.jp/"

LICENSE="
	MIT
	"

COPYRIGHT="
	1999 M.Kawamura
	1992 NEC Corporation, Tokyo, Japan.
	"

SOURCE_URI="http://www.jade.dti.ne.jp/~murai/haiku/CannaIM.zip"

CHECKSUM_SHA256="1615a8810d15307869bfa48ec82aa9cf034c1aec170fa7056f0149c8d64e8770"

SOURCE_FILENAME="CannaIM.zip"

SOURCE_DIR="canna"

REVISION="1"

ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	canna = $portVersion
	addon:canna = $portVersion
	"

REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	"

BUILD_PREREQUIRES="
	haiku_devel
	cmd:gcc
	cmd:jam
	"

USER_SETTINGS_FILES="
	settings/Canna directory
	"

BUILD()
{
	jam -q $jobArgs
}

INSTALL()
{
	CannaDir=$addOnsDir/input_server/methods
	mkdir -p $CannaDir
	cp -a generated/distro/canna $CannaDir

	CannaDataDir=$dataDir/Canna
	mkdir -p $CannaDataDir
	cp -a data/default $CannaDataDir
	cp -a data/dic $CannaDataDir
}
