Gentoo Archives: gentoo-commits

From: Johannes Huber <johu@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/johu:master commit in: media-tv/tvbrowser/
Date: Tue, 07 Feb 2012 22:59:52
Message-Id: 96e74e1574af3b54f5454174ec39e0125011cf70.johu@gentoo
1 commit: 96e74e1574af3b54f5454174ec39e0125011cf70
2 Author: Johannes Huber <johu <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 7 23:03:28 2012 +0000
4 Commit: Johannes Huber <johu <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 7 23:03:28 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/johu.git;a=commit;h=96e74e15
7
8 [media-tv/tvbrowser] Cleanup.
9
10 (Portage version: 2.2.0_alpha85/git/Linux i686, unsigned Manifest commit)
11
12 ---
13 media-tv/tvbrowser/tvbrowser-3.1.ebuild | 68 +++++++++++++------------------
14 1 files changed, 29 insertions(+), 39 deletions(-)
15
16 diff --git a/media-tv/tvbrowser/tvbrowser-3.1.ebuild b/media-tv/tvbrowser/tvbrowser-3.1.ebuild
17 index 48f723b..6b81006 100644
18 --- a/media-tv/tvbrowser/tvbrowser-3.1.ebuild
19 +++ b/media-tv/tvbrowser/tvbrowser-3.1.ebuild
20 @@ -2,7 +2,7 @@
21 # Distributed under the terms of the GNU General Public License v2
22 # $Header: $
23
24 -JAVA_PKG_IUSE="doc source"
25 +JAVA_PKG_IUSE="doc source test"
26
27 EAPI=4
28
29 @@ -10,10 +10,7 @@ inherit eutils java-pkg-2 java-ant-2 flag-o-matic
30
31 DESCRIPTION="Themeable and easy to use TV Guide - written in Java"
32 HOMEPAGE="http://www.tvbrowser.org/"
33 -
34 -MY_P=${PN}_${PV}
35 -
36 -SRC_URI="mirror://sourceforge/${PN}/${MY_P}_src.zip
37 +SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.zip
38
39 themes? (
40 http://javootoo.l2fprod.com/plaf/skinlf/themepacks/BeOSthemepack.zip
41 @@ -74,66 +71,59 @@ LICENSE="GPL-3"
42
43 IUSE="themes"
44
45 -COMMON_DEP="x11-libs/libXt
46 - x11-libs/libSM
47 - x11-libs/libICE
48 - x11-libs/libXext
49 - x11-libs/libXtst
50 - x11-libs/libX11
51 - x11-libs/libXau
52 - x11-libs/libXdmcp
53 - dev-java/bsh
54 +COMMON_DEP="dev-java/bsh
55 >=dev-java/commons-codec-1.4
56 >=dev-java/commons-lang-2.4
57 >=dev-java/commons-net-1.4.1
58 >=dev-java/jakarta-oro-2.0.8
59 - dev-java/l2fprod-common
60 - dev-java/log4j
61 >=dev-java/jgoodies-forms-1.3.0
62 >=dev-java/jgoodies-looks-2.3.1
63 + dev-java/l2fprod-common
64 + dev-java/log4j
65 dev-java/skinlf
66 - >=dev-java/stax-1.2.0"
67 -# test? ( dev-java/junit )
68 -DEPEND=">=virtual/jdk-1.6
69 + >=dev-java/stax-1.2.0
70 + dev-java/xalan
71 + x11-libs/libXt
72 + x11-libs/libSM
73 + x11-libs/libICE
74 + x11-libs/libXext
75 + x11-libs/libXtst
76 + x11-libs/libX11
77 + x11-libs/libXau
78 + x11-libs/libXdmcp
79 +"
80 +DEPEND="${COMMON_DEP}
81 app-arch/unzip
82 - ${COMMON_DEP}"
83 -RDEPEND=">=virtual/jre-1.6
84 - ${COMMON_DEP}"
85 + >=virtual/jdk-1.6
86 + test? ( dev-java/junit:0 )
87 +"
88 +RDEPEND="${COMMON_DEP}
89 + >=virtual/jre-1.6
90 +"
91
92 -S="${WORKDIR}/${MY_P/_/-}"
93 +# javac errors about missing junit, lets investigate this later
94 +RESTRICT="test"
95
96 src_prepare() {
97 - # now that's a rather nasty trick that removes exactly the lines that unjar
98 - # dependencies and include them to tvbrowser's jars
99 - # when bumping, check that it doesn't affect lines it shouldn't!
100 sed "/unpacked.dir/d" -i build.xml || die
101
102 cd "${S}"/lib || die
103 - # TODO maybe also remove jgoodies-common, someone just need to test it
104 rm -v bsh-*.jar commons-codec-*.jar commons-lang-*.jar commons-net*.jar \
105 l2fprod-common-tasks-7.3.jar skinlf-6.7.jar stax*.jar \
106 jgoodies-form*.jar jgoodies-looks*.jar || die
107
108 - # TODO update this comment, it's not up to date
109 - # missing dependencies htmlparser jRegistryKey opencsv texhyphj
110 - # use local jar files for these, and also those in deployment
111 - # some are win32/mac only, so we will let tvbrowser build
112 - # against them (no need to patch stuff out of sources)
113 - # but won't install the bundled jars, because their
114 - # codepath won't be executed on linux anyway
115 java-pkg_jar-from bsh,commons-codec,commons-lang-2.1,commons-net,jgoodies-forms,l2fprod-common,log4j,jgoodies-looks-2.0,skinlf,stax
116
117 - # Fails to create javadocs without this
118 - mkdir "${S}/public" || die
119 + mkdir "${S}/public" || die "failed javadoc dir"
120 }
121
122 src_compile() {
123 ${ANT_OPTS} eant runtime-linux $(use_doc public-doc)
124 }
125
126 -#src_test() {
127 -# eant test
128 -#}
129 +src_test() {
130 + java-pkg-2_src_test
131 +}
132
133 src_install() {
134 use source && java-pkg_dosrc src