1 |
zzam 09/03/24 21:27:28 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: vdr-xineliboutput-1.0.4.ebuild |
5 |
Log: |
6 |
Version bumped. Added use-flags vdr and xine to only compile the selected plugins. |
7 |
(Portage version: 2.1.6.10/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.4 media-plugins/vdr-xineliboutput/metadata.xml |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/metadata.xml?rev=1.4&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/metadata.xml?rev=1.4&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/metadata.xml?r1=1.3&r2=1.4 |
15 |
|
16 |
Index: metadata.xml |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/metadata.xml,v |
19 |
retrieving revision 1.3 |
20 |
retrieving revision 1.4 |
21 |
diff -u -r1.3 -r1.4 |
22 |
--- metadata.xml 1 Aug 2008 20:00:39 -0000 1.3 |
23 |
+++ metadata.xml 24 Mar 2009 21:27:28 -0000 1.4 |
24 |
@@ -12,5 +12,7 @@ |
25 |
<use> |
26 |
<flag name='libextractor'>Use <pkg>media-libs/libextract</pkg> to gather |
27 |
files' metadata in media-player</flag> |
28 |
+ <flag name='vdr'>Compile the vdr output plugin to use local or remote xine as output</flag> |
29 |
+ <flag name='xine'>Compile the xine input plugin for displaying vdr video and OSD</flag> |
30 |
</use> |
31 |
</pkgmetadata> |
32 |
|
33 |
|
34 |
|
35 |
1.43 media-plugins/vdr-xineliboutput/ChangeLog |
36 |
|
37 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?rev=1.43&view=markup |
38 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?rev=1.43&content-type=text/plain |
39 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog?r1=1.42&r2=1.43 |
40 |
|
41 |
Index: ChangeLog |
42 |
=================================================================== |
43 |
RCS file: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v |
44 |
retrieving revision 1.42 |
45 |
retrieving revision 1.43 |
46 |
diff -u -r1.42 -r1.43 |
47 |
--- ChangeLog 3 Nov 2008 08:17:45 -0000 1.42 |
48 |
+++ ChangeLog 24 Mar 2009 21:27:28 -0000 1.43 |
49 |
@@ -1,6 +1,13 @@ |
50 |
# ChangeLog for media-plugins/vdr-xineliboutput |
51 |
-# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
52 |
-# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v 1.42 2008/11/03 08:17:45 zzam Exp $ |
53 |
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
54 |
+# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/ChangeLog,v 1.43 2009/03/24 21:27:28 zzam Exp $ |
55 |
+ |
56 |
+*vdr-xineliboutput-1.0.4 (24 Mar 2009) |
57 |
+ |
58 |
+ 24 Mar 2009; Matthias Schwarzott <zzam@g.o> metadata.xml, |
59 |
+ +vdr-xineliboutput-1.0.4.ebuild: |
60 |
+ Version bumped. Added use-flags vdr and xine to only compile the selected |
61 |
+ plugins. |
62 |
|
63 |
*vdr-xineliboutput-1.0.3 (03 Nov 2008) |
64 |
|
65 |
|
66 |
|
67 |
|
68 |
1.1 media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.4.ebuild |
69 |
|
70 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.4.ebuild?rev=1.1&view=markup |
71 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.4.ebuild?rev=1.1&content-type=text/plain |
72 |
|
73 |
Index: vdr-xineliboutput-1.0.4.ebuild |
74 |
=================================================================== |
75 |
# Copyright 1999-2009 Gentoo Foundation |
76 |
# Distributed under the terms of the GNU General Public License v2 |
77 |
# $Header: /var/cvsroot/gentoo-x86/media-plugins/vdr-xineliboutput/vdr-xineliboutput-1.0.4.ebuild,v 1.1 2009/03/24 21:27:28 zzam Exp $ |
78 |
|
79 |
GENTOO_VDR_CONDITIONAL=yes |
80 |
|
81 |
EAPI="2" |
82 |
|
83 |
inherit vdr-plugin eutils multilib versionator |
84 |
|
85 |
MY_PV=${PV/_/} |
86 |
MY_P=${PN}-${MY_PV} |
87 |
|
88 |
SO_VERSION="${PV%_p*}" |
89 |
SO_VERSION="${SO_VERSION/_/}" |
90 |
|
91 |
DESCRIPTION="Video Disk Recorder Xinelib PlugIn" |
92 |
HOMEPAGE="http://sourceforge.net/projects/xineliboutput/" |
93 |
SRC_URI="mirror://sourceforge/${PN#vdr-}/${MY_P}.tgz" |
94 |
|
95 |
SLOT="0" |
96 |
LICENSE="GPL-2" |
97 |
KEYWORDS="~amd64 ~x86" |
98 |
IUSE="+vdr +xine fbcon X libextractor" |
99 |
|
100 |
# both vdr plugin or vdr-sxfe can use X11 |
101 |
COMMON_DEPEND=" |
102 |
vdr? ( >=media-video/vdr-1.4.0 ) |
103 |
|
104 |
xine? ( >=media-libs/xine-lib-1.1.1 ) |
105 |
|
106 |
media-libs/jpeg |
107 |
libextractor? ( >=media-libs/libextractor-0.5.20 )" |
108 |
|
109 |
DEPEND="${COMMON_DEPEND} |
110 |
sys-kernel/linux-headers |
111 |
X? ( |
112 |
x11-libs/libX11 |
113 |
x11-libs/libXv |
114 |
x11-libs/libXext |
115 |
x11-libs/libXrender |
116 |
)" |
117 |
RDEPEND="${COMMON_DEPEND} |
118 |
X? ( |
119 |
x11-proto/xextproto |
120 |
x11-proto/xf86vidmodeproto |
121 |
x11-proto/xproto |
122 |
x11-proto/renderproto |
123 |
)" |
124 |
|
125 |
|
126 |
S=${WORKDIR}/${MY_P#vdr-} |
127 |
|
128 |
VDR_CONFD_FILE=${FILESDIR}/confd-1.0.0_pre6 |
129 |
|
130 |
pkg_setup() { |
131 |
vdr-plugin_pkg_setup |
132 |
|
133 |
if ! use vdr && ! use xine; then |
134 |
eerror "Compiling ${PN} with USE='-vdr -xine' is not possible." |
135 |
eerror "You either need at least one of these flags." |
136 |
#die "${PN} cannot be used with vdr support and xine support disabled!" |
137 |
fi |
138 |
} |
139 |
|
140 |
use_onoff() { |
141 |
if use "$1"; then |
142 |
echo 1 |
143 |
else |
144 |
echo 0 |
145 |
fi |
146 |
} |
147 |
|
148 |
use_onoff_xine() { |
149 |
if use xine && use "$1"; then |
150 |
echo 1 |
151 |
else |
152 |
echo 0 |
153 |
fi |
154 |
} |
155 |
|
156 |
src_prepare() { |
157 |
vdr-plugin_src_prepare |
158 |
|
159 |
if use xine; then |
160 |
XINE_PLUGIN_DIR=$(xine-config --plugindir) |
161 |
if [[ ${XINE_PLUGIN_DIR} = "" ]]; then |
162 |
eerror "Could not find xine plugin dir" |
163 |
die "Could not find xine plugin dir" |
164 |
fi |
165 |
fi |
166 |
|
167 |
# stop some automagic overwriting of the stuff we set |
168 |
sed -e '/XINELIBOUTPUT_VDRPLUGIN = 1/s/^/#/' \ |
169 |
-e '/HAVE_EXTRACTOR_H = 1/s/^/#/' \ |
170 |
-i Makefile |
171 |
|
172 |
cat >>Make.config <<-EOF |
173 |
XINELIBOUTPUT_XINEPLUGIN = $(use_onoff xine) |
174 |
XINELIBOUTPUT_VDRPLUGIN = $(use_onoff vdr) |
175 |
|
176 |
XINELIBOUTPUT_FB = $(use_onoff_xine fbcon) |
177 |
XINELIBOUTPUT_X11 = $(use_onoff_xine X) |
178 |
|
179 |
HAVE_XRENDER = 1 |
180 |
HAVE_XDPMS = 1 |
181 |
HAVE_EXTRACTOR_H = $(use_onoff libextractor) |
182 |
EOF |
183 |
|
184 |
# patching makefile to work with this |
185 |
# $ rm ${outdir}/file; cp file ${outdir}/file |
186 |
# work in the sandbox |
187 |
sed -i Makefile \ |
188 |
-e 's:XINEPLUGINDIR.*=.*:XINEPLUGINDIR = '"${WORKDIR}/lib:" \ |
189 |
-e 's:VDRINCDIR.*=.*:VDRINCDIR ?= /usr/include:' |
190 |
mkdir -p "${WORKDIR}/lib" |
191 |
} |
192 |
|
193 |
src_install() { |
194 |
if use vdr; then |
195 |
# install vdr plugin |
196 |
vdr-plugin_src_install |
197 |
|
198 |
# There may be no sub-plugin, depending on use-flags |
199 |
insinto ${VDR_PLUGIN_DIR} |
200 |
local f |
201 |
for f in libxineliboutput*.so.${SO_VERSION}; do |
202 |
[[ -f "$f" ]] || continue |
203 |
doins "${f}" || die "could not install sub-plugin ${f}" |
204 |
done |
205 |
fi |
206 |
|
207 |
if use xine; then |
208 |
# install xine-plugins |
209 |
insinto "${XINE_PLUGIN_DIR}" |
210 |
doins xineplug_inp_*.so |
211 |
|
212 |
insinto "${XINE_PLUGIN_DIR}"/post |
213 |
doins xineplug_post_*.so |
214 |
|
215 |
# install xine-based frontends |
216 |
use fbcon && dobin vdr-fbfe |
217 |
use X && dobin vdr-sxfe |
218 |
|
219 |
fi |
220 |
} |
221 |
|
222 |
pkg_config() { |
223 |
einfo "emerge --config is not supported" |
224 |
} |