# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="Themeable and easy to use TV Guide - written in Java" HOMEPAGE="http://www.tvbrowser.org/" SRC_URI="mirror://sourceforge/${PN}/tvbrowser_v${PV}_bin.zip themes? ( http://www.tvbrowser.org/downloads/themepacks/allthemepacks.zip )" SLOT="0" KEYWORDS="~x86" DEPEND=">=virtual/jdk-1.5 virtual/x11" LICENSE="GPL-2" IUSE="themes" # install extra themepack S="${WORKDIR}/tvbrowser_v${PV}" src_install() { dodir /opt cp -a "${S}" "${D}/opt/tvbrowser" chmod +x "${D}/opt/tvbrowser/tvbrowser.sh" if use themes; then cd "${D}/opt/tvbrowser/themepacks" unpack allthemepacks.zip fi dodir /usr/bin echo "#!/bin/sh cd /opt/tvbrowser/ ./tvbrowser.sh" > "${D}/usr/bin/tvbrowser" chmod +x "${D}/usr/bin/tvbrowser" }