# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/vcsroot/gentoo-x86/media-tv/kmttg EAPI="2" inherit subversion DESCRIPTION="Download videos from Tivo, decrypt, convert and remove commercials" HOMEPAGE="http://code.google.com/p/kmttg" ESVN_REPO_URI="http://kmttg.googlecode.com/svn/trunk/" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="ffmpeg mplayer" RDEPENDDD="dev-java/sun-jdk dev-java/ant ffmpeg? ( media-video/ffmpeg ) mplayer? ( media-video/mplayer ) net-misc/curl media-video/tivodecode" DEPEND="${RDEPEND}" S="${WORKDIR}" subversion_svn_fetch() { cd "${S}" } src_compile() { ant || die } src_install() { cd "${S}"/release into / dobin kmttg dobin kmttg.jar dodoc README.html cp -r "${S}"/release/encode "${D}"/usr/lib }