# Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=2 inherit java-pkg-2 DESCRIPTION="Download files from the public broadcasting services" HOMEPAGE="http://zdfmediathk.sourceforge.net/" SRC_URI="mirror://sourceforge/zdfmediathk/Mediathek/Mediathek%20${PV}/MediathekView_${PV}.zip" LICENSE="GPL-3" SLOT="0" KEYWORDS="~amd64 ~x86" DEPEND=">=virtual/jdk-1.7" RDEPEND=">=virtual/jre-1.7 media-video/vlc media-video/flvstreamer dev-java/xz-java" S=${WORKDIR} src_prepare() { rm lib/xz.jar ewarn "Bundled libs remaining:" ewarn "$(find lib -name '*.jar' | sort)" } src_compile() { : } src_install() { java-pkg_dojar MediathekView.jar java-pkg_dojar lib/*.jar exeinto /usr/share/${PN}/lib/bin/ doexe bin/flv.sh || die java-pkg_register-dependency xz-java xz.jar java-pkg_dolauncher ${PN} --main mediathek.Main }