Gentoo Archives: gentoo-commits

From: "Joerg Bornkessel (hd_brummy)" <hd_brummy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-plugins/vdr-xineliboutput: vdr-xineliboutput-9999.ebuild ChangeLog
Date: Wed, 02 Dec 2009 21:29:06
Message-Id: E1NFwkx-0002dA-Pv@stork.gentoo.org
1 hd_brummy 09/12/02 21:29:03
2
3 Modified: ChangeLog
4 Added: vdr-xineliboutput-9999.ebuild
5 Log:
6 cvs ebuild, hardmasked, thanks to mueli@g.o
7 (Portage version: 2.1.6.13/cvs/Linux i686)
8
9 Revision Changes Path
10 1.51 media-plugins/vdr-xineliboutput/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?rev=1.51&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?rev=1.51&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?r1=1.50&r2=1.51
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v
19 retrieving revision 1.50
20 retrieving revision 1.51
21 diff -u -r1.50 -r1.51
22 --- ChangeLog 20 Nov 2009 09:58:26 -0000 1.50
23 +++ ChangeLog 2 Dec 2009 21:29:03 -0000 1.51
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-plugins/vdr-xineliboutput
26 # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v 1.50 2009/11/20 09:58:26 zzam Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v 1.51 2009/12/02 21:29:03 hd_brummy Exp $
29 +
30 +*vdr-xineliboutput-9999 (02 Dec 2009)
31 +
32 + 02 Dec 2009; Joerg Bornkessel <hd_brummy@g.o>
33 + +vdr-xineliboutput-9999.ebuild:
34 + cvs ebuild, hardmasked, thanks to mueli@g.o
35
36 20 Nov 2009; Matthias Schwarzott <zzam@g.o>
37 vdr-xineliboutput-1.0.4_p20090820.ebuild,
38
39
40
41 1.1 media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild?rev=1.1&content-type=text/plain
45
46 Index: vdr-xineliboutput-9999.ebuild
47 ===================================================================
48 # Copyright 1999-2009 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild,v 1.1 2009/12/02 21:29:03 hd_brummy Exp $
51
52 GENTOO_VDR_CONDITIONAL=yes
53
54 EAPI="2"
55
56 inherit vdr-plugin eutils multilib versionator cvs
57
58 MY_PV=${PV#*_p}
59 MY_P=${PN}
60
61 DESCRIPTION="Video Disk Recorder Xinelib PlugIn"
62 HOMEPAGE="http://sourceforge.net/projects/xineliboutput/"
63
64 ECVS_SERVER="xineliboutput.cvs.sourceforge.net:/cvsroot/xineliboutput"
65 ECVS_MODULE="vdr-xineliboutput"
66
67 SLOT="0"
68 LICENSE="GPL-2"
69 KEYWORDS="~amd64 ~x86"
70 IUSE="+vdr +xine fbcon X libextractor xinerama"
71
72 # both vdr plugin or vdr-sxfe can use X11
73 # still depends need some cleanup
74 COMMON_DEPEND="
75 vdr? ( >=media-video/vdr-1.4.0 )
76
77 xine? ( >=media-libs/xine-lib-1.1.1 )
78
79 media-libs/jpeg
80 libextractor? ( >=media-libs/libextractor-0.5.20 )
81
82 X? (
83 x11-libs/libX11
84 x11-libs/libXv
85 x11-libs/libXext
86 x11-libs/libXrender
87 xinerama? ( x11-libs/libXinerama )
88 )"
89
90 DEPEND="${COMMON_DEPEND}
91 sys-kernel/linux-headers
92 X? (
93 x11-proto/xextproto
94 x11-proto/xf86vidmodeproto
95 x11-proto/xproto
96 x11-proto/renderproto
97 xinerama? ( x11-proto/xineramaproto )
98 )"
99
100 RDEPEND="${COMMON_DEPEND}"
101
102 S=${WORKDIR}/${MY_P}
103
104 pkg_setup() {
105 vdr-plugin_pkg_setup
106
107 if ! use vdr && ! use xine; then
108 eerror "Compiling ${PN} with USE='-vdr -xine' is not possible."
109 eerror "You either need at least one of these flags."
110 #die "${PN} cannot be used with vdr support and xine support disabled!"
111 fi
112 }
113
114 use_onoff() {
115 if use "$1"; then
116 echo 1
117 else
118 echo 0
119 fi
120 }
121
122 use_onoff_xine() {
123 if use xine && use "$1"; then
124 echo 1
125 else
126 echo 0
127 fi
128 }
129
130 src_prepare() {
131 cvs_src_unpack
132 vdr-plugin_src_prepare
133
134 if use xine; then
135 XINE_PLUGIN_DIR=$(xine-config --plugindir)
136 if [[ ${XINE_PLUGIN_DIR} = "" ]]; then
137 eerror "Could not find xine plugin dir"
138 die "Could not find xine plugin dir"
139 fi
140 fi
141
142 # stop some automagic overwriting of the stuff we set
143 sed -e '/XINELIBOUTPUT_VDRPLUGIN = 1/s/^/#/' \
144 -e '/HAVE_EXTRACTOR_H = 1/s/^/#/' \
145 -i Makefile
146
147 cat >>Make.config <<-EOF
148 XINELIBOUTPUT_XINEPLUGIN = $(use_onoff xine)
149 XINELIBOUTPUT_VDRPLUGIN = $(use_onoff vdr)
150
151 XINELIBOUTPUT_FB = $(use_onoff_xine fbcon)
152 XINELIBOUTPUT_X11 = $(use_onoff_xine X)
153
154 HAVE_XRENDER = 1
155 HAVE_XDPMS = 1
156 HAVE_EXTRACTOR_H = $(use_onoff libextractor)
157 HAVE_XINERAMA = $(use_onoff xinerama)
158 EOF
159
160 # patching makefile to work with this
161 # $ rm ${outdir}/file; cp file ${outdir}/file
162 # work in the sandbox
163 sed -i Makefile \
164 -e 's:XINEPLUGINDIR.*=.*:XINEPLUGINDIR = '"${WORKDIR}/lib:" \
165 -e 's:VDRINCDIR.*=.*:VDRINCDIR ?= /usr/include:'
166 mkdir -p "${WORKDIR}/lib"
167 }
168
169 src_configure() { :; }
170
171 src_install() {
172 if use vdr; then
173 # install vdr plugin
174 vdr-plugin_src_install
175
176 # version number that the sources contain
177 local SO_VERSION="$(grep 'static const char \*VERSION *=' xineliboutput.c |\
178 cut -d'"' -f2)"
179 echo SO_VERSION=$SO_VERSION
180 insinto ${VDR_PLUGIN_DIR}
181 if use fbcon; then
182 doins libxineliboutput-fbfe.so.${SO_VERSION} || die "doins failed"
183 fi
184 if use X; then
185 doins libxineliboutput-sxfe.so.${SO_VERSION} || die "doins failed"
186 fi
187 fi
188
189 if use xine; then
190 # install xine-plugins
191 insinto "${XINE_PLUGIN_DIR}"
192 doins xineplug_inp_*.so
193
194 insinto "${XINE_PLUGIN_DIR}"/post
195 doins xineplug_post_*.so
196
197 # install xine-based frontends
198 use fbcon && dobin vdr-fbfe
199 use X && dobin vdr-sxfe
200
201 fi
202 }
203
204 pkg_config() {
205 einfo "emerge --config is not supported"
206 }
207 # Copyright 1999-2009 Gentoo Foundation
208 # Distributed under the terms of the GNU General Public License v2
209 # $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-9999.ebuild,v 1.1 2009/12/02 21:29:03 hd_brummy Exp $
210
211 GENTOO_VDR_CONDITIONAL=yes
212
213 EAPI="2"
214
215 inherit vdr-plugin eutils multilib versionator cvs
216
217 MY_PV=${PV#*_p}
218 MY_P=${PN}
219
220 DESCRIPTION="Video Disk Recorder Xinelib PlugIn"
221 HOMEPAGE="http://sourceforge.net/projects/xineliboutput/"
222
223 ECVS_SERVER="xineliboutput.cvs.sourceforge.net:/cvsroot/xineliboutput"
224 ECVS_MODULE="vdr-xineliboutput"
225
226 SLOT="0"
227 LICENSE="GPL-2"
228 KEYWORDS="~amd64 ~x86"
229 IUSE="+vdr +xine fbcon X libextractor xinerama"
230
231 # both vdr plugin or vdr-sxfe can use X11
232 # still depends need some cleanup
233 COMMON_DEPEND="
234 vdr? ( >=media-video/vdr-1.4.0 )
235
236 xine? ( >=media-libs/xine-lib-1.1.1 )
237
238 media-libs/jpeg
239 libextractor? ( >=media-libs/libextractor-0.5.20 )
240
241 X? (
242 x11-libs/libX11
243 x11-libs/libXv
244 x11-libs/libXext
245 x11-libs/libXrender
246 xinerama? ( x11-libs/libXinerama )
247 )"
248
249 DEPEND="${COMMON_DEPEND}
250 sys-kernel/linux-headers
251 X? (
252 x11-proto/xextproto
253 x11-proto/xf86vidmodeproto
254 x11-proto/xproto
255 x11-proto/renderproto
256 xinerama? ( x11-proto/xineramaproto )
257 )"
258
259 RDEPEND="${COMMON_DEPEND}"
260
261 S=${WORKDIR}/${MY_P}
262
263 pkg_setup() {
264 vdr-plugin_pkg_setup
265
266 if ! use vdr && ! use xine; then
267 eerror "Compiling ${PN} with USE='-vdr -xine' is not possible."
268 eerror "You either need at least one of these flags."
269 #die "${PN} cannot be used with vdr support and xine support disabled!"
270 fi
271 }
272
273 use_onoff() {
274 if use "$1"; then
275 echo 1
276 else
277 echo 0
278 fi
279 }
280
281 use_onoff_xine() {
282 if use xine && use "$1"; then
283 echo 1
284 else
285 echo 0
286 fi
287 }
288
289 src_prepare() {
290 cvs_src_unpack
291 vdr-plugin_src_prepare
292
293 if use xine; then
294 XINE_PLUGIN_DIR=$(xine-config --plugindir)
295 if [[ ${XINE_PLUGIN_DIR} = "" ]]; then
296 eerror "Could not find xine plugin dir"
297 die "Could not find xine plugin dir"
298 fi
299 fi
300
301 # stop some automagic overwriting of the stuff we set
302 sed -e '/XINELIBOUTPUT_VDRPLUGIN = 1/s/^/#/' \
303 -e '/HAVE_EXTRACTOR_H = 1/s/^/#/' \
304 -i Makefile
305
306 cat >>Make.config <<-EOF
307 XINELIBOUTPUT_XINEPLUGIN = $(use_onoff xine)
308 XINELIBOUTPUT_VDRPLUGIN = $(use_onoff vdr)
309
310 XINELIBOUTPUT_FB = $(use_onoff_xine fbcon)
311 XINELIBOUTPUT_X11 = $(use_onoff_xine X)
312
313 HAVE_XRENDER = 1
314 HAVE_XDPMS = 1
315 HAVE_EXTRACTOR_H = $(use_onoff libextractor)
316 HAVE_XINERAMA = $(use_onoff xinerama)
317 EOF
318
319 # patching makefile to work with this
320 # $ rm ${outdir}/file; cp file ${outdir}/file
321 # work in the sandbox
322 sed -i Makefile \
323 -e 's:XINEPLUGINDIR.*=.*:XINEPLUGINDIR = '"${WORKDIR}/lib:" \
324 -e 's:VDRINCDIR.*=.*:VDRINCDIR ?= /usr/include:'
325 mkdir -p "${WORKDIR}/lib"
326 }
327
328 src_configure() { :; }
329
330 src_install() {
331 if use vdr; then
332 # install vdr plugin
333 vdr-plugin_src_install
334
335 # version number that the sources contain
336 local SO_VERSION="$(grep 'static const char \*VERSION *=' xineliboutput.c |\
337 cut -d'"' -f2)"
338 echo SO_VERSION=$SO_VERSION
339 insinto ${VDR_PLUGIN_DIR}
340 if use fbcon; then
341 doins libxineliboutput-fbfe.so.${SO_VERSION} || die "doins failed"
342 fi
343 if use X; then
344 doins libxineliboutput-sxfe.so.${SO_VERSION} || die "doins failed"
345 fi
346 fi
347
348 if use xine; then
349 # install xine-plugins
350 insinto "${XINE_PLUGIN_DIR}"
351 doins xineplug_inp_*.so
352
353 insinto "${XINE_PLUGIN_DIR}"/post
354 doins xineplug_post_*.so
355
356 # install xine-based frontends
357 use fbcon && dobin vdr-fbfe
358 use X && dobin vdr-sxfe
359
360 fi
361 }
362
363 pkg_config() {
364 einfo "emerge --config is not supported"
365 }