Gentoo Archives: gentoo-commits

From: "Mounir Lamouri (volkmar)" <volkmar@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-video/miro: miro-2.5.3.ebuild ChangeLog metadata.xml
Date: Fri, 30 Oct 2009 08:29:53
Message-Id: E1N3mrn-0005Dc-6Y@stork.gentoo.org
1 volkmar 09/10/30 08:29:51
2
3 Added: miro-2.5.3.ebuild ChangeLog metadata.xml
4 Log:
5 Initial commit.
6 Fix bug 131527.
7 Thanks to wayne work on the bug.
8 (Portage version: 14478-svn/cvs/Linux ppc)
9
10 Revision Changes Path
11 1.1 media-video/miro/miro-2.5.3.ebuild
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/miro/miro-2.5.3.ebuild?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/miro/miro-2.5.3.ebuild?rev=1.1&content-type=text/plain
15
16 Index: miro-2.5.3.ebuild
17 ===================================================================
18 # Copyright 1999-2009 Gentoo Foundation
19 # Distributed under the terms of the GNU General Public License v2
20 # $Header: /var/cvsroot/gentoo-x86/media-video/miro/miro-2.5.3.ebuild,v 1.1 2009/10/30 08:29:50 volkmar Exp $
21
22 EAPI="2"
23
24 inherit eutils fdo-mime gnome2-utils python distutils
25
26 DESCRIPTION="Open source video player and podcast client"
27 HOMEPAGE="http://www.getmiro.com/"
28 SRC_URI="http://ftp.osuosl.org/pub/pculture.org/${PN}/src/${P}.tar.gz"
29
30 LICENSE="GPL-2"
31 SLOT="0"
32 KEYWORDS="~ppc"
33 IUSE="+gstreamer libnotify"
34
35 CDEPEND="
36 dev-libs/boost[python]
37 dev-libs/glib:2
38 dev-python/pygobject:2
39 dev-python/pygtk:2
40 media-libs/xine-lib
41 >=net-libs/rb_libtorrent-0.14.1[python]
42 || ( net-libs/xulrunner:1.9 net-libs/xulrunner:1.8 )
43 x11-libs/gtk+:2
44 x11-libs/libX11"
45 RDEPEND="${CDEPEND}
46 gstreamer? ( dev-python/gst-python:0.10 )
47 libnotify? ( dev-python/notify-python )
48 || ( dev-lang/python[sqlite] dev-python/pysqlite:2 )
49 dev-python/dbus-python
50 dev-python/gconf-python
51 dev-python/gtkmozembed-python
52 dev-python/pycairo"
53 DEPEND="${CDEPEND}
54 >=dev-python/pyrex-0.9.6.4
55 dev-util/pkgconfig"
56
57 S="${WORKDIR}/${P}/platform/gtk-x11"
58
59 # NOTES:
60 # it's probably not working with python-3
61 # used xulrunner has to be the same as the one used for gtkmozembed-python
62 # psyco can make miro speedier, add a USE flag, recommand in postinst ?
63
64 # TODO:
65 # create a real test suite
66 # try to have a real xine/gstreamer choice
67
68 # TODO:
69 # category
70
71 src_prepare() {
72 # install only needed locales
73 epatch "${FILESDIR}"/${P}-fix-locale.patch
74 # fix debug mode
75 epatch "${FILESDIR}"/${P}-fix-debug.patch
76 # disable xine hack which is failing
77 epatch "${FILESDIR}"/${P}-disable-xine-hack.patch
78 # prevent installing unneeded test files
79 epatch "${FILESDIR}"/${P}-dont-install-test-files.patch
80 # do not show --unittest option
81 epatch "${FILESDIR}"/${P}-remove-unittest-option.patch
82
83 # disable autoupdate
84 sed -i -e "/autoupdate/d" ../../portable/startup.py || die "sed failed"
85
86 # be sure libnotify is never used if disabled
87 if ! use libnotify; then
88 sed -i -e "s:import pynotify:import pynotifyisdisabled:" \
89 ../../portable/frontends/widgets/gtk/trayicon.py \
90 plat/frontends/widgets/application.py || die "sed failed"
91 fi
92
93 # set xine as the default renderer if gstreamer is disabled
94 if ! use gstreamer; then
95 sed -i -e "s:default=u\"gstreamer\":default=u\"xine\":" \
96 || die "sed failed"
97 fi
98 }
99
100 src_test() {
101 # there is a test suite but it has been designed to be used when installed
102 # should be fixed
103 :
104 }
105
106 src_install() {
107 # doing the mv now otherwise, distutils_src_install will install it
108 mv README README.gtk || die "mv failed"
109
110 distutils_src_install
111
112 # installing docs
113 dodoc README.gtk ../../{ADOPTERS,CREDITS,README} || die "dodoc failed"
114 newdoc ../../portable/frontends/cli/README README.cli || die "dodoc failed"
115 }
116
117 pkg_preinst() {
118 gnome2_icon_savelist
119 }
120
121 pkg_postinst() {
122 distutils_pkg_postinst
123 fdo-mime_desktop_database_update
124 fdo-mime_mime_database_update
125 gnome2_icon_cache_update
126
127 elog "If you can't see a video or can't heard an audio,"
128 elog "enable needed media-libs/xine-lib USE flags"
129 elog "or install required gstreamer plugins"
130 }
131
132 pkg_postrm() {
133 distutils_pkg_postrm
134 gnome2_icon_cache_update
135 }
136
137
138
139 1.1 media-video/miro/ChangeLog
140
141 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/miro/ChangeLog?rev=1.1&view=markup
142 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/miro/ChangeLog?rev=1.1&content-type=text/plain
143
144 Index: ChangeLog
145 ===================================================================
146 # ChangeLog for media-video/miro
147 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
148 # $Header: /var/cvsroot/gentoo-x86/media-video/miro/ChangeLog,v 1.1 2009/10/30 08:29:50 volkmar Exp $
149
150 *miro-2.5.3 (30 Oct 2009)
151
152 30 Oct 2009; Mounir Lamouri <volkmar@g.o> +miro-2.5.3.ebuild,
153 +files/miro-2.5.3-disable-xine-hack.patch,
154 +files/miro-2.5.3-dont-install-test-files.patch,
155 +files/miro-2.5.3-fix-debug.patch, +files/miro-2.5.3-fix-locale.patch,
156 +files/miro-2.5.3-remove-unittest-option.patch, +metadata.xml:
157 Initial commit. Fix bug 131527
158 Thanks to wayne work on the bug.
159
160
161
162
163 1.1 media-video/miro/metadata.xml
164
165 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/miro/metadata.xml?rev=1.1&view=markup
166 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/miro/metadata.xml?rev=1.1&content-type=text/plain
167
168 Index: metadata.xml
169 ===================================================================
170 <?xml version="1.0" encoding="UTF-8"?>
171 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
172 <pkgmetadata>
173 <herd>no-herd</herd>
174 <maintainer>
175 <email>volkmar@g.o</email>
176 <name>Mounir Lamouri</name>
177 </maintainer>
178 </pkgmetadata>