# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-client/htmlview/htmlview-3.0.0-r1.ebuild,v 1.6 2006/12/18 20:46:10 eroyf Exp $ inherit rpm IUSE="" RH_EXTRAVERSION="8" DESCRIPTION="A script which calls an installed HTML viewer." HOMEPAGE="http://www.redhat.com" SRC_URI="mirror://fedora/development/SRPMS/${P}-${RH_EXTRAVERSION}.src.rpm" LICENSE="public-domain" SLOT="0" KEYWORDS="~amd64 ia64 ~mips ppc x86" S=${WORKDIR} src_compile() { sed -i -e '{ /^TERMS_GENERIC/s:"\(.*\)":"\1 /usr/bin/aterm /usr/bin/hanterm /usr/bin/kterm /usr/bin/mlterm /usr/bin/mrxvt /usr/bin/urxvt": /^TTYBROWSERS/s:"\(.*\)":"\1 /usr/bin/elinks": /^X11BROWSERS_GNOME/s:"\(.*\)":"\1 /usr/bin/kazehakase": /^X11BROWSERS_GENERIC/s:"\(.*\)":"\1 /usr/bin/firefox": s:/usr/bin/konsole:konsole: s:/usr/bin/kvt:kvt: s:/usr/bin/konqueror:konqueror: s:/usr/bin/kfmbrowser:kfmbrowser: s:/usr/X11R6/bin/xterm:/usr/bin/xterm: s:/sbin/pidof:pidof: }' htmlview || die } src_install () { dobin htmlview dobin launchmail }