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