SUMMARY="Brazilian Portuguese dictionary for aspell program/library"
DESCRIPTION="Brazilian Portuguese language dictionary for the GNU Aspell \
program, an open source spell checker."
HOMEPAGE="http://aspell.net/"
COPYRIGHT="2006-2009 Leonardo Ferreira Fontenelle, Raimundo Santos Moura"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="http://ftpmirror.gnu.org/aspell/dict/pt_BR/aspell6-pt_BR-${portVersion/\~/-}.tar.bz2"
CHECKSUM_SHA256="77fc554aa9bbd5f4a87b58edf0d128838e92e4db6299904bb9360bf753a709f8"
SOURCE_DIR="aspell6-pt_BR-${portVersion/\~/-}"

ARCHITECTURES="any"

PROVIDES="
	aspell_pt_br = $portVersion
	"
REQUIRES="
	haiku
	aspell >= 0.60
	"

BUILD_REQUIRES="
	devel:libaspell
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:basename
	cmd:make
	cmd:prezip_bin
	cmd:which
	"

BUILD()
{
	./configure
	make
}

INSTALL()
{
	spellDir=$dataDir/$(basename $(aspell dump config dict-dir))
	make dictdir=$spellDir datadir=$spellDir install
}
