From beaac988555ca757286abdf08557a76278292dd8 Mon Sep 17 00:00:00 2001 From: Tom Wijsman Date: Tue, 13 Aug 2013 20:58:08 +0000 Subject: Revision bump. EAPI 5. Use virtualx for tests. Slotted all dependencies; added swt and test? ( dev-java/ant-junit:0 ) dependency, the latter fixes tests together with setting the test classpath. Renamed src_prepare to java_prepare such that the preparation from the Java eclasses runs. Dropped dependency on class files from build.xml as well as parts that are unnecessary for Linux packaging, including fetching of dependencies. Made use of EANT_GENTOO_CLASSPATH and EANT_TEST_GENTOO_CLASSPATH and build.xml rewriting to simplify java_prepare. Replaced src_compile by EANT_BUILD_TARGET and EANT_DOC_TARGET. Reordered and shortened src_install, moved categories from sed to make_desktop_entry call. Sorted variables. Removed redundancy. Fixing up of dependencies fixes bug #480652 filed by Heiko Baums and Nils Kneuper. Removal of dependency fetching from build.xml fixes bug #451788 filed by Diego Elio Pettenò (flameeyes). Next steps should be unbundling as well as bumping more dependencies (filed bug #480922 for this purpose), perhaps best done as part of the next version bump. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (Portage version: 2.2.0/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D) --- media-tv/tvbrowser/ChangeLog | 24 +- media-tv/tvbrowser/files/tvbrowser-3.2.1-build.xml | 480 +++++++++++++++++++++ media-tv/tvbrowser/tvbrowser-3.2.1-r1.ebuild | 169 ++++++++ 3 files changed, 671 insertions(+), 2 deletions(-) create mode 100644 media-tv/tvbrowser/files/tvbrowser-3.2.1-build.xml create mode 100644 media-tv/tvbrowser/tvbrowser-3.2.1-r1.ebuild (limited to 'media-tv/tvbrowser') diff --git a/media-tv/tvbrowser/ChangeLog b/media-tv/tvbrowser/ChangeLog index 902b271030d5..53399ea370ca 100644 --- a/media-tv/tvbrowser/ChangeLog +++ b/media-tv/tvbrowser/ChangeLog @@ -1,6 +1,26 @@ # ChangeLog for media-tv/tvbrowser -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-tv/tvbrowser/ChangeLog,v 1.36 2012/11/12 21:38:13 johu Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/tvbrowser/ChangeLog,v 1.37 2013/08/13 20:58:08 tomwij Exp $ + +*tvbrowser-3.2.1-r1 (13 Aug 2013) + + 13 Aug 2013; Tom Wijsman +files/tvbrowser-3.2.1-build.xml, + +tvbrowser-3.2.1-r1.ebuild, metadata.xml: + Revision bump. EAPI 5. Use virtualx for tests. Slotted all dependencies; added + swt and test? ( dev-java/ant-junit:0 ) dependency, the latter fixes tests + together with setting the test classpath. Renamed src_prepare to java_prepare + such that the preparation from the Java eclasses runs. Dropped dependency on + class files from build.xml as well as parts that are unnecessary for Linux + packaging, including fetching of dependencies. Made use of + EANT_GENTOO_CLASSPATH and EANT_TEST_GENTOO_CLASSPATH and build.xml rewriting + to simplify java_prepare. Replaced src_compile by EANT_BUILD_TARGET and + EANT_DOC_TARGET. Reordered and shortened src_install, moved categories from + sed to make_desktop_entry call. Sorted variables. Removed redundancy. Fixing + up of dependencies fixes bug #480652 filed by Heiko Baums and Nils Kneuper. + Removal of dependency fetching from build.xml fixes bug #451788 filed by Diego + Elio Pettenò (flameeyes). Next steps should be unbundling as well as bumping + more dependencies (filed bug #480922 for this purpose), perhaps best done as + part of the next version bump. *tvbrowser-3.2.1 (12 Nov 2012) diff --git a/media-tv/tvbrowser/files/tvbrowser-3.2.1-build.xml b/media-tv/tvbrowser/files/tvbrowser-3.2.1-build.xml new file mode 100644 index 000000000000..a26bcc4d69ed --- /dev/null +++ b/media-tv/tvbrowser/files/tvbrowser-3.2.1-build.xml @@ -0,0 +1,480 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ${TODAY}-nightly + + + + + + + + + + + + + + + + + + + + + ${ant.version}. JUnit4 tests will only work with Ant>=1.7 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/media-tv/tvbrowser/tvbrowser-3.2.1-r1.ebuild b/media-tv/tvbrowser/tvbrowser-3.2.1-r1.ebuild new file mode 100644 index 000000000000..f86889e56d46 --- /dev/null +++ b/media-tv/tvbrowser/tvbrowser-3.2.1-r1.ebuild @@ -0,0 +1,169 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-tv/tvbrowser/tvbrowser-3.2.1-r1.ebuild,v 1.1 2013/08/13 20:58:08 tomwij Exp $ + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" + +inherit eutils java-pkg-2 java-ant-2 flag-o-matic virtualx + +tp_base="http://javootoo.l2fprod.com/plaf/skinlf/themepacks" +tvp_base="http://tvbrowser.org/downloads" + +DESCRIPTION="Themeable and easy to use TV Guide - written in Java." +HOMEPAGE="http://www.tvbrowser.org/" +SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.zip + +themes? ( + ${tp_base}/BeOSthemepack.zip + ${tp_base}/amarachthemepack.zip + ${tp_base}/aquathemepack.zip + ${tp_base}/architectBluethemepack.zip + ${tp_base}/architectOlivethemepack.zip + ${tp_base}/b0sumiErgothempack.zip + ${tp_base}/b0sumithemepack.zip + ${tp_base}/bbjthemepack.zip + ${tp_base}/beigeazulthemepack.zip + ${tp_base}/beosthemepack.zip + ${tp_base}/blueMetalthemepack.zip + ${tp_base}/blueTurquesathemepack.zip + ${tp_base}/cellshadedthemepack.zip + ${tp_base}/chaNinja-Bluethemepack.zip + ${tp_base}/coronaHthemepack.zip + ${tp_base}/cougarthemepack.zip + ${tp_base}/crystal2themepack.zip + ${tp_base}/fatalEthemepack.zip + ${tp_base}/gfxOasisthemepack.zip + ${tp_base}/gorillathemepack.zip + ${tp_base}/hmmXPBluethemepack.zip + ${tp_base}/hmmXPMonoBluethemepack.zip + ${tp_base}/iBarthemepack.zip + ${tp_base}/macosthemepack.zip + ${tp_base}/midnightthemepack.zip + ${tp_base}/mmMagra-Xthemepack.zip + ${tp_base}/modernthemepack.zip + ${tp_base}/oliveGreenLunaXPthemepack.zip + ${tp_base}/opusLunaSilverthemepack.zip + ${tp_base}/opusOSBluethemepack.zip + ${tp_base}/opusOSDeepthemepack.zip + ${tp_base}/opusOSOlivethemepack.zip + ${tp_base}/quickSilverRthemepack.zip + ${tp_base}/roueBluethemepack.zip + ${tp_base}/roueBrownthemepack.zip + ${tp_base}/roueGreenthemepack.zip + ${tp_base}/royalInspiratthemepack.zip + ${tp_base}/silverLunaXPthemepack.zip + ${tp_base}/solunaRthemepack.zip + ${tp_base}/tigerGraphitethemepack.zip + ${tp_base}/tigerthemepack.zip + ${tp_base}/toxicthemepack.zip + ${tp_base}/underlingthemepack.zip + ${tp_base}/whistlerthemepack.zip + ${tp_base}/xplunathemepack.zip + + ${tvp_base}/noia.zip + ${tvp_base}/nuvola.zip + ${tvp_base}/tulliana.zip + ${tvp_base}/tango_without_heart.zip +)" + +SLOT="0" +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-3" + +IUSE="themes" + +COMMON_DEP="dev-java/bsh:0 + dev-java/commons-codec:0 + dev-java/commons-lang:2.1 + dev-java/commons-net:0 + dev-java/jakarta-oro:2.0 + dev-java/jgoodies-forms:0 + dev-java/jgoodies-looks:2.0 + dev-java/l2fprod-common:0 + dev-java/log4j:0 + dev-java/skinlf:0 + dev-java/stax:0 + dev-java/swt:4.2 + dev-java/xalan:0 + x11-libs/libXt:0 + x11-libs/libSM:0 + x11-libs/libICE:0 + x11-libs/libXext:0 + x11-libs/libXtst:0 + x11-libs/libX11:0 + x11-libs/libXau:0 + x11-libs/libXdmcp:0 +" + +DEPEND="${COMMON_DEP} + app-arch/unzip:0 + >=virtual/jdk-1.6 + test? ( dev-java/junit:0 dev-java/ant-junit:0 ) +" + +RDEPEND="${COMMON_DEP} + >=virtual/jre-1.6 +" + +java_prepare() { + cp "${FILESDIR}"/${P}-build.xml build.xml || die "Failed to replace build.xml." + + local error="Failed to unbundle or remove libraries or classes." + pushd lib > /dev/null + rm -v bsh-*.jar commons*.jar jgoodies*.jar l2fprod-common-tasks*.jar \ + skinlf*.jar stax*.jar || die ${error} + popd > /dev/null + + find deployment -name '*.jar' -exec rm -v {} \; || die ${error} + find . -name '*.class' -exec rm -v {} \; || die ${error} +} + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="bsh,commons-codec,commons-lang-2.1,jgoodies-forms,jgoodies-looks-2.0,l2fprod-common,skinlf" +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},ant-junit,junit" + +EANT_BUILD_TARGET="runtime-linux" +EANT_DOC_TARGET="public-doc" + +src_test() { + VIRTUALX_COMMAND="java-pkg-2_src_test" virtualmake +} + +src_install() { + pushd runtime/${PN}_linux > /dev/null + java-pkg_dojar ${PN}.jar + + local todir="${JAVA_PKG_SHAREPATH}" + + cp -a {imgs,icons,plugins} "${D}/${todir}" || die "Failed to copy directories." + cp linux.properties "${D}/${todir}" || die "Failed to copy linux.properties." + + insinto "${todir}/themepacks" + doins themepacks/themepack.zip + + if use themes ; then + pushd "${DISTDIR}" > /dev/null + doins *pack.zip + + insinto "${todir}/icons" + doins noia.zip nuvola.zip tulliana.zip tango_without_heart.zip + popd > /dev/null + fi + + java-pkg_dolauncher "tvbrowser" \ + --main tvbrowser.TVBrowser \ + --pwd ${todir} \ + --java_args " -Dpropertiesfile=${todir}/linux.properties" + + make_desktop_entry ${PN} "TV-Browser" \ + /usr/share/tvbrowser/imgs/tvbrowser128.png "AudioVideo;TV;Video" + popd > /dev/null + + java-pkg_dojar lib/{htmlparser-1.6.jar,jRegistryKey-1.4.5.jar,opencsv-2.3.jar} + java-pkg_dojar lib/{quaqua-7.3.4.jar,substance-6.1.jar,texhyphj-1.1.jar,trident-1.3.jar} + + use source && java-pkg_dosrc src + use doc && java-pkg_dojavadoc doc +} -- cgit v1.2.3-65-gdbad