summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Schwarzott <zzam@gentoo.org>2006-01-22 12:37:59 +0000
committerMatthias Schwarzott <zzam@gentoo.org>2006-01-22 12:37:59 +0000
commit3c44b312fd5591c125a09b5f55bc3ffe11ef74c1 (patch)
tree992781a4181da91c45d6c6c85d58245bbf072f9d /media-tv/tvbrowser
parentMoved to desktop-dock. (diff)
downloadgentoo-2-3c44b312fd5591c125a09b5f55bc3ffe11ef74c1.tar.gz
gentoo-2-3c44b312fd5591c125a09b5f55bc3ffe11ef74c1.tar.bz2
gentoo-2-3c44b312fd5591c125a09b5f55bc3ffe11ef74c1.zip
Inital import of ebuild (ebuild slightly based on the one from Bug #104792)
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'media-tv/tvbrowser')
-rw-r--r--media-tv/tvbrowser/ChangeLog11
-rw-r--r--media-tv/tvbrowser/Manifest3
-rw-r--r--media-tv/tvbrowser/files/digest-tvbrowser-2.12
-rw-r--r--media-tv/tvbrowser/files/tvbrowser-2.1-makefiles.patch64
-rw-r--r--media-tv/tvbrowser/metadata.xml12
-rw-r--r--media-tv/tvbrowser/tvbrowser-2.1.ebuild113
6 files changed, 205 insertions, 0 deletions
diff --git a/media-tv/tvbrowser/ChangeLog b/media-tv/tvbrowser/ChangeLog
new file mode 100644
index 000000000000..8dab5a35ceaa
--- /dev/null
+++ b/media-tv/tvbrowser/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for media-tv/tvbrowser
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/tvbrowser/ChangeLog,v 1.1 2006/01/22 12:37:59 zzam Exp $
+
+*tvbrowser-2.1 (22 Jan 2006)
+
+ 22 Jan 2006; Matthias Schwarzott <zzam@gentoo.org>
+ +files/tvbrowser-2.1-makefiles.patch, +metadata.xml,
+ +tvbrowser-2.1.ebuild:
+ Inital import of ebuild (ebuild slightly based on the one from Bug #104792)
+
diff --git a/media-tv/tvbrowser/Manifest b/media-tv/tvbrowser/Manifest
new file mode 100644
index 000000000000..930b9a890507
--- /dev/null
+++ b/media-tv/tvbrowser/Manifest
@@ -0,0 +1,3 @@
+MD5 45b73b563b0dfda4f6005e25c5a01a44 files/digest-tvbrowser-2.1 129
+MD5 2a50d11a23b770a3d4b7b34bbaca2c36 files/tvbrowser-2.1-makefiles.patch 3385
+MD5 6ed31a5c697381226c50ba9af5af4313 tvbrowser-2.1.ebuild 2534
diff --git a/media-tv/tvbrowser/files/digest-tvbrowser-2.1 b/media-tv/tvbrowser/files/digest-tvbrowser-2.1
new file mode 100644
index 000000000000..4f8ca653021a
--- /dev/null
+++ b/media-tv/tvbrowser/files/digest-tvbrowser-2.1
@@ -0,0 +1,2 @@
+MD5 672a2f53c54511ced3f796c65a9183f7 allthemepacks.zip 210954
+MD5 8852d24f3796e2b104edeee3b59cc0cc tvbrowser-2.1-src.zip 5928402
diff --git a/media-tv/tvbrowser/files/tvbrowser-2.1-makefiles.patch b/media-tv/tvbrowser/files/tvbrowser-2.1-makefiles.patch
new file mode 100644
index 000000000000..fe66053d28e3
--- /dev/null
+++ b/media-tv/tvbrowser/files/tvbrowser-2.1-makefiles.patch
@@ -0,0 +1,64 @@
+diff -ru tvbrowser-2.1-orig/deployment/x11/configure tvbrowser-2.1/deployment/x11/configure
+--- tvbrowser-2.1-orig/deployment/x11/configure 2006-01-21 21:26:40.665900000 +0100
++++ tvbrowser-2.1/deployment/x11/configure 2006-01-21 21:28:27.268562250 +0100
+@@ -19809,7 +19809,7 @@
+
+
+
+- ac_config_files="$ac_config_files Makefile src/Makefile src/eclipse_java/Makefile src/logger/Makefile"
++ ac_config_files="$ac_config_files Makefile src/Makefile src/logger/Makefile"
+ cat >confcache <<\_ACEOF
+ # This file is a shell script that caches the results of configure
+ # tests run on this system so they can be shared between configure
+@@ -20368,7 +20368,6 @@
+ # Handling of arguments.
+ "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
+ "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
+- "src/eclipse_java/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/eclipse_java/Makefile" ;;
+ "src/logger/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/logger/Makefile" ;;
+ "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
+ "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
+diff -ru tvbrowser-2.1-orig/deployment/x11/configure.in tvbrowser-2.1/deployment/x11/configure.in
+--- tvbrowser-2.1-orig/deployment/x11/configure.in 2006-01-21 21:26:40.665900000 +0100
++++ tvbrowser-2.1/deployment/x11/configure.in 2006-01-21 21:27:27.444823500 +0100
+@@ -7,4 +7,4 @@
+ AC_PROG_CC
+ AM_PROG_LIBTOOL
+
+-AC_OUTPUT(Makefile src/Makefile src/eclipse_java/Makefile src/logger/Makefile)
++AC_OUTPUT(Makefile src/Makefile src/logger/Makefile)
+diff -ru tvbrowser-2.1-orig/deployment/x11/src/jni_wrapper.c tvbrowser-2.1/deployment/x11/src/jni_wrapper.c
+--- tvbrowser-2.1-orig/deployment/x11/src/jni_wrapper.c 2006-01-21 21:26:40.669900250 +0100
++++ tvbrowser-2.1/deployment/x11/src/jni_wrapper.c 2006-01-21 21:27:40.025609750 +0100
+@@ -22,7 +22,6 @@
+
+ #include <jni.h>
+
+-#include "eclipse_java/com_gc_systray_X11SystrayManager.h"
+ #include "x11_systray_window.h"
+
+ #include "logger/logger.h"
+diff -ru tvbrowser-2.1-orig/deployment/x11/src/Makefile.am tvbrowser-2.1/deployment/x11/src/Makefile.am
+--- tvbrowser-2.1-orig/deployment/x11/src/Makefile.am 2006-01-21 21:26:40.669900250 +0100
++++ tvbrowser-2.1/deployment/x11/src/Makefile.am 2006-01-21 21:27:08.755655500 +0100
+@@ -7,7 +7,7 @@
+ noinst_PROGRAMS = libDesktopIndicator.so
+ libDesktopIndicator_so_SOURCES = jni_wrapper.c x11_systray_window.c
+
+-SUBDIRS = eclipse_java logger
++SUBDIRS = logger
+ noinst_HEADERS = x11_systray_window.h
+ libDesktopIndicator_so_LDADD = $(top_builddir)/src/logger/liblogger.a \
+ -L/usr/X11R6/lib -lX11 -lm -lc -L$(JAVA_HOME)/jre/lib/i386/ -ljawt
+diff -ru tvbrowser-2.1-orig/deployment/x11/src/Makefile.in tvbrowser-2.1/deployment/x11/src/Makefile.in
+--- tvbrowser-2.1-orig/deployment/x11/src/Makefile.in 2006-01-21 21:26:40.669900250 +0100
++++ tvbrowser-2.1/deployment/x11/src/Makefile.in 2006-01-21 21:27:48.698151750 +0100
+@@ -183,7 +183,7 @@
+ # the library search path.
+ libDesktopIndicator_so_LDFLAGS = -shared -Wl
+ libDesktopIndicator_so_SOURCES = jni_wrapper.c x11_systray_window.c
+-SUBDIRS = eclipse_java logger
++SUBDIRS = logger
+ noinst_HEADERS = x11_systray_window.h
+ libDesktopIndicator_so_LDADD = $(top_builddir)/src/logger/liblogger.a \
+ -L/usr/X11R6/lib -lX11 -lm -lc -L$(JAVA_HOME)/jre/lib/i386/ -ljawt
diff --git a/media-tv/tvbrowser/metadata.xml b/media-tv/tvbrowser/metadata.xml
new file mode 100644
index 000000000000..3aaff838ed8d
--- /dev/null
+++ b/media-tv/tvbrowser/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>media-tv</herd>
+<maintainer>
+<email>zzam@gentoo.org</email>
+<name>Matthias Schwarzott</name>
+</maintainer>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+
diff --git a/media-tv/tvbrowser/tvbrowser-2.1.ebuild b/media-tv/tvbrowser/tvbrowser-2.1.ebuild
new file mode 100644
index 000000000000..fdaea5d5f3ce
--- /dev/null
+++ b/media-tv/tvbrowser/tvbrowser-2.1.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/tvbrowser/tvbrowser-2.1.ebuild,v 1.1 2006/01/22 12:37:59 zzam Exp $
+
+inherit eutils java-pkg libtool
+
+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"
+
+RDEPEND=">=virtual/jre-1.4
+ virtual/x11
+ dev-java/junit
+ dev-java/commons-net
+ dev-java/jgoodies-forms
+ dev-java/bsh
+ dev-java/skinlf
+ "
+DEPEND=">=virtual/jdk-1.4
+ ${RDEPEND}
+ >=dev-java/ant-core-1.5.4
+ app-arch/unzip
+ source? ( app-arch/zip )"
+
+LICENSE="GPL-2"
+
+IUSE="doc source jikes"
+
+src_unpack() {
+ unpack ${A}
+
+ epatch ${FILESDIR}/${P}-makefiles.patch
+
+ cd ${S}/lib
+ rm *.jar
+
+ java-pkg_jar-from junit
+ java-pkg_jar-from commons-net
+ java-pkg_jar-from jgoodies-forms forms.jar forms-1.0.5.jar
+ java-pkg_jar-from bsh bsh.jar bsh-2.0b1.jar
+ java-pkg_jar-from skinlf
+
+ cd ${S}
+ find -name "*.jar"
+
+ cd ${S}/deployment/x11
+ rm configure
+
+ libtoolize --copy --force
+ autoreconf
+}
+
+src_compile() {
+ local antflags="runtime-linux"
+ use doc && antflags="${antflags} public-doc"
+ use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
+ cd ${S}
+ mkdir public
+ ant ${antflags} || die "compilation failed !"
+
+ # second part: systray-module
+ cd ${S}/deployment/x11
+ econf || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ use source && java-pkg_dosrc src/*
+ use doc && java-pkg_dohtml -r doc/*
+ cd runtime/${PN}_linux
+
+ java-pkg_dojar ${PN}.jar
+
+ local todir="/usr/share/${PN}"
+ if [ ${SLOT}q != "0q" ] ; then
+ todir="${todir}-${SLOT}"
+ fi
+
+ cp -a imgs ${D}/${todir}
+ cp -a plugins ${D}/${todir}
+ cp linux.properties ${D}/${todir}
+
+ cp libDesktopIndicator.so ${D}/${todir}
+
+ mkdir "${D}/usr/share/${PN}-themepacks"
+ cp themepacks/themepack.zip "${D}/usr/share/${PN}-themepacks"
+
+ if use themes; then
+ cd "${D}/usr/share/${PN}-themepacks"
+ unpack allthemepacks.zip
+ fi
+
+ mkdir ${D}/${todir}/bin
+
+ echo "#!/bin/bash" > "${D}/${todir}/bin/tvbrowser.sh"
+ echo "cd ${todir}" >> "${D}/${todir}/bin/tvbrowser.sh"
+ echo "export LD_LIBRARY_PATH=\${LD_LIBRARY_PATH}:${todir}" >> "${D}/${todir}/bin/tvbrowser.sh"
+ echo "\$(java-config -J) -jar lib/tvbrowser.jar" >> "${D}/${todir}/bin/tvbrowser.sh"
+ chmod +x "${D}/${todir}/bin/tvbrowser.sh"
+
+ dodir /usr/bin
+ dosym ${todir}/bin/tvbrowser.sh /usr/bin/tvbrowser
+}
+
+pkg_postinst() {
+ einfo
+ einfo "If you want Systray you have to use a jre >= 1.5 !"
+ einfo
+}