1 |
commit: 91372e2c2b41138222b0c32f9c381a58bdf7b41e |
2 |
Author: Roman v. Gemmeren <strowi <AT> hasnoname <DOT> de> |
3 |
AuthorDate: Mon Feb 27 15:31:52 2012 +0000 |
4 |
Commit: Roman v. Gemmeren <strowi <AT> hasnoname <DOT> de> |
5 |
CommitDate: Mon Feb 27 15:31:52 2012 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/kde-sunset.git;a=commit;h=91372e2c |
7 |
|
8 |
make kaffeine compile with >=xine-lib-1.2 |
9 |
modified: Manifest |
10 |
new file: files/kaffeine-0.8.8-kxinewidget.patch |
11 |
new file: kaffeine-0.8.8-r1.ebuild |
12 |
|
13 |
--- |
14 |
.../files/kaffeine-0.8.8-kxinewidget.patch | 11 +++ |
15 |
media-video/kaffeine/kaffeine-0.8.8-r1.ebuild | 81 ++++++++++++++++++++ |
16 |
2 files changed, 92 insertions(+), 0 deletions(-) |
17 |
|
18 |
diff --git a/media-video/kaffeine/files/kaffeine-0.8.8-kxinewidget.patch b/media-video/kaffeine/files/kaffeine-0.8.8-kxinewidget.patch |
19 |
new file mode 100644 |
20 |
index 0000000..c160bb9 |
21 |
--- /dev/null |
22 |
+++ b/media-video/kaffeine/files/kaffeine-0.8.8-kxinewidget.patch |
23 |
@@ -0,0 +1,11 @@ |
24 |
+--- kaffeine/src/player-parts/xine-part/kxinewidget.cpp~ 2009-05-15 16:16:26.000000000 +0100 |
25 |
++++ kaffeine/src/player-parts/xine-part/kxinewidget.cpp 2012-02-25 23:45:45.000000000 +0000 |
26 |
+@@ -2638,7 +2638,7 @@ |
27 |
+ int num; |
28 |
+ int i = 0; |
29 |
+ |
30 |
+- urls = xine_get_autoplay_mrls(m_xineEngine, plugin.ascii(), &num); |
31 |
++ urls = (char**)xine_get_autoplay_mrls(m_xineEngine, plugin.ascii(), &num); |
32 |
+ |
33 |
+ if (urls) |
34 |
+ { |
35 |
|
36 |
diff --git a/media-video/kaffeine/kaffeine-0.8.8-r1.ebuild b/media-video/kaffeine/kaffeine-0.8.8-r1.ebuild |
37 |
new file mode 100644 |
38 |
index 0000000..80358de |
39 |
--- /dev/null |
40 |
+++ b/media-video/kaffeine/kaffeine-0.8.8-r1.ebuild |
41 |
@@ -0,0 +1,81 @@ |
42 |
+# Copyright 1999-2009 Gentoo Foundation |
43 |
+# Distributed under the terms of the GNU General Public License v2 |
44 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/kaffeine/kaffeine-0.8.8.ebuild,v 1.4 2009/06/09 14:16:40 tampakrap Exp $ |
45 |
+ |
46 |
+EAPI="2" |
47 |
+ |
48 |
+ARTS_REQUIRED="never" |
49 |
+ |
50 |
+USE_KEG_PACKAGING="1" |
51 |
+ |
52 |
+LANGS="ar bg bn br ca cs da de el es et fi fr ga gl he hu it ja ka \ |
53 |
+ km lt mk nb nl nn pa pl pt_BR pt ru se sk sr@Latn sr sv tg tr \ |
54 |
+ uk uz zh_CN zh_TW" |
55 |
+ |
56 |
+LANGS_DOC="" |
57 |
+ |
58 |
+inherit eutils kde flag-o-matic |
59 |
+ |
60 |
+DESCRIPTION="Media player for KDE using xine and gstreamer backends." |
61 |
+HOMEPAGE="http://kaffeine.sourceforge.net/" |
62 |
+SRC_URI="http://hftom.free.fr/${P}.tar.bz2" |
63 |
+LICENSE="GPL-2" |
64 |
+ |
65 |
+SLOT="3.5" |
66 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
67 |
+IUSE="dvb gstreamer xinerama vorbis encode xcb" |
68 |
+# kdehiddenvisibility removed due to bug 207002. |
69 |
+ |
70 |
+RDEPEND=">=media-libs/xine-lib-1.1.9[xcb?] |
71 |
+ xcb? ( >=x11-libs/libxcb-1.0 ) |
72 |
+ gstreamer? ( =media-libs/gstreamer-0.10* |
73 |
+ =media-plugins/gst-plugins-xvideo-0.10* ) |
74 |
+ dev-libs/libcdio |
75 |
+ encode? ( media-sound/lame ) |
76 |
+ vorbis? ( media-libs/libvorbis ) |
77 |
+ x11-libs/libXtst" |
78 |
+ |
79 |
+DEPEND="${RDEPEND} |
80 |
+ dvb? ( media-tv/linuxtv-dvb-headers |
81 |
+ >=sys-kernel/linux-headers-2.6.28 ) |
82 |
+ x11-proto/inputproto" |
83 |
+ |
84 |
+need-kde 3.5.4 |
85 |
+ |
86 |
+PATCHES=( |
87 |
+ "${FILESDIR}/kaffeine-0.8.7-respectcflags.patch" |
88 |
+ "${FILESDIR}/kaffeine-0.8.8-kxinewidget.patch" |
89 |
+ ) |
90 |
+ |
91 |
+src_configure() { |
92 |
+ # see bug #143168 |
93 |
+ replace-flags -O3 -O2 |
94 |
+ |
95 |
+ # workaround bug #198973 |
96 |
+ local save_CXXFLAGS="${CXXFLAGS}" |
97 |
+ append-flags -std=gnu89 |
98 |
+ export CXXFLAGS="${save_CXXFLAGS}" |
99 |
+ |
100 |
+ local myconf="${myconf} |
101 |
+ $(use_with xinerama) |
102 |
+ $(use_with dvb) |
103 |
+ $(use_with gstreamer) |
104 |
+ $(use_with vorbis oggvorbis) |
105 |
+ $(use_with xcb) |
106 |
+ $(use_with encode lame)" |
107 |
+ |
108 |
+ kde_src_configure |
109 |
+} |
110 |
+ |
111 |
+src_install() { |
112 |
+ kde_src_install |
113 |
+ |
114 |
+ # fix localization, bug #199909 |
115 |
+ for mofile in "${D}/${KDEDIR}"/share/locale/*/LC_MESSAGES/${P}.mo ; do |
116 |
+ mv -f ${mofile} ${mofile/${P}.mo/${PN}.mo} \ |
117 |
+ || die "fixing mo files failed" |
118 |
+ done |
119 |
+ |
120 |
+ # remove this, as kdelibs 3.5.4 provides it |
121 |
+ rm -f "${D}/${KDEDIR}"/share/mimelnk/application/x-mplayer2.desktop |
122 |
+} |