Gentoo Archives: gentoo-commits

From: Sebastian Pipping <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/betagarden:master commit in: media-tv/mediathekview-bin/
Date: Wed, 13 Jun 2018 19:23:43
Message-Id: 1528917792.8799357e92f539958fbf90ecf1e6246fcc32dd3a.sping@gentoo
1 commit: 8799357e92f539958fbf90ecf1e6246fcc32dd3a
2 Author: Sebastian Pipping <sping <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 13 19:23:12 2018 +0000
4 Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 13 19:23:12 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/betagarden.git/commit/?id=8799357e
7
8 media-tv/mediathekview-bin: 13.0.6
9
10 .../mediathekview-bin-13.0.6.ebuild | 47 ++++++++++++++++++++++
11 1 file changed, 47 insertions(+)
12
13 diff --git a/media-tv/mediathekview-bin/mediathekview-bin-13.0.6.ebuild b/media-tv/mediathekview-bin/mediathekview-bin-13.0.6.ebuild
14 new file mode 100644
15 index 0000000..52fe49e
16 --- /dev/null
17 +++ b/media-tv/mediathekview-bin/mediathekview-bin-13.0.6.ebuild
18 @@ -0,0 +1,47 @@
19 +# Copyright 1999-2018 Gentoo Foundation
20 +# Distributed under the terms of the GNU General Public License v2
21 +
22 +EAPI=6
23 +
24 +inherit java-pkg-2
25 +
26 +MY_PN=MediathekView
27 +DESCRIPTION="Download files from the public broadcasting services"
28 +HOMEPAGE="http://zdfmediathk.sourceforge.net/"
29 +SRC_URI="https://github.com/${MY_PN,,}/${MY_PN}/releases/download/${PV}/${MY_PN}-${PV}.zip"
30 +
31 +LICENSE="GPL-3"
32 +SLOT="0"
33 +KEYWORDS="~amd64 ~x86"
34 +
35 +DEPEND=">=virtual/jdk-1.8"
36 +RDEPEND=">=virtual/jre-1.8 ~dev-java/oracle-jre-bin-1.8[javafx]
37 + media-video/vlc
38 + media-video/flvstreamer
39 + "
40 +
41 +S="${WORKDIR}"/${MY_PN}-${PV}
42 +
43 +src_prepare() {
44 + ewarn "Bundled libs remaining:"
45 + ewarn "$(find lib -name '*.jar' | sort)"
46 + eapply_user
47 +}
48 +
49 +src_compile() {
50 + :
51 +}
52 +
53 +src_install() {
54 + java-pkg_dojar MediathekView.jar
55 + java-pkg_dojar lib/*.jar
56 +
57 + exeinto /usr/share/${PN}/lib/bin/
58 + doexe bin/flv.sh || die
59 +
60 + java-pkg_dolauncher ${PN} --main mediathek.Main
61 +
62 + # FIXME javafx:
63 + local javafx_jar="$(ls -1 /opt/oracle-jre-bin-1.8.*/lib/ext/jfxrt.jar)"
64 + sed "s,^CLASSPATH=\"\(.*\)\",CLASSPATH=\"\1:${javafx_jar}\"," -i "${JAVA_PKG_ENV}" || die
65 +}