Gentoo Archives: gentoo-commits

From: "Matthias Schwarzott (zzam)" <zzam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-plugins/vdr-xineliboutput: ChangeLog vdr-xineliboutput-1.0.3.ebuild
Date: Mon, 03 Nov 2008 08:17:48
Message-Id: E1Kwud7-00055R-Cy@stork.gentoo.org
1 zzam 08/11/03 08:17:45
2
3 Modified: ChangeLog
4 Added: vdr-xineliboutput-1.0.3.ebuild
5 Log:
6 Version bumped.
7 (Portage version: 2.2_rc13/cvs/Linux 2.6.27-gentoo-r1 i686)
8
9 Revision Changes Path
10 1.42 media-plugins/vdr-xineliboutput/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?rev=1.42&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?rev=1.42&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?r1=1.41&r2=1.42
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v
19 retrieving revision 1.41
20 retrieving revision 1.42
21 diff -u -r1.41 -r1.42
22 --- ChangeLog 6 Oct 2008 13:32:40 -0000 1.41
23 +++ ChangeLog 3 Nov 2008 08:17:45 -0000 1.42
24 @@ -1,6 +1,12 @@
25 # ChangeLog for media-plugins/vdr-xineliboutput
26 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v 1.41 2008/10/06 13:32:40 zzam Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v 1.42 2008/11/03 08:17:45 zzam Exp $
29 +
30 +*vdr-xineliboutput-1.0.3 (03 Nov 2008)
31 +
32 + 03 Nov 2008; Matthias Schwarzott <zzam@g.o>
33 + +vdr-xineliboutput-1.0.3.ebuild:
34 + Version bumped.
35
36 *vdr-xineliboutput-1.0.2 (06 Oct 2008)
37
38
39
40
41 1.1 media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.3.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.3.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.3.ebuild?rev=1.1&content-type=text/plain
45
46 Index: vdr-xineliboutput-1.0.3.ebuild
47 ===================================================================
48 # Copyright 1999-2008 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-1.0.3.ebuild,v 1.1 2008/11/03 08:17:45 zzam Exp $
51
52 inherit vdr-plugin eutils multilib versionator
53
54 MY_PV=${PV/_/}
55 MY_P=${PN}-${MY_PV}
56
57 SO_VERSION="${PV%_p*}"
58 SO_VERSION="${SO_VERSION/_/}"
59
60 DESCRIPTION="Video Disk Recorder Xinelib PlugIn"
61 HOMEPAGE="http://sourceforge.net/projects/xineliboutput/"
62 SRC_URI="mirror://sourceforge/${PN#vdr-}/${MY_P}.tgz"
63
64 SLOT="0"
65 LICENSE="GPL-2"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="fbcon X libextractor"
68
69 RDEPEND=">=media-video/vdr-1.4.0
70 >=media-libs/xine-lib-1.1.1
71 media-libs/jpeg
72 libextractor? ( >=media-libs/libextractor-0.5.20 )
73 X? (
74 x11-proto/xextproto
75 x11-proto/xf86vidmodeproto
76 x11-proto/xproto
77 x11-proto/renderproto
78 )"
79
80 DEPEND="${RDEPEND}
81 sys-kernel/linux-headers
82 X? (
83 x11-libs/libX11
84 x11-libs/libXv
85 x11-libs/libXext
86 x11-libs/libXrender
87 )"
88
89 S=${WORKDIR}/${MY_P#vdr-}
90
91 VDR_CONFD_FILE=${FILESDIR}/confd-1.0.0_pre6
92
93 use_onoff() {
94 if use "$1"; then
95 echo 1
96 else
97 echo 0
98 fi
99 }
100
101 src_unpack() {
102 vdr-plugin_src_unpack
103
104 cd "${S}"
105
106 XINE_PLUGIN_DIR=$(xine-config --plugindir)
107 if [[ ${XINE_PLUGIN_DIR} = "" ]]; then
108 eerror "Could not find xine plugin dir"
109 die "Could not find xine plugin dir"
110 fi
111 # stop some automagic overwriting the stuff we set
112 sed -e '/XINELIBOUTPUT_VDRPLUGIN = 1/s/^/#/' \
113 -e '/HAVE_EXTRACTOR_H = 1/s/^/#/' \
114 -i Makefile
115
116 cat >>Make.config <<-EOF
117 XINELIBOUTPUT_XINEPLUGIN = 1
118 XINELIBOUTPUT_VDRPLUGIN = 1
119
120 XINELIBOUTPUT_FB = $(use_onoff fbcon)
121 XINELIBOUTPUT_X11 = $(use_onoff X)
122
123 HAVE_XRENDER = 1
124 HAVE_XDPMS = 1
125 HAVE_EXTRACTOR_H = $(use_onoff libextractor)
126 EOF
127
128 # patching makefile to work with this
129 # $ rm ${outdir}/file; cp file ${outdir}/file
130 # work in the sandbox
131 sed -i Makefile \
132 -e 's:XINEPLUGINDIR.*=.*:XINEPLUGINDIR = '"${WORKDIR}/lib:" \
133 -e 's:VDRINCDIR.*=.*:VDRINCDIR ?= /usr/include:'
134 mkdir -p "${WORKDIR}/lib"
135 }
136
137 src_install() {
138 vdr-plugin_src_install
139
140 use fbcon && dobin vdr-fbfe
141 use X && dobin vdr-sxfe
142
143 # There may be no sub-plugin, depending on use-flags
144 insinto ${VDR_PLUGIN_DIR}
145 local f
146 for f in libxineliboutput*.so.${SO_VERSION}; do
147 [[ -f "$f" ]] || continue
148 doins "${f}" || die "could not install sub-plugin ${f}"
149 done
150
151 insinto "${XINE_PLUGIN_DIR}"
152 doins xineplug_inp_*.so
153
154 insinto "${XINE_PLUGIN_DIR}"/post
155 doins xineplug_post_*.so
156 }