summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir Lamouri <volkmar@gentoo.org>2009-10-30 08:29:51 +0000
committerMounir Lamouri <volkmar@gentoo.org>2009-10-30 08:29:51 +0000
commit5aea7834b8e8e651ecf1e70545c541875a28a592 (patch)
treec0b4d3f5a26058bcd52dd631b62b8eedd7bb9955 /media-video/miro
parentVersion bump, fix compilation with gdl-2.28, bug #290522. Remove built_with_u... (diff)
downloadgentoo-2-5aea7834b8e8e651ecf1e70545c541875a28a592.tar.gz
gentoo-2-5aea7834b8e8e651ecf1e70545c541875a28a592.tar.bz2
gentoo-2-5aea7834b8e8e651ecf1e70545c541875a28a592.zip
Initial commit.
Fix bug 131527. Thanks to wayne work on the bug. (Portage version: 14478-svn/cvs/Linux ppc)
Diffstat (limited to 'media-video/miro')
-rw-r--r--media-video/miro/ChangeLog14
-rw-r--r--media-video/miro/files/miro-2.5.3-disable-xine-hack.patch16
-rw-r--r--media-video/miro/files/miro-2.5.3-dont-install-test-files.patch37
-rw-r--r--media-video/miro/files/miro-2.5.3-fix-debug.patch12
-rw-r--r--media-video/miro/files/miro-2.5.3-fix-locale.patch11
-rw-r--r--media-video/miro/files/miro-2.5.3-remove-unittest-option.patch12
-rw-r--r--media-video/miro/metadata.xml10
-rw-r--r--media-video/miro/miro-2.5.3.ebuild118
8 files changed, 230 insertions, 0 deletions
diff --git a/media-video/miro/ChangeLog b/media-video/miro/ChangeLog
new file mode 100644
index 000000000000..fa72f62ea28f
--- /dev/null
+++ b/media-video/miro/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for media-video/miro
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/miro/ChangeLog,v 1.1 2009/10/30 08:29:50 volkmar Exp $
+
+*miro-2.5.3 (30 Oct 2009)
+
+ 30 Oct 2009; Mounir Lamouri <volkmar@gentoo.org> +miro-2.5.3.ebuild,
+ +files/miro-2.5.3-disable-xine-hack.patch,
+ +files/miro-2.5.3-dont-install-test-files.patch,
+ +files/miro-2.5.3-fix-debug.patch, +files/miro-2.5.3-fix-locale.patch,
+ +files/miro-2.5.3-remove-unittest-option.patch, +metadata.xml:
+ Initial commit. Fix bug 131527
+ Thanks to wayne work on the bug.
+
diff --git a/media-video/miro/files/miro-2.5.3-disable-xine-hack.patch b/media-video/miro/files/miro-2.5.3-disable-xine-hack.patch
new file mode 100644
index 000000000000..ab0502f325ce
--- /dev/null
+++ b/media-video/miro/files/miro-2.5.3-disable-xine-hack.patch
@@ -0,0 +1,16 @@
+# This patch comes from Debian
+# This seems to cause segfaults with newer libxine (?) releases, so disable it.
+# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512719
+# http://bugzilla.pculture.org/show_bug.cgi?id=11263
+
+--- platform/gtk-x11/plat/options.py.orig 2009-07-24 15:11:34.000000000 +0200
++++ platform/gtk-x11/plat/options.py 2009-07-24 15:11:42.000000000 +0200
+@@ -51,7 +51,7 @@
+ help="Which renderer to use. (gstreamer, xine)" )
+
+ USE_XINE_XV_HACK = GTKPref(key="UseXineXVHack",
+- default=True,
++ default=False,
+ alias="xine-xvhack",
+ help="Whether or not to use the Xine xv hack. (true, false)" )
+
diff --git a/media-video/miro/files/miro-2.5.3-dont-install-test-files.patch b/media-video/miro/files/miro-2.5.3-dont-install-test-files.patch
new file mode 100644
index 000000000000..3c7a99f345b8
--- /dev/null
+++ b/media-video/miro/files/miro-2.5.3-dont-install-test-files.patch
@@ -0,0 +1,37 @@
+--- setup.py.old 2009-10-29 12:36:58.000000000 +0100
++++ setup.py 2009-10-29 12:37:56.000000000 +0100
+@@ -175,7 +175,6 @@
+ portable_xpcom_dir = os.path.join(portable_frontend_dir, 'widgets', 'gtk',
+ 'xpcom')
+ dl_daemon_dir = os.path.join(portable_dir, 'dl_daemon')
+-test_dir = os.path.join(portable_dir, 'test')
+ resource_dir = os.path.join(root_dir, 'resources')
+ platform_dir = os.path.join(root_dir, 'platform', 'gtk-x11')
+ platform_package_dir = os.path.join(platform_dir, 'plat')
+@@ -645,9 +644,7 @@
+ if os.path.basename(f) != 'app.config.template']
+ data_files.append(('/usr/share/miro/resources/', files))
+ # handle the sub directories.
+-for dir in ('searchengines', 'images', 'testdata',
+- os.path.join('testdata', 'stripperdata'),
+- os.path.join('testdata', 'locale', 'fr', 'LC_MESSAGES')):
++for dir in ('searchengines', 'images'):
+ source_dir = os.path.join(resource_dir, dir)
+ dest_dir = os.path.join('/usr/share/miro/resources/', dir)
+ data_files.append((dest_dir, listfiles(source_dir)))
+@@ -867,7 +864,6 @@
+ packages = [
+ 'miro',
+ 'miro.dl_daemon',
+- 'miro.test',
+ 'miro.dl_daemon.private',
+ 'miro.frontends',
+ 'miro.frontends.cli',
+@@ -881,7 +877,6 @@
+ ],
+ package_dir = {
+ 'miro': portable_dir,
+- 'miro.test': test_dir,
+ 'miro.plat': platform_package_dir,
+ },
+ cmdclass = {
diff --git a/media-video/miro/files/miro-2.5.3-fix-debug.patch b/media-video/miro/files/miro-2.5.3-fix-debug.patch
new file mode 100644
index 000000000000..460471b51fb3
--- /dev/null
+++ b/media-video/miro/files/miro-2.5.3-fix-debug.patch
@@ -0,0 +1,12 @@
+This patch comes from Debian
+--- platform/gtk-x11/setup.py.orig 2009-02-28 17:29:13.000000000 +0100
++++ platform/gtk-x11/setup.py 2009-02-28 17:29:26.000000000 +0100
+@@ -330,7 +330,7 @@
+ exit;
+ fi
+
+- %(runtimelib)s$GDB -ex 'set breakpoint pending on' -ex 'run' --args $PYTHON ./miro.real --sync "$@"
++ %(runtimelib)s$GDB -ex 'set breakpoint pending on' -ex 'run' --args $PYTHON /usr/bin/miro.real --sync "$@"
+ else
+ %(runtimelib)smiro.real "$@"
+ fi
diff --git a/media-video/miro/files/miro-2.5.3-fix-locale.patch b/media-video/miro/files/miro-2.5.3-fix-locale.patch
new file mode 100644
index 000000000000..e0c69e55cf1f
--- /dev/null
+++ b/media-video/miro/files/miro-2.5.3-fix-locale.patch
@@ -0,0 +1,11 @@
+--- setup.py.old 2009-10-28 11:06:02.000000000 +0100
++++ setup.py 2009-10-29 09:15:35.000000000 +0100
+@@ -736,6 +736,8 @@
+
+ for source in glob (os.path.join (locale_dir, "*.mo")):
+ lang = os.path.basename(source)[:-3]
++ if 'LINGUAS' in os.environ and lang not in os.environ['LINGUAS']:
++ continue
+ dest = '/usr/share/locale/%s/LC_MESSAGES/miro.mo' % lang
+ if self.root:
+ dest = change_root(self.root, dest)
diff --git a/media-video/miro/files/miro-2.5.3-remove-unittest-option.patch b/media-video/miro/files/miro-2.5.3-remove-unittest-option.patch
new file mode 100644
index 000000000000..79e1e9c604a7
--- /dev/null
+++ b/media-video/miro/files/miro-2.5.3-remove-unittest-option.patch
@@ -0,0 +1,12 @@
+--- miro.real.old 2009-10-29 12:33:29.000000000 +0100
++++ miro.real 2009-10-29 12:33:43.000000000 +0100
+@@ -81,9 +81,6 @@
+ group.add_option('--debug',
+ action="store_true",
+ help='Starts Miro in a gdb session for better debugging.')
+-group.add_option('--unittest',
+- dest='unittest', action='store_true',
+- help='Run unittests instead of launching the program.')
+ parser.set_defaults(unittest=False)
+ group.add_option('--profile',
+ metavar='<FILE>',
diff --git a/media-video/miro/metadata.xml b/media-video/miro/metadata.xml
new file mode 100644
index 000000000000..d44dc8ef07cc
--- /dev/null
+++ b/media-video/miro/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>volkmar@gentoo.org</email>
+ <name>Mounir Lamouri</name>
+ </maintainer>
+</pkgmetadata>
+
diff --git a/media-video/miro/miro-2.5.3.ebuild b/media-video/miro/miro-2.5.3.ebuild
new file mode 100644
index 000000000000..f4bbdf33cfdb
--- /dev/null
+++ b/media-video/miro/miro-2.5.3.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/miro/miro-2.5.3.ebuild,v 1.1 2009/10/30 08:29:50 volkmar Exp $
+
+EAPI="2"
+
+inherit eutils fdo-mime gnome2-utils python distutils
+
+DESCRIPTION="Open source video player and podcast client"
+HOMEPAGE="http://www.getmiro.com/"
+SRC_URI="http://ftp.osuosl.org/pub/pculture.org/${PN}/src/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~ppc"
+IUSE="+gstreamer libnotify"
+
+CDEPEND="
+ dev-libs/boost[python]
+ dev-libs/glib:2
+ dev-python/pygobject:2
+ dev-python/pygtk:2
+ media-libs/xine-lib
+ >=net-libs/rb_libtorrent-0.14.1[python]
+ || ( net-libs/xulrunner:1.9 net-libs/xulrunner:1.8 )
+ x11-libs/gtk+:2
+ x11-libs/libX11"
+RDEPEND="${CDEPEND}
+ gstreamer? ( dev-python/gst-python:0.10 )
+ libnotify? ( dev-python/notify-python )
+ || ( dev-lang/python[sqlite] dev-python/pysqlite:2 )
+ dev-python/dbus-python
+ dev-python/gconf-python
+ dev-python/gtkmozembed-python
+ dev-python/pycairo"
+DEPEND="${CDEPEND}
+ >=dev-python/pyrex-0.9.6.4
+ dev-util/pkgconfig"
+
+S="${WORKDIR}/${P}/platform/gtk-x11"
+
+# NOTES:
+# it's probably not working with python-3
+# used xulrunner has to be the same as the one used for gtkmozembed-python
+# psyco can make miro speedier, add a USE flag, recommand in postinst ?
+
+# TODO:
+# create a real test suite
+# try to have a real xine/gstreamer choice
+
+# TODO:
+# category
+
+src_prepare() {
+ # install only needed locales
+ epatch "${FILESDIR}"/${P}-fix-locale.patch
+ # fix debug mode
+ epatch "${FILESDIR}"/${P}-fix-debug.patch
+ # disable xine hack which is failing
+ epatch "${FILESDIR}"/${P}-disable-xine-hack.patch
+ # prevent installing unneeded test files
+ epatch "${FILESDIR}"/${P}-dont-install-test-files.patch
+ # do not show --unittest option
+ epatch "${FILESDIR}"/${P}-remove-unittest-option.patch
+
+ # disable autoupdate
+ sed -i -e "/autoupdate/d" ../../portable/startup.py || die "sed failed"
+
+ # be sure libnotify is never used if disabled
+ if ! use libnotify; then
+ sed -i -e "s:import pynotify:import pynotifyisdisabled:" \
+ ../../portable/frontends/widgets/gtk/trayicon.py \
+ plat/frontends/widgets/application.py || die "sed failed"
+ fi
+
+ # set xine as the default renderer if gstreamer is disabled
+ if ! use gstreamer; then
+ sed -i -e "s:default=u\"gstreamer\":default=u\"xine\":" \
+ || die "sed failed"
+ fi
+}
+
+src_test() {
+ # there is a test suite but it has been designed to be used when installed
+ # should be fixed
+ :
+}
+
+src_install() {
+ # doing the mv now otherwise, distutils_src_install will install it
+ mv README README.gtk || die "mv failed"
+
+ distutils_src_install
+
+ # installing docs
+ dodoc README.gtk ../../{ADOPTERS,CREDITS,README} || die "dodoc failed"
+ newdoc ../../portable/frontends/cli/README README.cli || die "dodoc failed"
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ distutils_pkg_postinst
+ fdo-mime_desktop_database_update
+ fdo-mime_mime_database_update
+ gnome2_icon_cache_update
+
+ elog "If you can't see a video or can't heard an audio,"
+ elog "enable needed media-libs/xine-lib USE flags"
+ elog "or install required gstreamer plugins"
+}
+
+pkg_postrm() {
+ distutils_pkg_postrm
+ gnome2_icon_cache_update
+}