DESCRIPTION="Soikko - Finnish hyphenation for OpenOffice" HOMEPAGE="http://www.hut.fi/~pry/soikko" SRC_URI="http://www.hut.fi/~pry/soikko/soikko-oo11-linux-${PV}.tar.gz" S="${WORKDIR}/soikko-oo11-linux-${PV}" OODIR="/opt/OpenOffice.org" LICENSE="SISSL-1.1|soikko" SLOT="0" KEYWORDS="x86" DEPEND=">=app-office/openoffice-bin-1.1.0" src_unpack() { einfo "" einfo "Soikko Binary Code License" einfo "" einfo "Copyright (C) 2002, Pasi Ryhänen " einfo "" einfo "Redistribution and use in binary form are permitted provided that the" einfo "following conditions are met:" einfo "" einfo "1. Redistributions in binary form must reproduce the above copyright" einfo " notice, this list of conditions and the following disclaimer in the" einfo " documentation and/or other materials provided with the distribution." einfo "" einfo "THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED" einfo "WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF" einfo "MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE." einfo "" unpack ${A} cd ${S} } src_install() { insinto ${OODIR}/program doins ${S}/regcomp fperms 755 ${OODIR}/program/regcomp doins ${S}/libspellfi645li.so fperms 755 ${OODIR}/program/libspellfi645li.so doins ${S}/libhyphenfi645li.so fperms 755 ${OODIR}/program/libhyphenfi645li.so doins ${S}/libsoikko.so fperms 755 ${OODIR}/program/libsoikko.so insinto ${OODIR}/share/dict doins ${S}/soikko-sp.fi_FI.dic doins ${S}/soikko-hy.fi_FI.dic } pkg_postinst() { for i in libspellfi645li.so libhyphenfi645li.so; do LD_LIBRARY_PATH=${OODIR}/program \ ${OODIR}/program/regcomp -register \ -r ${OODIR}/program/services.rdb -c ${i} done } pkg_prerm() { for i in libspellfi645li.so libhyphenfi645li.so; do LD_LIBRARY_PATH=${OODIR}/program \ ${OODIR}/program/regcomp -revoke \ -r ${OODIR}/program/services.rdb -c ${i} done }