public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Johannes Huber" <johu@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/johu:master commit in: media-tv/tvbrowser/
Date: Sat, 15 Mar 2014 14:37:50 +0000 (UTC)	[thread overview]
Message-ID: <1394894260.54990695f9906dd711ad049156f543d1c82bcf63.johu@gentoo> (raw)

commit:     54990695f9906dd711ad049156f543d1c82bcf63
Author:     Johannes Huber <johu <AT> gentoo <DOT> org>
AuthorDate: Sat Mar 15 14:37:40 2014 +0000
Commit:     Johannes Huber <johu <AT> gentoo <DOT> org>
CommitDate: Sat Mar 15 14:37:40 2014 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/johu.git;a=commit;h=54990695

[media-tv/tvbrowser] Sync with tree

Package-Manager: portage-2.2.8-r1

---
 media-tv/tvbrowser/tvbrowser-9999.ebuild | 331 ++++++++++++++-----------------
 1 file changed, 146 insertions(+), 185 deletions(-)

diff --git a/media-tv/tvbrowser/tvbrowser-9999.ebuild b/media-tv/tvbrowser/tvbrowser-9999.ebuild
index d27c853..a870d64 100644
--- a/media-tv/tvbrowser/tvbrowser-9999.ebuild
+++ b/media-tv/tvbrowser/tvbrowser-9999.ebuild
@@ -1,68 +1,72 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2014 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-EAPI=4
+EAPI=5
 
-#WANT_ANT_TASKS="ant-junit"
-JAVA_PKG_IUSE="doc source"
-inherit eutils java-pkg-2 java-ant-2 flag-o-matic subversion
+JAVA_PKG_IUSE="doc source test"
+
+inherit eutils java-pkg-2 java-ant-2 flag-o-matic virtualx subversion
+
+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="themes? (
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/BeOSthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/amarachthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/aquathemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/architectBluethemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/architectOlivethemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/b0sumiErgothempack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/b0sumithemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/bbjthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/beigeazulthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/beosthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/blueMetalthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/blueTurquesathemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/cellshadedthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/chaNinja-Bluethemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/coronaHthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/cougarthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/crystal2themepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/fatalEthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/gfxOasisthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/gorillathemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/hmmXPBluethemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/hmmXPMonoBluethemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/iBarthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/macosthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/midnightthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/mmMagra-Xthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/modernthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/oliveGreenLunaXPthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/opusLunaSilverthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/opusOSBluethemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/opusOSDeepthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/opusOSOlivethemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/quickSilverRthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/roueBluethemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/roueBrownthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/roueGreenthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/royalInspiratthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/silverLunaXPthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/solunaRthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/tigerGraphitethemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/tigerthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/toxicthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/underlingthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/whistlerthemepack.zip
-	http://javootoo.l2fprod.com/plaf/skinlf/themepacks/xplunathemepack.zip
-	http://tvbrowser.org/downloads/noia.zip
-	http://tvbrowser.org/downloads/nuvola.zip
-	http://tvbrowser.org/downloads/tulliana.zip
-	http://tvbrowser.org/downloads/tango_without_heart.zip
-)"
-
 ESVN_REPO_URI="https://tvbrowser.svn.sourceforge.net/svnroot/tvbrowser/trunk/tvbrowser"
+SRC_URI="
+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=""
@@ -70,139 +74,96 @@ LICENSE="GPL-3"
 
 IUSE="themes"
 
-COMMON_DEP="x11-libs/libXt
-	x11-libs/libSM
-	x11-libs/libICE
-	x11-libs/libXext
-	x11-libs/libXtst
-	x11-libs/libX11
-	x11-libs/libXau
-	x11-libs/libXdmcp
-	dev-java/bsh
-	>=dev-java/commons-codec-1.4
-	>=dev-java/commons-lang-2.4
-	>=dev-java/commons-net-1.4.1
-	>=dev-java/jakarta-oro-2.0.8
-	dev-java/l2fprod-common
-	dev-java/log4j
-	>=dev-java/jgoodies-forms-1.3.0
-	>=dev-java/jgoodies-looks-2.3.1
-	dev-java/skinlf
-	>=dev-java/stax-1.2.0"
-# TODO enable testing
-#	test? ( dev-java/junit )
-DEPEND=">=virtual/jdk-1.6
-	app-arch/unzip
-	${COMMON_DEP}"
-RDEPEND=">=virtual/jre-1.6
-	${COMMON_DEP}"
-
-LICENSE="GPL-2"
+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}
+}
 
-IUSE="themes"
+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"
 
