1 |
zzam 07/12/23 19:48:08 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vdr-1.4.7-r9.ebuild |
5 |
Log: |
6 |
Updated extensions-patch to version 41. Added volctrl and lircsettings useflags. |
7 |
(Portage version: 2.1.4_rc11) |
8 |
|
9 |
Revision Changes Path |
10 |
1.100 media-video/vdr/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vdr/ChangeLog?rev=1.100&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vdr/ChangeLog?rev=1.100&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vdr/ChangeLog?r1=1.99&r2=1.100 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/media-video/vdr/ChangeLog,v |
19 |
retrieving revision 1.99 |
20 |
retrieving revision 1.100 |
21 |
diff -u -r1.99 -r1.100 |
22 |
--- ChangeLog 27 Nov 2007 11:50:06 -0000 1.99 |
23 |
+++ ChangeLog 23 Dec 2007 19:48:07 -0000 1.100 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for media-video/vdr |
26 |
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/ChangeLog,v 1.99 2007/11/27 11:50:06 zzam Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/ChangeLog,v 1.100 2007/12/23 19:48:07 zzam Exp $ |
29 |
+ |
30 |
+*vdr-1.4.7-r9 (23 Dec 2007) |
31 |
+ |
32 |
+ 23 Dec 2007; Matthias Schwarzott <zzam@g.o> +vdr-1.4.7-r9.ebuild: |
33 |
+ Updated extensions-patch to version 41. Added volctrl and lircsettings |
34 |
+ useflags. |
35 |
|
36 |
27 Nov 2007; Matthias Schwarzott <zzam@g.o> vdr-1.2.6-r1.ebuild: |
37 |
No longer install COPYING. |
38 |
|
39 |
|
40 |
|
41 |
1.1 media-video/vdr/vdr-1.4.7-r9.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vdr/vdr-1.4.7-r9.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-video/vdr/vdr-1.4.7-r9.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: vdr-1.4.7-r9.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2007 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-1.4.7-r9.ebuild,v 1.1 2007/12/23 19:48:07 zzam Exp $ |
51 |
|
52 |
inherit eutils flag-o-matic multilib |
53 |
|
54 |
IUSE_EXTENSIONS="cmdctrl cmdsubmenu cutterlimit cutterqueue cuttime ddepgentry |
55 |
dolbyinrec dvbplayer dvbsetup dvdarchive dvdchapjump graphtft iptv |
56 |
jumpplay liemikuutio livebuffer lnbshare mainmenuhooks menuorg noepg osdmaxitems pinplugin |
57 |
rotor settime setup sortrecords sourcecaps submenu |
58 |
subtitles switchtimer timercmd timerinfo validinput wareagleicon yaepg |
59 |
syncearly dvlfriendlyfnames dvlrecscriptaddon dvlvidprefer hardlinkcutter |
60 |
volctrl lircsettings" |
61 |
|
62 |
IUSE="debug vanilla ${IUSE_EXTENSIONS}" |
63 |
|
64 |
EXT_V="41" |
65 |
EXT_P=VDR-Extensions-Patch-"${EXT_V}" |
66 |
EXT_DIR="${WORKDIR}/${EXT_P}/" |
67 |
# Set if != $PV |
68 |
#EXT_VDR_PV=1.5.3 |
69 |
|
70 |
DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB" |
71 |
HOMEPAGE="http://www.cadsoft.de/vdr/" |
72 |
SRC_URI="ftp://ftp.cadsoft.de/vdr/${P}.tar.bz2 |
73 |
http://www.zulu-entertainment.de/files/patches/${EXT_P}.tar.bz2" |
74 |
|
75 |
#http://dev.gentoo.org/~zzam/extensions-patch/${EXT_P}.tar.bz2" |
76 |
|
77 |
KEYWORDS="~amd64 ~ppc ~x86" |
78 |
SLOT="0" |
79 |
LICENSE="GPL-2" |
80 |
|
81 |
DEPEND="media-libs/jpeg |
82 |
sys-apps/gawk |
83 |
media-tv/linuxtv-dvb-headers |
84 |
sys-libs/libcap |
85 |
dev-util/unifdef" |
86 |
|
87 |
RDEPEND="${DEPEND} |
88 |
dev-lang/perl |
89 |
|| ( >=media-tv/gentoo-vdr-scripts-0.4.2 media-tv/vdrplugin-rebuild ) |
90 |
>=media-tv/gentoo-vdr-scripts-0.3.5" |
91 |
|
92 |
# pull in vdr-setup to get the xml files, else menu will not work |
93 |
PDEPEND="setup? ( >=media-plugins/vdr-setup-0.3.1-r1 )" |
94 |
|
95 |
# Relevant Pathes for vdr on gentoo |
96 |
DVB_DIR=/usr/include |
97 |
CONF_DIR=/etc/vdr |
98 |
CAP_FILE="${S}"/capabilities.sh |
99 |
CAPS="# Capabilities of the vdr-executable for use by startscript etc." |
100 |
|
101 |
pkg_setup() { |
102 |
use debug && append-flags -g |
103 |
PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins" |
104 |
} |
105 |
|
106 |
add_cap() { |
107 |
local arg |
108 |
for arg; do |
109 |
CAPS="${CAPS}\n${arg}=1" |
110 |
done |
111 |
} |
112 |
|
113 |
enable_patch() { |
114 |
local arg ARG_UPPER |
115 |
for arg; do |
116 |
ARG_UPPER=$(echo $arg|tr '[:lower:]' '[:upper:]') |
117 |
echo "${ARG_UPPER} = 1" >> Make.config |
118 |
done |
119 |
} |
120 |
|
121 |
extensions_add_make_conf() |
122 |
{ |
123 |
# copy all ifdef for extensions-patch to Make.config |
124 |
sed -e '1,/need to touch the following:/d' \ |
125 |
-e '/ifdef DVBDIR/,/^$/d' \ |
126 |
Make.config.template >> Make.config |
127 |
} |
128 |
|
129 |
extensions_all_defines() { |
130 |
# extract all possible settings for extensions-patch |
131 |
sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \ |
132 |
Make.config.template \ |
133 |
| sort \ |
134 |
| tr '[:upper:]' '[:lower:]' |
135 |
} |
136 |
|
137 |
extensions_all_defines_unset() { |
138 |
# extract all possible settings for extensions-patch |
139 |
# and convert them to -U... for unifdef |
140 |
sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?/-UUSE_/' -e 's/ .*//' \ |
141 |
Make.config.template \ |
142 |
| tr '\n' ' ' |
143 |
} |
144 |
|
145 |
do_unifdef() { |
146 |
ebegin "Unifdef sources" |
147 |
local mf="Makefile.get" |
148 |
cat <<'EOT' > $mf |
149 |
include Makefile |
150 |
show_def: |
151 |
@echo $(DEFINES) |
152 |
show_src_files: |
153 |
@echo $(OBJS:%.o=%.c) |
154 |
EOT |
155 |
|
156 |
local DEFINES=$(extensions_all_defines_unset) |
157 |
|
158 |
local RAW_DEFINES=$(make -f "$mf" show_def) |
159 |
local VDR_SRC_FILES="$(make -f "$mf" show_src_files)" |
160 |
local KEEP_FILES="genfontfile.c $(echo font*.c)" |
161 |
rm "$mf" |
162 |
|
163 |
local def |
164 |
for def in $RAW_DEFINES; do |
165 |
case "${def}" in |
166 |
-DUSE*) |
167 |
DEFINES="${DEFINES} ${def}" |
168 |
;; |
169 |
esac |
170 |
done |
171 |
|
172 |
local f |
173 |
for f in *.c; do |
174 |
|
175 |
# Removing the src files the Makefile does not use for compiling vdr |
176 |
if ! has $f ${VDR_SRC_FILES} ${KEEP_FILES}; then |
177 |
rm -f ${f} ${f%.c}.h |
178 |
continue |
179 |
fi |
180 |
|
181 |
unifdef ${DEFINES} "$f" > "tmp.$f" |
182 |
mv "tmp.$f" "$f" |
183 |
done |
184 |
for f in *.h; do |
185 |
unifdef ${DEFINES} "$f" > "tmp.$f" |
186 |
mv "tmp.$f" "$f" |
187 |
[[ -s $f ]] || rm "$f" |
188 |
done |
189 |
eend 0 |
190 |
} |
191 |
|
192 |
src_unpack() { |
193 |
|
194 |
unpack ${A} |
195 |
cd "${S}" |
196 |
|
197 |
ebegin "Changing pathes for gentoo" |
198 |
|
199 |
sed \ |
200 |
-e 's-ConfigDirectory = VideoDirectory;-ConfigDirectory = CONFDIR;-' \ |
201 |
-i vdr.c |
202 |
|
203 |
cat > Make.config <<-EOT |
204 |
# |
205 |
# Generated by ebuild ${PF} |
206 |
# |
207 |
BINDIR = /usr/bin |
208 |
MANDIR = /usr/share/man |
209 |
DVBDIR = ${DVB_DIR} |
210 |
PLUGINLIBDIR = ${PLUGIN_LIBDIR} |
211 |
CONFDIR = ${CONF_DIR} |
212 |
VIDEODIR = /var/vdr/video |
213 |
HEADERDIR = /usr/include |
214 |
|
215 |
DEFINES += -DCONFDIR=\"\$(CONFDIR)\" |
216 |
|
217 |
EOT |
218 |
eend 0 |
219 |
|
220 |
epatch "${FILESDIR}"/vdr-1.4.7-makefile-destdir.diff |
221 |
epatch "${FILESDIR}"/vdr-1.4.7-makefile-install-header.diff |
222 |
|
223 |
sed -i Makefile \ |
224 |
-e 's/runvdr//' \ |
225 |
-e 's/ install-plugins//' |
226 |
|
227 |
if ! use vanilla; then |
228 |
|
229 |
cd "${S}" |
230 |
local fname="${PN}-${EXT_VDR_PV:-${PV}}_extensions.diff" |
231 |
epatch "${EXT_DIR}/${fname}" |
232 |
|
233 |
epatch "${FILESDIR}/vdr-add-svdrp-down-0.1.diff" |
234 |
add_cap CAP_SHUTDOWN_SVDRP |
235 |
|
236 |
epatch "${FILESDIR}/vdr-set-dumpable.diff" |
237 |
|
238 |
# This allows us to start even if some plugin does not exist |
239 |
# or is not loadable. |
240 |
enable_patch PLUGINMISSING |
241 |
|
242 |
# Patch necessary for media-plugins/vdr-reelchannelscan |
243 |
# it does not change anything when plugin is not used |
244 |
enable_patch CHANNELSCAN |
245 |
|
246 |
if [[ -n ${VDR_MAINTAINER_MODE} ]]; then |
247 |
einfo "Doing maintainer checks:" |
248 |
|
249 |
# these patches we do not support |
250 |
# (or have them already hard enabled) |
251 |
local IGNORE_PATCHES="channelscan pluginapi pluginmissing" |
252 |
|
253 |
extensions_all_defines > "${T}"/new.IUSE |
254 |
echo $IUSE_EXTENSIONS $IGNORE_PATCHES|tr ' ' '\n' |sort > "${T}"/old.IUSE |
255 |
local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]') |
256 |
if [[ -z ${DIFFS} ]]; then |
257 |
einfo "IUSE_EXTENSIONS is up to date." |
258 |
else |
259 |
ewarn "IUSE differences!" |
260 |
local diff |
261 |
for diff in $DIFFS; do |
262 |
ewarn "$diff" |
263 |
done |
264 |
fi |
265 |
fi |
266 |
|
267 |
ebegin "Enabling selected patches" |
268 |
local flag |
269 |
for flag in $IUSE_EXTENSIONS; do |
270 |
use $flag && enable_patch ${flag} |
271 |
done |
272 |
eend 0 |
273 |
|
274 |
extensions_add_make_conf |
275 |
|
276 |
ebegin "Make depend" |
277 |
emake .dependencies >/dev/null || die "make depend failed" |
278 |
eend 0 |
279 |
|
280 |
do_unifdef |
281 |
|
282 |
use iptv && sed -i sources.conf -e 's/^#P/P/' |
283 |
fi |
284 |
|
285 |
# apply local patches defined by variable VDR_LOCAL_PATCHES_DIR |
286 |
if test -n "${VDR_LOCAL_PATCHES_DIR}"; then |
287 |
local dir_tmp_var |
288 |
local LOCALPATCHES_SUBDIR=${PV} |
289 |
for dir_tmp_var in allversions-fallback ${PV%_p*} ${PV} ; do |
290 |
if [[ -d ${VDR_LOCAL_PATCHES_DIR}/${dir_tmp_var} ]]; then |
291 |
LOCALPATCHES_SUBDIR="${dir_tmp_var}" |
292 |
fi |
293 |
done |
294 |
|
295 |
echo |
296 |
if [[ ${LOCALPATCHES_SUBDIR} == ${PV} ]]; then |
297 |
einfo "Applying local patches" |
298 |
else |
299 |
einfo "Applying local patches (Using subdirectory: ${LOCALPATCHES_SUBDIR})" |
300 |
fi |
301 |
|
302 |
for LOCALPATCH in ${VDR_LOCAL_PATCHES_DIR}/${LOCALPATCHES_SUBDIR}/*.{diff,patch}; do |
303 |
test -f "${LOCALPATCH}" && epatch "${LOCALPATCH}" |
304 |
done |
305 |
fi |
306 |
|
307 |
if [[ -n "${VDRSOURCE_DIR}" ]]; then |
308 |
cp -r "${S}" "${T}"/source-tree |
309 |
fi |
310 |
|
311 |
if ! use vanilla; then |
312 |
add_cap CAP_IRCTRL_RUNTIME_PARAM \ |
313 |
CAP_VFAT_RUNTIME_PARAM \ |
314 |
CAP_CHUID |
315 |
|
316 |
echo -e ${CAPS} > "${CAP_FILE}" |
317 |
fi |
318 |
} |
319 |
|
320 |
src_install() { |
321 |
emake install DESTDIR="${D}" || die "make install failed" |
322 |
|
323 |
keepdir "${CONF_DIR}"/plugins |
324 |
keepdir "${CONF_DIR}"/themes |
325 |
|
326 |
keepdir "${PLUGIN_LIBDIR}" |
327 |
|
328 |
dohtml *.html |
329 |
dodoc MANUAL INSTALL README* HISTORY* CONTRIBUTORS |
330 |
|
331 |
cd "${EXT_DIR}" |
332 |
local f |
333 |
rm *vdr-1.5* 2>/dev/null |
334 |
for f in BUGS README* HISTORY* patch.list; do |
335 |
[[ -f ${f} ]] || break |
336 |
newdoc "${f}" "${f}".ExtensionsPatch || die "Could not install extensions-patch doc ${f}" |
337 |
done |
338 |
|
339 |
cd "${S}" |
340 |
|
341 |
insinto /usr/share/vdr |
342 |
doins "${CAP_FILE}" |
343 |
|
344 |
if [[ -n "${VDRSOURCE_DIR}" ]]; then |
345 |
einfo "Installing sources" |
346 |
insinto "${VDRSOURCE_DIR}/${P}" |
347 |
doins -r "${T}"/source-tree/* |
348 |
keepdir "${VDRSOURCE_DIR}/${P}"/PLUGINS/lib |
349 |
fi |
350 |
|
351 |
if use setup; then |
352 |
insinto /usr/share/vdr/setup |
353 |
doins "${S}/menu.c" |
354 |
fi |
355 |
chown -R vdr:vdr "${D}/${CONF_DIR}" |
356 |
} |
357 |
|
358 |
pkg_postinst() { |
359 |
elog "It is a good idea to run vdrplugin-rebuild now." |
360 |
if has_version "<media-video/vdr-1.3.36-r3"; then |
361 |
ewarn "Upgrade Info:" |
362 |
ewarn |
363 |
ewarn "If you had used the use-flags lirc, rcu or vfat" |
364 |
ewarn "then, you now have to enable the associated functionality" |
365 |
ewarn "in /etc/conf.d/vdr" |
366 |
ewarn |
367 |
ewarn "vfat is now set with VFAT_FILENAMES." |
368 |
ewarn "lirc/rcu are now set with IR_CTRL." |
369 |
ebeep |
370 |
fi |
371 |
|
372 |
if use setup; then |
373 |
if ! has_version media-plugins/vdr-setup || \ |
374 |
! egrep -q '^setup$' "${ROOT}/etc/conf.d/vdr.plugins"; then |
375 |
|
376 |
echo |
377 |
ewarn "You have compiled media-video/vdr with USE=\"setup\"" |
378 |
ewarn "It is very important to emerge media-plugins/vdr-setup now!" |
379 |
ewarn "and you have to loaded it in /etc/conf.d/vdr.plugins" |
380 |
fi |
381 |
fi |
382 |
|
383 |
local keysfound=0 |
384 |
local key |
385 |
local warn_keys="JumpFwd JumpRew JumpFwdSlow JumpRewSlow" |
386 |
local remote_file="${ROOT}"/etc/vdr/remote.conf |
387 |
|
388 |
if [[ -e ${remote_file} ]]; then |
389 |
for key in ${warn_keys}; do |
390 |
if grep -q -i "\.${key} " "${remote_file}"; then |
391 |
keysfound=1 |
392 |
break |
393 |
fi |
394 |
done |
395 |
if [[ ${keysfound} == 1 ]]; then |
396 |
ewarn "Your /etc/vdr/remote.conf contains keys which are no longer usable" |
397 |
ewarn "Please remove these keys or vdr will not start:" |
398 |
ewarn "# ${warn_keys}" |
399 |
fi |
400 |
fi |
401 |
} |
402 |
|
403 |
|
404 |
|
405 |
-- |
406 |
gentoo-commits@g.o mailing list |