# $Id: Portfile 170 2009-07-14 10:09:36Z tatyana $

PortSystem		1.0
name			anthy
set main_ver		9100e
set ghal_ver 		9100
set ghal_epoch 		13
version 		${main_ver}-G-HAL-${ghal_epoch}
categories		textproc
maintainers		gmail.com:majuterus
description		Anthy is a system for Japanese input method.
long_description		 \
	Anthy is a system for Japanese input method. It converts Hiragana \
	text to Kana Kanji mixed text. This includes so-called G-HAL \
	patches.
homepage		http://anthy.sourceforge.jp/ \
			http://www.fenix.ne.jp/~G-HAL/soft/nosettle/#anthy
distfiles 		${name}-${main_ver}${extract.suffix}
set ghal_patch	${name}-${ghal_ver}.patch${ghal_epoch}.bz2
set sfj 		29142
master_sites    http://osdn.dl.sourceforge.jp/anthy/${sfj}/ \
		http://qgpop.dl.sourceforge.jp/anthy/${sfj}/ \
		http://keihanna.dl.sourceforge.jp/anthy/${sfj}/
		
checksums	${name}-${main_ver}${extract.suffix} \
			rmd160 71297e7a930cbfd42175886fd5aa84e2177eeb7e
worksrcdir      ${name}-${main_ver}	
post-extract {
    system "cd ${worksrcpath} && bzip2 -dc ${filespath}/${ghal_patch} | patch -p1"
}





