From: | "Matthias Schwarzott (zzam)" <zzam@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in media-plugins/vdr-xineliboutput: vdr-xineliboutput-1.0.4_p20091118.ebuild ChangeLog |
Date: | Wed, 18 Nov 2009 20:59:42 |
Message-Id: | E1NArcm-0007H5-Sd@stork.gentoo.org |
1 | zzam 09/11/18 20:59:36 |
2 | |
3 | Modified: ChangeLog |
4 | Added: vdr-xineliboutput-1.0.4_p20091118.ebuild |
5 | Log: |
6 | Added new snapshot. |
7 | (Portage version: 2.2_rc50/cvs/Linux i686) |
8 | |
9 | Revision Changes Path |
10 | 1.48 media-plugins/vdr-xineliboutput/ChangeLog |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?rev=1.48&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?rev=1.48&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?r1=1.47&r2=1.48 |
15 | |
16 | Index: ChangeLog |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v |
19 | retrieving revision 1.47 |
20 | retrieving revision 1.48 |
21 | diff -u -r1.47 -r1.48 |
22 | --- ChangeLog 26 Aug 2009 08:20:13 -0000 1.47 |
23 | +++ ChangeLog 18 Nov 2009 20:59:36 -0000 1.48 |
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.47 2009/08/26 08:20:13 zzam Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v 1.48 2009/11/18 20:59:36 zzam Exp $ |
29 | + |
30 | +*vdr-xineliboutput-1.0.4_p20091118 (18 Nov 2009) |
31 | + |
32 | + 18 Nov 2009; Matthias Schwarzott <zzam@g.o> |
33 | + +vdr-xineliboutput-1.0.4_p20091118.ebuild: |
34 | + Added new snapshot. |
35 | |
36 | *vdr-xineliboutput-1.0.4_p20090820 (26 Aug 2009) |
37 | |
38 | |
39 | |
40 | |
41 | 1.1 media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.4_p20091118.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.4_p20091118.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.4_p20091118.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: vdr-xineliboutput-1.0.4_p20091118.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-1.0.4_p20091118.ebuild,v 1.1 2009/11/18 20:59:36 zzam Exp $ |
51 | |
52 | GENTOO_VDR_CONDITIONAL=yes |
53 | |
54 | EAPI="2" |
55 | |
56 | inherit vdr-plugin eutils multilib versionator |
57 | |
58 | MY_PV=${PV#*_p} |
59 | MY_P=${PN}-cvs-${MY_PV} |
60 | |
61 | SO_VERSION="${PV%_p*}" |
62 | SO_VERSION="${SO_VERSION/_/}" |
63 | |
64 | DESCRIPTION="Video Disk Recorder Xinelib PlugIn" |
65 | HOMEPAGE="http://sourceforge.net/projects/xineliboutput/" |
66 | SRC_URI="http://dev.gentoo.org/~ssuominen/${MY_P}.tar.bz2" |
67 | |
68 | SLOT="0" |
69 | LICENSE="GPL-2" |
70 | KEYWORDS="~amd64 ~x86" |
71 | IUSE="+vdr +xine fbcon X libextractor xinerama" |
72 | |
73 | # both vdr plugin or vdr-sxfe can use X11 |
74 | # still depends need some cleanup |
75 | COMMON_DEPEND=" |
76 | vdr? ( >=media-video/vdr-1.4.0 ) |
77 | |
78 | xine? ( >=media-libs/xine-lib-1.1.1 ) |
79 | |
80 | media-libs/jpeg |
81 | libextractor? ( >=media-libs/libextractor-0.5.20 ) |
82 | |
83 | X? ( |
84 | x11-libs/libX11 |
85 | x11-libs/libXv |
86 | x11-libs/libXext |
87 | x11-libs/libXrender |
88 | xinerama? ( x11-libs/libXinerama ) |
89 | )" |
90 | |
91 | DEPEND="${COMMON_DEPEND} |
92 | sys-kernel/linux-headers |
93 | X? ( |
94 | x11-proto/xextproto |
95 | x11-proto/xf86vidmodeproto |
96 | x11-proto/xproto |
97 | x11-proto/renderproto |
98 | xinerama? ( x11-proto/xineramaproto ) |
99 | )" |
100 | |
101 | RDEPEND="${COMMON_DEPEND}" |
102 | |
103 | S=${WORKDIR}/${MY_P#vdr-} |
104 | |
105 | VDR_CONFD_FILE=${FILESDIR}/confd-1.0.0_pre6 |
106 | |
107 | pkg_setup() { |
108 | vdr-plugin_pkg_setup |
109 | |
110 | if ! use vdr && ! use xine; then |
111 | eerror "Compiling ${PN} with USE='-vdr -xine' is not possible." |
112 | eerror "You either need at least one of these flags." |
113 | #die "${PN} cannot be used with vdr support and xine support disabled!" |
114 | fi |
115 | } |
116 | |
117 | use_onoff() { |
118 | if use "$1"; then |
119 | echo 1 |
120 | else |
121 | echo 0 |
122 | fi |
123 | } |
124 | |
125 | use_onoff_xine() { |
126 | if use xine && use "$1"; then |
127 | echo 1 |
128 | else |
129 | echo 0 |
130 | fi |
131 | } |
132 | |
133 | src_prepare() { |
134 | vdr-plugin_src_prepare |
135 | |
136 | # epatch "${FILESDIR}/${PN}-1.0.4_p20090810-compile-fix.diff" |
137 | |
138 | if use xine; then |
139 | XINE_PLUGIN_DIR=$(xine-config --plugindir) |
140 | if [[ ${XINE_PLUGIN_DIR} = "" ]]; then |
141 | eerror "Could not find xine plugin dir" |
142 | die "Could not find xine plugin dir" |
143 | fi |
144 | fi |
145 | |
146 | # stop some automagic overwriting of the stuff we set |
147 | sed -e '/XINELIBOUTPUT_VDRPLUGIN = 1/s/^/#/' \ |
148 | -e '/HAVE_EXTRACTOR_H = 1/s/^/#/' \ |
149 | -i Makefile |
150 | |
151 | cat >>Make.config <<-EOF |
152 | XINELIBOUTPUT_XINEPLUGIN = $(use_onoff xine) |
153 | XINELIBOUTPUT_VDRPLUGIN = $(use_onoff vdr) |
154 | |
155 | XINELIBOUTPUT_FB = $(use_onoff_xine fbcon) |
156 | XINELIBOUTPUT_X11 = $(use_onoff_xine X) |
157 | |
158 | HAVE_XRENDER = 1 |
159 | HAVE_XDPMS = 1 |
160 | HAVE_EXTRACTOR_H = $(use_onoff libextractor) |
161 | HAVE_XINERAMA = $(use_onoff xinerama) |
162 | EOF |
163 | |
164 | # patching makefile to work with this |
165 | # $ rm ${outdir}/file; cp file ${outdir}/file |
166 | # work in the sandbox |
167 | sed -i Makefile \ |
168 | -e 's:XINEPLUGINDIR.*=.*:XINEPLUGINDIR = '"${WORKDIR}/lib:" \ |
169 | -e 's:VDRINCDIR.*=.*:VDRINCDIR ?= /usr/include:' |
170 | mkdir -p "${WORKDIR}/lib" |
171 | } |
172 | |
173 | src_configure() { :; } |
174 | |
175 | src_install() { |
176 | if use vdr; then |
177 | # install vdr plugin |
178 | vdr-plugin_src_install |
179 | |
180 | # There may be no sub-plugin, depending on use-flags |
181 | insinto ${VDR_PLUGIN_DIR} |
182 | local f |
183 | for f in libxineliboutput*.so.${SO_VERSION}; do |
184 | [[ -f "$f" ]] || continue |
185 | doins "${f}" || die "could not install sub-plugin ${f}" |
186 | done |
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 | } |