# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ MY_P="http://www.openoffice.org.br/downloads/br.Ispell.tgz" OO_DIR="/opt/OpenOffice.org1.1.0/" DESCRIPTION="Brazilian Portuguese Dictionary for Open Office" HOMEPAGE="http://www.claraocr.org/cgi-bin/dict2.cgi" SRC_URI="${MY_P}" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" IUSE="" DEPEND="" RDEPEND=" || ( >=app-office/openoffice-1.1.0 >=app-office/openoffice-bin-1.1.0 )" S=${WORKDIR}/${P} src_install() { cd ${WORKDIR} insinto ${OO_DIR}/share/dict/ooo/ doins pt_BR.dic || die "Unable to install file pt_BR.dic" doins pt_BR.aff || die "Unable to install file pt_BR.aff" } pkg_postinst() { if [ ! -f ${OO_DIR}/share/dict/ooo/dictionary.lst ] ; then echo "DICT pt BR pt_BR" > ${OO_DIR}/share/dict/ooo/dictionary.lst else ewarn ewarn "You already have a dictionary.lst. Appending to the end of file." echo "DICT pt BR pt_BR" >> ${OO_DIR}/share/dict/ooo/dictionary.lst fi ewarn ewarn "Don't forget to configure OOo to use your new dictionary" ewarn }