-src_prepare() {
-	# now that's a rather nasty trick that removes exactly the lines that unjar
-	# dependencies and include them to tvbrowser's jars
-	# when bumping, check that it doesn't affect lines it shouldn't!
-	sed "/unpacked.dir/d" -i build.xml || die
-
-	# disable running of junit tests, because tvbrowserdataservice.file.ChannelListTest fails always
-	sed -i "${S}"/build.xml -e"s:, test: :"
-
-	cd "${S}"/lib || die
-	rm -v commons-net*.jar commons-lang-*.jar \
-		bsh*.jar commons-codec*.jar stax-*.jar || die
-	# missing dependencies commons-compress, TVAnytimeAPI, jRegistryKey, gdata-calendar,
-	# gdata-client, jcom, xtvd-lib, opencsv and stax-api
-	# use local jar files for these, and also those in deployment
-	# some are win32/mac only, so we will let tvbrowser build against them (no need to patch stuff out of sources)
-	# but won't install the bundled jars, because their codepath won't be executed on linux anyway
-	java-pkg_jar-from commons-lang-2.1,commons-net,commons-codec,lucene-3.0,jgoodies-looks-2.0,bsh,l2fprod-common,skinlf,stax
-
-	# Fails to create javadocs without this
-	mkdir "${S}/public" || die
-}
+EANT_BUILD_TARGET="runtime-linux"
+EANT_DOC_TARGET="public-doc"
 
-src_compile() {
-	eant runtime-linux $(use_doc public-doc)
+src_test() {
+	VIRTUALX_COMMAND="java-pkg-2_src_test" virtualmake
 }
 
 src_install() {
-	use source && java-pkg_dosrc src/*
+	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
-	cd runtime/${PN}_linux || die
-
-	java-pkg_dojar ${PN}.jar
-	find "${S}"/lib -type l -exec rm {} \;
-	java-pkg_dojar "${S}"/lib/*.jar || die #why complicate stuff
-#	{gdata-calendar-*.jar,gdata-client-*.jar,gdata-core-*.jar,xtvd-lib-*.jar,opencsv-*.jar,aclibico-*.jar,htmlparser-*.jar,jcom-*.jar,jRegistryKey-*.jar,libgrowl-*.jar,log4j-*.jar,texhyphj-*.jar, guava-*.jar} || die
-
-	local todir="${JAVA_PKG_SHAREPATH}"
-
-	cp -a imgs "${D}/${todir}" || die
-	cp -a icons "${D}/${todir}" || die
-	cp -a plugins "${D}/${todir}" || die
-	cp linux.properties "${D}/${todir}" || die
-
-	insinto "${todir}/themepacks"
-	doins themepacks/themepack.zip
-
-	if use themes; then
-		cd "${DISTDIR}"
-		doins BeOSthemepack.zip\
-			amarachthemepack.zip\
-			aquathemepack.zip\
-			architectBluethemepack.zip\
-			architectOlivethemepack.zip\
-			b0sumiErgothempack.zip\
-			b0sumithemepack.zip\
-			bbjthemepack.zip\
-			beigeazulthemepack.zip\
-			beosthemepack.zip\
-			blueMetalthemepack.zip\
-			blueTurquesathemepack.zip\
-			cellshadedthemepack.zip\
-			chaNinja-Bluethemepack.zip\
-			coronaHthemepack.zip\
-			cougarthemepack.zip\
-			crystal2themepack.zip\
-			fatalEthemepack.zip\
-			gfxOasisthemepack.zip\
-			gorillathemepack.zip\
-			hmmXPBluethemepack.zip\
-			hmmXPMonoBluethemepack.zip\
-			iBarthemepack.zip\
-			macosthemepack.zip\
-			midnightthemepack.zip\
-			mmMagra-Xthemepack.zip\
-			modernthemepack.zip\
-			oliveGreenLunaXPthemepack.zip\
-			opusLunaSilverthemepack.zip\
-			opusOSBluethemepack.zip\
-			opusOSDeepthemepack.zip\
-			opusOSOlivethemepack.zip\
-			quickSilverRthemepack.zip\
-			roueBluethemepack.zip\
-			roueBrownthemepack.zip\
-			roueGreenthemepack.zip\
-			royalInspiratthemepack.zip\
-			silverLunaXPthemepack.zip\
-			solunaRthemepack.zip\
-			tigerGraphitethemepack.zip\
-			tigerthemepack.zip\
-			toxicthemepack.zip\
-			underlingthemepack.zip\
-			whistlerthemepack.zip\
-			xplunathemepack.zip
-		insinto "${todir}/icons"
-		doins noia.zip nuvola.zip tulliana.zip tango_without_heart.zip
-	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
 }


             reply	other threads:[~2014-03-15 14:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-15 14:37 Johannes Huber [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-05-30 10:41 [gentoo-commits] dev/johu:master commit in: media-tv/tvbrowser/ Johannes Huber
2012-10-28 11:47 Johannes Huber
2012-10-28 11:43 Johannes Huber
2012-09-15 22:43 Johannes Huber
2012-05-14  6:43 Johannes Huber
2012-02-07 22:59 Johannes Huber
2012-02-04 23:44 Johannes Huber
2012-01-27 18:08 Johannes Huber
2012-01-27 17:48 Johannes Huber

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1394894260.54990695f9906dd711ad049156f543d1c82bcf63.johu@gentoo \
    --to=johu@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox