# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # $Header:$ inherit kde || die need-kde 3.2 MY_PV="${PV:0:3}-${PV:4}" MY_P=${PN}-${MY_PV} S=${WORKDIR}/${PN}-${MY_PV} DESCRIPTION="PG Calculator is a powerful scientific calculator." SRC_URI="mirror://sourceforge/${PN/2/}/${MY_P}.tar.gz" HOMEPAGE="http://www.pgcalc.net" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="" SLOT="0" src_unpack() { unpack "${MY_P}.tar.gz" cd "${S}" } src_install() { einstall dohtml -r ${S}/htmldoc/* } pkg_postinst() { posbs=(`ls ${S}/skins`) length=${#posbs} count=0 einfo "To use another skin, start ${PN} with one of" einfo "the following options (case sensitive):" einfo "" while [ "${count}" -lt $((${length}+1)) ] do einfo "${posbs[${count}]}: '${PN} --skinname=${posbs[${count}]}'" count=$((${count}+1)) done einfo "" einfo "The documentation is available at" einfo "/usr/share/doc/${PF}/html/index.htm" einfo "" }