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-video/vdr: metadata.xml ChangeLog vdr-2.0.0.ebuild
Date: Sun, 31 Mar 2013 10:31:45
Message-Id: 20130331103141.C0FC32171D@flycatcher.gentoo.org
1 hd_brummy 13/03/31 10:31:41
2
3 Modified: metadata.xml ChangeLog
4 Added: vdr-2.0.0.ebuild
5 Log:
6 bump, major release
7
8 (Portage version: 2.1.11.50/cvs/Linux i686, unsigned Manifest commit)
9
10 Revision Changes Path
11 1.12 media-video/vdr/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vdr/metadata.xml?rev=1.12&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vdr/metadata.xml?rev=1.12&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vdr/metadata.xml?r1=1.11&r2=1.12
16
17 Index: metadata.xml
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/media-video/vdr/metadata.xml,v
20 retrieving revision 1.11
21 retrieving revision 1.12
22 diff -u -r1.11 -r1.12
23 --- metadata.xml 17 Mar 2013 16:05:16 -0000 1.11
24 +++ metadata.xml 31 Mar 2013 10:31:40 -0000 1.12
25 @@ -9,6 +9,7 @@
26 </maintainer>
27 <use>
28 <flag name="analogtv">Add support for the analogtv plugin</flag>
29 + <flag name="alternatechannel">Use alternate channel on record</flag>
30 <flag name="atsc">Support for NorthAmerican Broadcast ( rudimentary )</flag>
31 <flag name="cmdreccmdi18n">loads translated commands and reccommands files if existing</flag>
32 <flag name="cmdsubmenu">Allows the creation of submenus in the commands menu</flag>
33 @@ -29,17 +30,21 @@
34 <flag name="em84xx">Add support for em84xx plugin</flag>
35 <flag name="graphtft">support for grapftft plugin up from vdr-graphtft-0.1.7</flag>
36 <flag name="hardlinkcutter">Speed up cutting by hardlinking unchanged files</flag>
37 + <flag name="html">Install HTML documentation</flag>
38 <flag name="iptv">Enables channel parameters for vdr-iptv and other input plugins</flag>
39 <flag name="jumpplay">Enables automatic jumping over cut marks while watching a recording</flag>
40 + <flag name="jumpingseconds">skip seconds in played records</flag>
41 <flag name="liemikuutio">Formerly known as AIO (all-in-one) patch, adds some nice must haves, plus changes from extensions patch</flag>
42 <flag name="lircsettings">Allows to change lirc settings delay, freq and timeout values in OSD</flag>
43 <flag name="livebuffer">does timeshifting/background recording all the time, allows to rewind live TV</flag>
44 <flag name="lnbshare">Enables support for two or more dvb cards sharing the same cable to the lnb</flag>
45 <flag name="mainmenuhooks">Allows to replace main menu entries by some special plugins (like epgsearch, extrecmenu, ...)</flag>
46 <flag name="menuorg">Enables support for the menuorg-plugin</flag>
47 + <flag name="naludump">Removes NALU fill data from h.264-Streams of TS files</flag>
48 <flag name="noepg">Adds code to selectively disable epg-reception for specific channels</flag>
49 <flag name="osdmaxitems">Support for text2skin</flag>
50 <flag name="parentalrating">Support Parental Rating</flag>
51 + <flag name="permashift">permanent timeshift by recording live TV on hard disk, need plugin vdr-permashift</flag>
52 <flag name="pinplugin">Support for pin plugin</flag>
53 <flag name="rotor">Enable support for plugin vdr-rotor for dish-positioner.</flag>
54 <flag name="settime">set system time per script instead of via syscal</flag>
55 @@ -52,6 +57,7 @@
56 <flag name="timerinfo">Show with chars +/- if space on HD will suffice for a timer</flag>
57 <flag name="ttxtsubs">support for ttxtsubs plugin</flag>
58 <flag name="validinput">Signal if it is possible to go left/right in lists with chars &lt; &gt;</flag>
59 + <flag name="vasarajanauloja">replacement for the liemikuutio patch, adds some nice must haves features</flag>
60 <flag name="volctrl">allows volume control using left/right keys</flag>
61 <flag name="wareagleicon">Replace original icon set in menu</flag>
62 <flag name="yaepg">Enables support for the plugin vdr-yaepg</flag>
63
64
65
66 1.169 media-video/vdr/ChangeLog
67
68 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vdr/ChangeLog?rev=1.169&view=markup
69 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vdr/ChangeLog?rev=1.169&content-type=text/plain
70 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vdr/ChangeLog?r1=1.168&r2=1.169
71
72 Index: ChangeLog
73 ===================================================================
74 RCS file: /var/cvsroot/gentoo-x86/media-video/vdr/ChangeLog,v
75 retrieving revision 1.168
76 retrieving revision 1.169
77 diff -u -r1.168 -r1.169
78 --- ChangeLog 17 Mar 2013 16:05:16 -0000 1.168
79 +++ ChangeLog 31 Mar 2013 10:31:40 -0000 1.169
80 @@ -1,6 +1,12 @@
81 # ChangeLog for media-video/vdr
82 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
83 -# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/ChangeLog,v 1.168 2013/03/17 16:05:16 hwoarang Exp $
84 +# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/ChangeLog,v 1.169 2013/03/31 10:31:40 hd_brummy Exp $
85 +
86 +*vdr-2.0.0 (31 Mar 2013)
87 +
88 + 31 Mar 2013; Joerg Bornkessel <hd_brummy@g.o> +vdr-2.0.0.ebuild,
89 + +files/vdr-2.0.0_gentoo.patch, +files/channel_alternative.conf, metadata.xml:
90 + bump, major release
91
92 17 Mar 2013; Markos Chandras <hwoarang@g.o> metadata.xml:
93 Add proxy-maintainers to metadata.xml
94
95
96
97 1.1 media-video/vdr/vdr-2.0.0.ebuild
98
99 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vdr/vdr-2.0.0.ebuild?rev=1.1&view=markup
100 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vdr/vdr-2.0.0.ebuild?rev=1.1&content-type=text/plain
101
102 Index: vdr-2.0.0.ebuild
103 ===================================================================
104 # Copyright 1999-2013 Gentoo Foundation
105 # Distributed under the terms of the GNU General Public License v2
106 # $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-2.0.0.ebuild,v 1.1 2013/03/31 10:31:41 hd_brummy Exp $
107
108 EAPI="5"
109
110 inherit eutils flag-o-matic multilib toolchain-funcs
111
112 # Switches supported by extensions-patch
113 EXT_PATCH_FLAGS="alternatechannel ddepgentry dvlvidprefer graphtft
114 jumpplay jumpingseconds mainmenuhooks menuorg naludump permashift
115 pinplugin rotor setup ttxtsubs vasarajanauloja wareagleicon yaepg"
116
117 # names of the use-flags
118 EXT_PATCH_FLAGS_RENAMED=""
119
120 # names ext-patch uses internally, here only used for maintainer checks
121 EXT_PATCH_FLAGS_RENAMED_EXT_NAME=""
122
123 IUSE="debug html vanilla dxr3 ${EXT_PATCH_FLAGS} ${EXT_PATCH_FLAGS_RENAMED}"
124
125 MY_PV="${PV%_p*}"
126 MY_P="${PN}-${MY_PV}"
127 S="${WORKDIR}/${MY_P}"
128
129 EXT_P="extpng-${P}-gentoo-edition-v1"
130
131 DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
132 HOMEPAGE="http://www.tvdr.de/"
133 SRC_URI="ftp://ftp.tvdr.de/vdr/${MY_P}.tar.bz2
134 http://dev.gentoo.org/~hd_brummy/distfiles/${EXT_P}.patch.bz2"
135
136 KEYWORDS="~arm ~amd64 ~ppc ~x86"
137 SLOT="0"
138 LICENSE="GPL-2"
139
140 REQUIRED_USE="setup? ( !menuorg )
141 menuorg? ( !setup )"
142
143 COMMON_DEPEND="virtual/jpeg
144 sys-libs/libcap
145 >=media-libs/fontconfig-2.4.2
146 >=media-libs/freetype-2
147 setup? ( >=dev-libs/tinyxml-2.6.1[stl] )"
148
149 DEPEND="${COMMON_DEPEND}
150 >=virtual/linuxtv-dvb-headers-5.3
151 sys-devel/gettext"
152
153 RDEPEND="${COMMON_DEPEND}
154 dev-lang/perl
155 >=media-tv/gentoo-vdr-scripts-0.2.0
156 media-fonts/corefonts"
157
158 # pull in vdr-setup to get the xml files, else menu will not work
159 PDEPEND="setup? ( >=media-plugins/vdr-setup-0.3.1-r3 )"
160
161 CONF_DIR=/etc/vdr
162 CAP_FILE=${S}/capabilities.sh
163 CAPS="# Capabilities of the vdr-executable for use by startscript etc."
164
165 pkg_setup() {
166 if [ -n "${VDR_LOCAL_PATCHES_DIR}" ]; then
167 eerror "Using VDR_LOCAL_PATCHES_DIR is obsolete!"
168 eerror "Please move all your patches into"
169 eerror "${EROOT}/etc/portage/patches/${CATEGORY}/${P}"
170 eerror "and remove or unset the VDR_LOCAL_PATCHES_DIR variable."
171 die
172 fi
173
174 use debug && append-flags -g
175
176 PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins"
177
178 tc-export CC CXX
179 }
180
181 add_cap() {
182 local arg
183 for arg; do
184 CAPS="${CAPS}\n${arg}=1"
185 done
186 }
187
188 enable_patch() {
189 local arg ARG_UPPER
190 for arg; do
191 ARG_UPPER=$(echo $arg|tr '[:lower:]' '[:upper:]')
192 echo "${ARG_UPPER} = 1" >> Make.config
193
194 # codesnippet to bring the extpng defines into the vdr.pc CXXFLAGS CFLAGS
195 echo "-DUSE_${ARG_UPPER}" >> "${T}"/defines.tmp
196 cat "${T}"/defines.tmp | tr \\\012 ' ' > "${T}"/defines.IUSE
197 export DEFINES_IUSE=$( cat ${T}/defines.IUSE )
198 done
199 }
200
201 extensions_add_make_conf()
202 {
203 # copy all ifdef for extensions-patch to Make.config
204 sed -e '1,/need to touch the following:/d' \
205 -e '/need to touch the following/,/^$/d' \
206 Make.config.template >> Make.config
207 }
208
209 extensions_all_defines() {
210 # extract all possible settings for extensions-patch
211 sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \
212 Make.config.template \
213 | sort \
214 | tr '[:upper:]' '[:lower:]'
215 }
216
217 lang_po() {
218 LING_PO=$( ls ${S}/po | sed -e "s:.po::g" | cut -d_ -f1 | tr \\\012 ' ' )
219 }
220
221 src_prepare() {
222 # apply maintainace-patches
223
224 ebegin "Changing paths for gentoo"
225
226 local DVBDIR=/usr/include
227 local i
228 for i in ${DVB_HEADER_PATH} /usr/include/v4l-dvb-hg /usr/include; do
229 [[ -d ${i} ]] || continue
230 if [[ -f ${i}/linux/dvb/dmx.h ]]; then
231 einfo "Found DVB header files in ${i}"
232 DVBDIR=${i}
233 break
234 fi
235 done
236
237 # checking for s2api headers
238 local api_version
239 api_version=$(awk -F' ' '/define DVB_API_VERSION / {print $3}' "${DVBDIR}"/linux/dvb/version.h)
240 api_version=${api_version}*$(awk -F' ' '/define DVB_API_VERSION_MINOR / {print $3}' "${DVBDIR}"/linux/dvb/version.h)
241
242 if [[ ${api_version:-0} -lt 5*3 ]]; then
243 eerror "DVB header files do not contain s2api support or too old for ${P}"
244 eerror "You cannot compile VDR against old dvb-header"
245 die "DVB headers too old"
246 fi
247
248 cat > Make.config <<-EOT
249 #
250 # Generated by ebuild ${PF}
251 #
252 PREFIX = /usr
253 DVBDIR = ${DVBDIR}
254 PLUGINLIBDIR = ${PLUGIN_LIBDIR}
255 CONFDIR = ${CONF_DIR}
256 VIDEODIR = /var/vdr/video
257 LOCDIR = \$(PREFIX)/share/locale
258 INCDIR = \$(PREFIX)/include
259
260 DEFINES += -DCONFDIR=\"\$(CONFDIR)\"
261 INCLUDES += -I\$(DVBDIR)
262
263 # >=vdr-1.7.36-r1; parameter only used for compiletime on vdr
264 # PLUGINLIBDIR (plugin Makefile old) = LIBDIR (plugin Makefile new)
265 LIBDIR = ${PLUGIN_LIBDIR}
266 PCDIR = /usr/$(get_libdir)/pkgconfig
267 EOT
268 eend 0
269
270 epatch "${FILESDIR}/${P}_gentoo.patch"
271
272 if ! use vanilla; then
273
274 # Now apply extensions patch
275 epatch "${WORKDIR}/${EXT_P}.patch"
276
277 # This allows us to start even if some plugin does not exist
278 # or is not loadable.
279 enable_patch PLUGINMISSING
280 enable_patch CHANNELBIND
281
282 if [[ -n ${VDR_MAINTAINER_MODE} ]]; then
283 einfo "Doing maintainer checks:"
284
285 # we do not support these patches
286 # (or have them already hard enabled)
287 local IGNORE_PATCHES="pluginmissing channelbind"
288
289 extensions_all_defines > "${T}"/new.IUSE
290 echo $EXT_PATCH_FLAGS $EXT_PATCH_FLAGS_RENAMED_EXT_NAME \
291 $IGNORE_PATCHES | \
292 tr ' ' '\n' |sort > "${T}"/old.IUSE
293 local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]')
294 if [[ -z ${DIFFS} ]]; then
295 einfo "EXT_PATCH_FLAGS is up to date."
296 else
297 ewarn "IUSE differences!"
298 local diff
299 for diff in $DIFFS; do
300 ewarn "$diff"
301 done
302 fi
303 fi
304
305 ebegin "Enabling selected patches"
306 local flag
307 for flag in $EXT_PATCH_FLAGS; do
308 use $flag && enable_patch ${flag}
309 done
310
311 eend 0
312
313 extensions_add_make_conf
314
315 # add defined use-flags compile options to vdr.pc
316 sed -e "s:\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR):\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR) \$(DEFINES_IUSE):" \
317 -i Makefile
318
319 ebegin "Make depend"
320 emake .dependencies >/dev/null
321 eend $? "make depend failed"
322 fi
323
324 epatch_user
325
326 add_cap CAP_UTF8
327
328 add_cap CAP_IRCTRL_RUNTIME_PARAM \
329 CAP_VFAT_RUNTIME_PARAM \
330 CAP_CHUID \
331 CAP_SHUTDOWN_AUTO_RETRY
332
333 echo -e ${CAPS} > "${CAP_FILE}"
334
335 # LINGUAS support
336 einfo "\n \t VDR supports the LINGUAS values"
337
338 lang_po
339
340 einfo "\t Please set one of this values in your sytem make.conf"
341 einfo "\t LINGUAS=\"${LING_PO}\"\n"
342
343 if [[ -z ${LINGUAS} ]]; then
344 einfo "\n \t No values in LINGUAS="
345 einfo "\t You will get only english text on OSD \n"
346 fi
347
348 strip-linguas ${LING_PO} en
349 }
350
351 src_install() {
352 # trick makefile not to create a videodir by supplying it with an existing
353 # directory
354 einstall \
355 VIDEODIR="/" \
356 DESTDIR="${D}" \
357 || die "einstall failed"
358
359 keepdir "${PLUGIN_LIBDIR}"
360
361 keepdir "${CONF_DIR}"/plugins
362 keepdir "${CONF_DIR}"/themes
363
364 diropts -m0755 -ovdr -gvdr
365 keepdir /var/cache/vdr
366
367 if use html; then
368 dohtml *.html
369 fi
370
371 dodoc MANUAL INSTALL README* HISTORY CONTRIBUTORS
372
373 insinto /usr/share/vdr
374 doins "${CAP_FILE}"
375
376 if use alternatechannel; then
377 insinto /etc/vdr
378 doins "${FILESDIR}"/channel_alternative.conf
379 fi
380
381 if use setup; then
382 insinto /usr/share/vdr/setup
383 doins "${S}"/menu.c
384 fi
385
386 chown -R vdr:vdr "${D}/${CONF_DIR}"
387 }
388
389 pkg_preinst() {
390 has_version "<${CATEGORY}/${PN}-1.6.0_p2-r8"
391 previous_less_than_1_6_0_p2_r8=$?
392
393 has_version "<${CATEGORY}/${PN}-1.7.27"
394 previous_less_than_1_7_27=$?
395
396 has_version "<${CATEGORY}/${PN}-1.7.36"
397 previous_less_than_1_7_36=$?
398 }
399
400 pkg_postinst() {
401
402 # correct wrong permission from earlier install
403 CACHEOWNER="$(stat -c %U /var/cache/vdr)"
404 if [ ! ${CACHEOWNER} == vdr ]; then
405 chown -R vdr:vdr "${ROOT}/var/cache/vdr"
406 fi
407
408 if [[ previous_less_than_1_6_0_p2_r8=$? = 0 ]] ; then
409 elog " Upgrade Info:"
410
411 elog " The recording format is now Transport Stream. Existing recordings in PES format"
412 elog " can still be replayed and edited, but new recordings are done in TS."
413
414 elog " The support for full featured DVB cards of the TT/FuSi design has been moved"
415 elog " into the new plugins 'dvbsddevice' 'dvbhddevice'. On systems that use such a card as their"
416 elog " primary device, one of this plugin now needs to be loaded when running VDR in order"
417 elog " to view live or recorded video. If the plugin is not loaded, the card will"
418 elog " be treated like a budget DVB card, and there will be no OSD or viewing"
419 elog " capability."
420
421 elog " The index file for TS recordings is now regenerated on-the-fly if a"
422 elog " recording is replayed that has no index. This can also be used to"
423 elog " re-create a broken index file by manually deleting the index file and then"
424 elog " replaying the recording."
425
426 elog " The files \"commands.conf\" and \"reccmd.conf\" can now contain nested lists of"
427 elog " commands. See man vdr.5 for information about the new file format."
428
429 elog " The option \"Setup/DVB/Use Dolby Digital\" now only controls whether Dolby Digital"
430 elog " tracks appear in the 'Audio' menu. Dolby Digital is always recorded"
431
432 elog " The default SVDRP port is now 6419"
433 fi
434
435 if [[ previous_less_than_1_7_27=$? = 0 ]] ; then
436 elog " In vdr releases >=vdr-1.7.27 the depricated i18n handling is removed."
437 elog " This results now in a lot of plugins which do on compile any more."
438 elog " Please visit for more infos:"
439 elog " https://bugs.gentoo.org/show_bug.cgi?id=414177"
440 elog " and depended bugs"
441 fi
442
443 if [[ previous_less_than_1_7_36=$? = 0 ]] ; then
444 elog " By default VDR is now build according to the FHS."
445 elog " Gentoo VDR still uses the standard from"
446 elog " Filesystem Hierarchy Standard"
447 elog " It is supported since beginning of VDR support"
448 elog " on Gentoo"
449 elog " Finally, there are minimal changes for the user."
450 fi
451
452 elog "It is a good idea to run vdrplugin-rebuild now."
453
454 if use setup; then
455 if ! has_version media-plugins/vdr-setup || \
456 ! egrep -q '^setup$' "${ROOT}/etc/conf.d/vdr.plugins"; then
457
458 echo
459 ewarn "You have compiled media-video/vdr with USE=\"setup\""
460 ewarn "It is very important to emerge media-plugins/vdr-setup now!"
461 ewarn "and you have to loaded it in /etc/conf.d/vdr.plugins"
462 fi
463 fi
464
465 elog "To get nice symbols in OSD we recommend to install"
466 elog "\t1. emerge media-fonts/vdrsymbols-ttf"
467 elog "\t2. select font VDRSymbolsSans in Setup"
468 elog ""
469 elog "To get an idea how to proceed now, have a look at our vdr-guide:"
470 elog "\thttp://www.gentoo.org/doc/en/vdr-guide.xml"
471 }