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