summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2007-07-30 12:52:29 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2007-07-30 12:52:29 +0000
commit6b0b19e7711734186689567c5d965d0b8a5819ca (patch)
tree888edae5e23a4a5847760a68f0c4c88641ec4470 /media-tv
parentAdd sparc keyword --- Bug #186849 --- good on sparc since October, 2006. (diff)
downloadgentoo-2-6b0b19e7711734186689567c5d965d0b8a5819ca.tar.gz
gentoo-2-6b0b19e7711734186689567c5d965d0b8a5819ca.tar.bz2
gentoo-2-6b0b19e7711734186689567c5d965d0b8a5819ca.zip
Version bumped, bug #186824.
(Portage version: 2.1.3_rc9)
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/tvbrowser/ChangeLog9
-rw-r--r--media-tv/tvbrowser/files/digest-tvbrowser-2.5.36
-rw-r--r--media-tv/tvbrowser/files/tvbrowser-2.5.3_buildxml.patch123
-rw-r--r--media-tv/tvbrowser/files/tvbrowser-2.5.3_noWin32.patch118
-rw-r--r--media-tv/tvbrowser/tvbrowser-2.5.3.ebuild149
5 files changed, 404 insertions, 1 deletions
diff --git a/media-tv/tvbrowser/ChangeLog b/media-tv/tvbrowser/ChangeLog
index a318c34857bb..4305cf24d93a 100644
--- a/media-tv/tvbrowser/ChangeLog
+++ b/media-tv/tvbrowser/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-tv/tvbrowser
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/tvbrowser/ChangeLog,v 1.17 2007/07/22 09:01:22 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-tv/tvbrowser/ChangeLog,v 1.18 2007/07/30 12:52:29 zzam Exp $
+
+*tvbrowser-2.5.3 (30 Jul 2007)
+
+ 30 Jul 2007; Matthias Schwarzott <zzam@gentoo.org>
+ +files/tvbrowser-2.5.3_buildxml.patch,
+ +files/tvbrowser-2.5.3_noWin32.patch, +tvbrowser-2.5.3.ebuild:
+ Version bumped, bug #186824.
22 Jul 2007; Donnie Berkholz <dberkholz@gentoo.org>; tvbrowser-2.1.ebuild,
tvbrowser-2.2.1.ebuild, tvbrowser-2.5.ebuild, tvbrowser-2.5-r1.ebuild:
diff --git a/media-tv/tvbrowser/files/digest-tvbrowser-2.5.3 b/media-tv/tvbrowser/files/digest-tvbrowser-2.5.3
new file mode 100644
index 000000000000..9f114728495e
--- /dev/null
+++ b/media-tv/tvbrowser/files/digest-tvbrowser-2.5.3
@@ -0,0 +1,6 @@
+MD5 672a2f53c54511ced3f796c65a9183f7 allthemepacks.zip 210954
+RMD160 6d456534bd504c98eb57ff39876ee2c2ffabee70 allthemepacks.zip 210954
+SHA256 602d229f734c2fa3e2984a2d86faf6c1825d6db56329b00ce25ba1a2eb5b64b7 allthemepacks.zip 210954
+MD5 ba0daacd91a48e4998e8de8b9c66daf9 tvbrowser-2.5.3-src.zip 9290454
+RMD160 9138e33dd1fbe887353a8ac5eecd7e9cb7b1fd0f tvbrowser-2.5.3-src.zip 9290454
+SHA256 e3dbabedb9e16b73f11828f5b5654034055638387be7f1b89db1b8b00d7bcea8 tvbrowser-2.5.3-src.zip 9290454
diff --git a/media-tv/tvbrowser/files/tvbrowser-2.5.3_buildxml.patch b/media-tv/tvbrowser/files/tvbrowser-2.5.3_buildxml.patch
new file mode 100644
index 000000000000..e1ab44087168
--- /dev/null
+++ b/media-tv/tvbrowser/files/tvbrowser-2.5.3_buildxml.patch
@@ -0,0 +1,123 @@
+diff -ru tvbrowser-2.5.3-orig/build.xml tvbrowser-2.5.3/build.xml
+--- tvbrowser-2.5.3-orig/build.xml 2007-07-30 13:32:29.368999217 +0200
++++ tvbrowser-2.5.3/build.xml 2007-07-30 13:36:32.393941090 +0200
+@@ -99,15 +99,6 @@
+ |
+ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
+
+- <!-- Creates an .app file for Mac OS X -->
+- <taskdef name="jarbundler"
+- classpath="deployment/macosx/jarbundler-1.4.jar"
+- classname="com.loomcom.ant.tasks.jarbundler.JarBundler"/>
+-
+- <!-- Creates a Windows Executable using launch4j (http://launch4j.sf.net) -->
+- <taskdef name="launch4j"
+- classname="net.sf.launch4j.ant.Launch4jTask"
+- classpath="${deployment.dir}/win/launch4j/launch4j.jar:${deployment.dir}/win/launch4j/lib/xstream.jar" />
+ <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
+ |
+ | Display all targets
+@@ -292,39 +283,18 @@
+ <mkdir dir="${tvbrowser-default.runtime.dir}"/>
+ <mkdir dir="${tvbrowser-default.runtime.dir}/plugins"/>
+
+- <!-- Extract the libraries for the tvbrowser.jar into the temp.dir -->
+- <mkdir dir="${unpacked.dir}/skinlf.jar"/>
+- <unjar src="${lib.dir}/skinlf.jar" dest="${unpacked.dir}/skinlf.jar"/>
+- <unjar src="${lib.dir}/bsh-2.0b4.jar" dest="${unpacked.dir}/bsh-2.0b4.jar"/>
+- <unjar src="${lib.dir}/forms-1.1.0.jar" dest="${unpacked.dir}/forms-1.1.0.jar"/>
+- <unjar src="${lib.dir}/looks-2.1.4.jar" dest="${unpacked.dir}/looks-2.1.4.jar"/>
+- <unjar src="${lib.dir}/l2fprod-common-tasks.jar" dest="${unpacked.dir}/l2fprod-common-tasks.jar"/>
+- <unjar src="${lib.dir}/jRegistryKey.jar" dest="${unpacked.dir}/jRegistryKey.jar" />
+- <unjar src="${lib.dir}/TVAnytimeAPI.jar" dest="${unpacked.dir}/TVAnytimeAPI.jar" />
+- <unjar src="${lib.dir}/commons-compress-20050911.jar" dest="${unpacked.dir}/commons-compress-20050911.jar" />
+- <unjar src="${lib.dir}/gdata-calendar-1.0.jar" dest="${unpacked.dir}/gdata-calendar-1.0.jar" />
+- <unjar src="${lib.dir}/gdata-client-1.0.jar" dest="${unpacked.dir}/gdata-client-1.0.jar" />
+- <unjar src="${lib.dir}/jcom.jar" dest="${unpacked.dir}/jcom.jar" />
+-
+ <!-- Pack the tvbrowser.jar -->
+ <jar jarfile="${tvbrowser-default.runtime.dir}/tvbrowser.jar"
+- compress="false"
+- index="true">
++ compress="false">
+ <manifest>
+ <attribute name="Main-Class" value="tvbrowser.TVBrowser"/>
++ <attribute name="Class-Path" value="file:///usr/share/jgoodies-looks-2.0/lib/looks.jar file:///usr/share/skinlf/lib/skinlf.jar file:///usr/share/bsh/lib/bsh.jar file:///usr/share/jgoodies-forms/lib/forms.jar file:///usr/share/l2fprod-common/lib/l2fprod-common-tasks.jar file:///usr/share/commons-net/lib/commons-net.jar"/>
+ </manifest>
+ <fileset dir="${classes.dir}" includes="tvbrowser/**"/>
+ <fileset dir="${classes.dir}" includes="devplugin/**"/>
+ <fileset dir="${classes.dir}" includes="tvdataservice/**"/>
+ <fileset dir="${classes.dir}" includes="util/**"/>
+ <fileset dir="${classes.dir}" includes="com/**"/>
+- <fileset dir="${unpacked.dir}/skinlf.jar" includes="com/**"/>
+- <fileset dir="${unpacked.dir}/skinlf.jar" includes="org/**"/>
+- <fileset dir="${unpacked.dir}/bsh-2.0b4.jar" includes="bsh/**"/>
+- <fileset dir="${unpacked.dir}/forms-1.1.0.jar" includes="com/**"/>
+- <fileset dir="${unpacked.dir}/looks-2.1.4.jar" includes="com/**"/>
+- <fileset dir="${unpacked.dir}/l2fprod-common-tasks.jar" includes="com/**"/>
+- <fileset dir="${unpacked.dir}/jRegistryKey.jar" includes="ca/**" />
+ </jar>
+
+ <!-- Pack the plugin jars -->
+@@ -350,13 +320,6 @@
+ compress="false">
+ <fileset dir="${classes.dir}" includes="newsplugin/**"/>
+ </jar>
+- <jar jarfile="${tvbrowser-default.runtime.dir}/plugins/CalendarExportPlugin.jar"
+- compress="false">
+- <fileset dir="${classes.dir}" includes="calendarexportplugin/**"/>
+- <fileset dir="${unpacked.dir}/gdata-calendar-1.0.jar" includes="**" />
+- <fileset dir="${unpacked.dir}/gdata-client-1.0.jar" includes="**" />
+- <fileset dir="${unpacked.dir}/jcom.jar" includes="**" />
+- </jar>
+ <jar jarfile="${tvbrowser-default.runtime.dir}/plugins/ClipboardPlugin.jar"
+ compress="false">
+ <fileset dir="${classes.dir}" includes="clipboardplugin/**"/>
+@@ -454,10 +417,6 @@
+ <fileset dir="images/themes" includes="**/*"/>
+ </copy>
+
+- <!-- Extract the libraries for the tvbrowser.jar into the temp.dir -->
+- <mkdir dir="${unpacked.dir}/commons-net.jar"/>
+- <unjar src="${lib.dir}/commons-net.jar" dest="${unpacked.dir}/commons-net.jar"/>
+-
+ </target>
+
+
+@@ -555,11 +514,6 @@
+ <mkdir dir="${tvdatatools.runtime.dir}"/>
+ <mkdir dir="${tvdatatools.runtime.dir}/prepared"/>
+
+- <!-- Extract the libraries for the jars into the temp.dir -->
+- <mkdir dir="${unpacked.dir}/commons-net.jar"/>
+- <unjar src="${lib.dir}/commons-net.jar" dest="${unpacked.dir}/commons-net.jar"/>
+- <unjar src="${lib.dir}/looks-2.1.4.jar" dest="${unpacked.dir}/looks-2.1.4.jar"/>
+-
+ <!-- Pack the MirrorUpdater.jar -->
+ <jar jarfile="${tvdatatools.runtime.dir}/MirrorUpdater.jar"
+ compress="false"
+@@ -578,8 +532,6 @@
+ <fileset dir="${classes.dir}" includes="tvbrowser/core/Settings*"/>
+ <fileset dir="${classes.dir}" includes="tvbrowser/core/plugin/DefaultSettings*"/>-->
+ <fileset dir="${classes.dir}" includes="tvbrowser/**"/>
+- <fileset dir="${unpacked.dir}/commons-net.jar" includes="org/**"/>
+- <fileset dir="${unpacked.dir}/looks-2.1.4.jar" includes="com/**"/>
+ </jar>
+
+ <!-- Pack the PrimaryDataManager.jar -->
+@@ -597,7 +549,6 @@
+ <fileset dir="${classes.dir}" includes="devplugin/**"/>
+ <fileset dir="${classes.dir}" includes="util/**"/>
+ <fileset dir="${classes.dir}" includes="tvbrowser/**"/>
+- <fileset dir="${unpacked.dir}/looks-2.1.4.jar" includes="com/**"/>
+ </jar>
+
+ <!-- Pack the PDSRunner.jar -->
+@@ -615,7 +566,6 @@
+ <fileset dir="${classes.dir}" includes="devplugin/**"/>
+ <fileset dir="${classes.dir}" includes="util/**"/>
+ <fileset dir="${classes.dir}" includes="tvbrowser/**"/>
+- <fileset dir="${unpacked.dir}/looks-2.1.4.jar" includes="com/**"/>
+ </jar>
+
+ <!-- Copy the file(s) -->
diff --git a/media-tv/tvbrowser/files/tvbrowser-2.5.3_noWin32.patch b/media-tv/tvbrowser/files/tvbrowser-2.5.3_noWin32.patch
new file mode 100644
index 000000000000..e67b8d614cdf
--- /dev/null
+++ b/media-tv/tvbrowser/files/tvbrowser-2.5.3_noWin32.patch
@@ -0,0 +1,118 @@
+diff -ru tvbrowser-2.5.3-orig/src/tvbrowser/TVBrowser.java tvbrowser-2.5.3/src/tvbrowser/TVBrowser.java
+--- tvbrowser-2.5.3-orig/src/tvbrowser/TVBrowser.java 2007-07-30 13:26:54.836657357 +0200
++++ tvbrowser-2.5.3/src/tvbrowser/TVBrowser.java 2007-07-30 13:28:39.845848269 +0200
+@@ -88,10 +88,6 @@
+ import util.ui.UiUtilities;
+ import util.ui.textcomponentpopup.TextComponentPopupEventQueue;
+
+-import ca.beq.util.win32.registry.RegistryKey;
+-import ca.beq.util.win32.registry.RegistryValue;
+-import ca.beq.util.win32.registry.RootKey;
+-
+ import com.jgoodies.looks.LookUtils;
+ import com.jgoodies.looks.Options;
+ import com.l2fprod.gui.plaf.skin.SkinLookAndFeel;
+@@ -397,53 +393,6 @@
+ }.start();
+ ChannelList.completeChannelLoading();
+
+- if(Launch.isOsWindowsNtBranch()) {
+- try {
+- RegistryKey desktopSettings = new RegistryKey(RootKey.HKEY_CURRENT_USER, "Control Panel\\Desktop");
+- RegistryValue autoEnd = desktopSettings.getValue("AutoEndTasks");
+-
+- if(autoEnd.getData().equals("1")) {
+- RegistryValue killWait = desktopSettings.getValue("WaitToKillAppTimeout");
+-
+- int i = Integer.parseInt(killWait.getData().toString());
+-
+- if(i < 5000) {
+- JOptionPane pane = new JOptionPane();
+-
+- String cancel = mLocalizer.msg("registryCancel","Close TV-Browser");
+- String dontDoIt = mLocalizer.msg("registryJumpOver","Not this time");
+-
+- pane.setOptions(new String[] {Localizer.getLocalization(Localizer.I18N_OK),dontDoIt,cancel});
+- pane.setOptionType(JOptionPane.YES_NO_CANCEL_OPTION);
+- pane.setMessageType(JOptionPane.WARNING_MESSAGE);
+- pane.setMessage(mLocalizer.msg("registryWarning","The fast shutdown of Windows is activated.\nThe timeout to wait for before Windows is closing an application is too short,\nto give TV-Browser enough time to save all settings.\n\nThe setting hasn't the default value. It was changed by a tool or by you.\nTV-Browser will now try to change the timeout.\n\nIf you don't want to change this timeout select 'Not this time' or 'Close TV-Browser'."));
+-
+- pane.setInitialValue(mLocalizer.msg("registryCancel","Close TV-Browser"));
+-
+- JDialog d = pane.createDialog(UiUtilities.getLastModalChildOf(mainFrame), UIManager.getString("OptionPane.messageDialogTitle"));
+- d.setModal(true);
+- UiUtilities.centerAndShow(d);
+-
+- if(pane.getValue() == null || pane.getValue().equals(cancel)) {
+- mainFrame.quit();
+- }
+- else if(!pane.getValue().equals(dontDoIt)) {
+- try {
+- killWait.setData("5000");
+- desktopSettings.setValue(killWait);
+- JOptionPane.showMessageDialog(UiUtilities.getLastModalChildOf(mainFrame),
+- mLocalizer.msg("registryChanged","The timeout was changed successfully.\nPlease reboot Windows!"));
+- }catch(Exception registySetting) {
+- JOptionPane.showMessageDialog(UiUtilities.getLastModalChildOf(mainFrame),
+- mLocalizer.msg("registryNotChanged","<html>The Registry value couldn't be changed. Maybe you haven't the right to do it.<br>If it is so contact you Administrator and let him do it for you.<br><br><b><Attention:/b> The following description is for experts. If you change or delete the wrong value in the Registry you could destroy your Windows installation.<br><br>To get no warning on TV-Browser start the Registry value <b>WaitToKillAppTimeout</b> in the Registry path<br><b>HKEY_CURRENT_USER\\Control Panel\\Desktop</b> have to be at least <b>5000</b> or the value for <b>AutoEndTasks</b> in the same path have to be <b>0</b>.</html>"),
+- Localizer.getLocalization(Localizer.I18N_ERROR),JOptionPane.ERROR_MESSAGE);
+- }
+- }
+- }
+- }
+- }catch(Throwable registry) {}
+- }
+-
+ // check if user should select picture settings
+ if(currentVersion != null && currentVersion.compareTo(new Version(2,22))<0) {
+ TvBrowserPictureSettingsUpdateDialog.createAndShow(mainFrame);
+Nur in tvbrowser-2.5.3/src/tvbrowser: TVBrowser.java.orig.
+diff -ru tvbrowser-2.5.3-orig/src/tvbrowser/ui/settings/StartupSettingsTab.java tvbrowser-2.5.3/src/tvbrowser/ui/settings/StartupSettingsTab.java
+--- tvbrowser-2.5.3-orig/src/tvbrowser/ui/settings/StartupSettingsTab.java 2007-07-30 13:26:54.836657357 +0200
++++ tvbrowser-2.5.3/src/tvbrowser/ui/settings/StartupSettingsTab.java 2007-07-30 13:27:38.340420377 +0200
+@@ -39,9 +39,6 @@
+ import util.ui.Localizer;
+ import util.ui.UiUtilities;
+
+-import ca.beq.util.win32.registry.RegistryKey;
+-import ca.beq.util.win32.registry.RootKey;
+-
+ import com.jgoodies.forms.factories.Borders;
+ import com.jgoodies.forms.factories.DefaultComponentFactory;
+ import com.jgoodies.forms.layout.CellConstraints;
+@@ -92,35 +89,6 @@
+ .getBoolean());
+ mSettingsPn.add(mShowSplashChB, cc.xy(2, 5));
+
+- if (System.getProperty("os.name").toLowerCase().startsWith("windows") && !TVBrowser.isTransportable()) {
+- layout.appendRow(new RowSpec("3dlu"));
+- layout.appendRow(new RowSpec("pref"));
+-
+- try {
+- RegistryKey shellFolders = new RegistryKey(RootKey.HKEY_CURRENT_USER, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders");
+- String path = shellFolders.getValue("Startup").getData().toString();
+-
+- if(path == null || path.length() < 1 || !(new File(path)).isDirectory())
+- throw new Exception();
+-
+- mLinkFile = new File(path,"TV-Browser.url");
+- mLinkUrl = new UrlFile(mLinkFile);
+-
+- if(mLinkFile.exists())
+- try {
+- if (!mLinkUrl.getUrl().equals((new File("tvbrowser.exe")).getAbsoluteFile().toURL()))
+- createLink(mLinkUrl);
+- }catch(Exception linkException) {
+- mLinkFile.delete();
+- }
+-
+- mAutostartWithWindows = new JCheckBox(mLocalizer.msg("autostart","Start TV-Browser with Windows"),
+- mLinkFile.isFile());
+-
+- mSettingsPn.add(mAutostartWithWindows, cc.xy(2, 7));
+- } catch (Throwable e) {}
+- }
+-
+ return mSettingsPn;
+ }
+
diff --git a/media-tv/tvbrowser/tvbrowser-2.5.3.ebuild b/media-tv/tvbrowser/tvbrowser-2.5.3.ebuild
new file mode 100644
index 000000000000..eb57a52617ec
--- /dev/null
+++ b/media-tv/tvbrowser/tvbrowser-2.5.3.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/tvbrowser/tvbrowser-2.5.3.ebuild,v 1.1 2007/07/30 12:52:29 zzam Exp $
+
+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
+ x11-libs/libSM
+ x11-libs/libICE
+ x11-libs/libXext
+ x11-libs/libXtst
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libXdmcp
+ dev-java/junit
+ dev-java/commons-net
+ >=dev-java/jgoodies-forms-1.0.7
+ >=dev-java/jgoodies-looks-2.0
+ >=dev-java/bsh-2.0_beta1
+ >=dev-java/skinlf-6.7
+ dev-java/l2fprod-common
+ >=dev-java/poi-2.5.1
+ >=dev-java/xerces-2.6.2"
+
+DEPEND=">=virtual/jdk-1.5
+ ${RDEPEND}
+ app-arch/unzip"
+
+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
+}