diff options
author | Mounir Lamouri <volkmar@gentoo.org> | 2009-10-30 08:29:51 +0000 |
---|---|---|
committer | Mounir Lamouri <volkmar@gentoo.org> | 2009-10-30 08:29:51 +0000 |
commit | a7264eef4b111e1797c6520fc1746f42600c7d15 (patch) | |
tree | 5838860d2b60c6fed9101a1146d0bc9e62c396b4 /media-video/miro | |
parent | Version bump, fix compilation with gdl-2.28, bug #290522. Remove built_with_u... (diff) | |
download | historical-a7264eef4b111e1797c6520fc1746f42600c7d15.tar.gz historical-a7264eef4b111e1797c6520fc1746f42600c7d15.tar.bz2 historical-a7264eef4b111e1797c6520fc1746f42600c7d15.zip |
Initial commit.
Fix bug 131527.
Thanks to wayne work on the bug.
Package-Manager: portage-14478-svn/cvs/Linux ppc
Diffstat (limited to 'media-video/miro')
-rw-r--r-- | media-video/miro/ChangeLog | 14 | ||||
-rw-r--r-- | media-video/miro/Manifest | 9 | ||||
-rw-r--r-- | media-video/miro/files/miro-2.5.3-disable-xine-hack.patch | 16 | ||||
-rw-r--r-- | media-video/miro/files/miro-2.5.3-dont-install-test-files.patch | 37 | ||||
-rw-r--r-- | media-video/miro/files/miro-2.5.3-fix-debug.patch | 12 | ||||
-rw-r--r-- | media-video/miro/files/miro-2.5.3-fix-locale.patch | 11 | ||||
-rw-r--r-- | media-video/miro/files/miro-2.5.3-remove-unittest-option.patch | 12 | ||||
-rw-r--r-- | media-video/miro/metadata.xml | 10 | ||||
-rw-r--r-- | media-video/miro/miro-2.5.3.ebuild | 118 |
9 files changed, 239 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/Manifest b/media-video/miro/Manifest new file mode 100644 index 000000000000..cc3b64491cd5 --- /dev/null +++ b/media-video/miro/Manifest @@ -0,0 +1,9 @@ +AUX miro-2.5.3-disable-xine-hack.patch 746 RMD160 cfb7f550eb9b8b1c18f3ed412737d441bbc7714c SHA1 b9ae72c6bf8bce862c23f00049b33fbf9d29f06c SHA256 2910e23cdf024d4d3dd20b0e93300162d468f6a36062c8e1412ede14d0520c7f +AUX miro-2.5.3-dont-install-test-files.patch 1422 RMD160 6686dae4476951fa3b48a7891577298a629e86a1 SHA1 f1b816ac394542671f782fa4e6caaa2588151e86 SHA256 ad42ba3024da26c0e16ee8e8747b0eb0fbda604e6eeb3be7274c2ac7ac9aee3b +AUX miro-2.5.3-fix-debug.patch 472 RMD160 0cee057c074004a4c8662f19fba0d49247a5ba3c SHA1 f0587a930705a2edce7142d2c681c5beaaa5deec SHA256 27bafa26876df1aaef10688757c2eb4a2a3c8fff06665d376c026a316c68c103 +AUX miro-2.5.3-fix-locale.patch 494 RMD160 7ba690456c2ffeeb771288729b023e15af3e295e SHA1 22e48a40df75dbdd8e541704acb6404f217d56bb SHA256 ed3ea7a22cffb9fd1dc8ccc1003648e67b603360aaafb48531c9a58b3f5df8d3 +AUX miro-2.5.3-remove-unittest-option.patch 538 RMD160 f29c534b28ac453cb72d18cb3e0810f6744c38b6 SHA1 4f86a65c368ced0b7a37d091a3705cd2f80d2628 SHA256 889e8480faee3af86d9c2dbfa9375eeb102ca01df6c71b07fcb4b62b326cbe6a +DIST miro-2.5.3.tar.gz 9943113 RMD160 d70c179d38bb6806962944187e53b5ebf50d03ea SHA1 553d4e173d978bede9dd570f337a264af8f0e28d SHA256 10bd1070b03e97a4c5f14e6a3da079cad7b05be955304d21d583e531673b3a34 +EBUILD miro-2.5.3.ebuild 3219 RMD160 b6336f07f1125ea98953eb038e231ab136aca8af SHA1 748a8b33baf69df680a9ec3df24b9b19225ce9b7 SHA256 d4862899ca5d12520de534ebbb161b64215d7c8e194ccc7b1a2119b3a1709978 +MISC ChangeLog 607 RMD160 40ab81d07be0b56dfd2c39bbc3af5333e701e029 SHA1 64fb04fad4c150497b4d9c256503a04c9232bd3b SHA256 bde871185bee8591c2f4e14c63fda66525370ea5c3eb36000e1423417e090460 +MISC metadata.xml 257 RMD160 224ee82bfe66c5da4a2dc1dd697b1782e7f03cb9 SHA1 6b583c76750b206bd133403d1a4685a14f8e6b95 SHA256 45f231de4d8bc5ed6309ba83d2eb9a06b8e13f828d7b74e909a144439356cd62 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 +} |