blob: 4c279a013f333d2321361385b5aa5c5f2f50443f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/tvbrowser/tvbrowser-2.5.2.ebuild,v 1.8 2008/10/22 12:20:52 fordfrog Exp $
EAPI="1"
WANT_AUTOCONF="latest"
WANT_AUTOMAKE="latest"
JAVA_PKG_IUSE="doc source"
inherit eutils java-pkg-2 java-ant-2 autotools flag-o-matic
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? ( http://www.tvbrowser.org/downloads/themepacks/allthemepacks.zip )"
SLOT="0"
KEYWORDS="~x86 ~amd64"
# missing dependencies commons-compress, TVAnytimeAPI, jRegistryKey , gdata-calendar, gdata-client and jcom
RDEPEND="
>=virtual/jre-1.5
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
>=dev-java/junit-3.8:0
dev-java/commons-net:0
>=dev-java/jgoodies-forms-1.0.7:0
>=dev-java/jgoodies-looks-2.0:2.0
>=dev-java/bsh-2.0_beta1:0
>=dev-java/skinlf-6.7:0
dev-java/l2fprod-common:0
>=dev-java/poi-2.5.1:0
>=dev-java/xerces-2.8:2"
DEPEND=">=virtual/jdk-1.5
${RDEPEND}
app-arch/unzip:0"
LICENSE="GPL-2"
IUSE="themes"
src_unpack() {
unpack ${P}-src.zip
cd "${S}"
epatch "${FILESDIR}/tvbrowser-2.5-makefiles.patch"
epatch "${FILESDIR}/${P}_noWin32.patch"
epatch "${FILESDIR}/${P}_buildxml.patch"
#fix bug #170363
epatch "${FILESDIR}/tvbrowser-2.5_Localizer.patch"
# missing commons-compress, gdata-calendar, gdata-client
rm -r "${S}/src/calendarexportplugin"
rm -r "${S}/src/bbcbackstagedataservice"
#we don't need this stuff
rm -r "${S}/deployment/win"
rm -r "${S}/deployment/macosx"
local J_ARCH
case "${ARCH}" in
x86) J_ARCH=i386 ;;
amd64) J_ARCH=amd64 ;;
*) die "not supported arch for this ebuild" ;;
esac
sed -i "${S}/deployment/x11/src/Makefile.am" \
-e "s-/lib/i386/-/lib/${J_ARCH}/-"
cd "${S}/tvdatakit/workspace/lib"
rm -v *.jar || die
java-pkg_jar-from poi
java-pkg_jar-from xerces-2
cd "${S}/lib"
rm -v *.jar || die
java-pkg_jar-from junit
java-pkg_jar-from commons-net
java-pkg_jar-from jgoodies-forms forms.jar forms-1.0.7.jar
java-pkg_jar-from jgoodies-looks-2.0 looks.jar looks-2.0.4.jar
java-pkg_jar-from bsh bsh.jar bsh-2.0b1.jar
java-pkg_jar-from skinlf
java-pkg_jar-from l2fprod-common l2fprod-common-tasks.jar
# Fails to create javadocs without this
mkdir "${S}/public"
#fix bug #170364
cd "${S}/deployment/x11"
chmod u+x configure
rm src/libDesktopIndicator.so || die
# converting to unix line-endings
edos2unix missing depcomp
eautoreconf
}
src_compile() {
eant runtime-linux $(use_doc public-doc)
# second part: DesktopIndicator
cd "${S}/deployment/x11"
append-flags -fPIC
econf || die "econf failed"
emake || die "emake failed"
}
src_install() {
use source && java-pkg_dosrc src/*
use doc && java-pkg_dojavadoc doc
cd runtime/${PN}_linux || die
java-pkg_dojar ${PN}.jar
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 || die
if use themes; then
cd "${D}/${todir}/themepacks"
unpack allthemepacks.zip
fi
java-pkg_doso "${S}/deployment/x11/src/libDesktopIndicator.so"
java-pkg_dolauncher "tvbrowser" \
--jar ${todir}/lib/tvbrowser.jar \
--pwd ${todir} \
--java_args " -Dpropertiesfile=${todir}/linux.properties"
make_desktop_entry ${PN} "TV Browser" /usr/share/tvbrowser/imgs/tvbrowser128.png
}
|