1 |
hd_brummy 14/10/01 16:02:22 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: vdr-2.0.6-r1.ebuild |
5 |
Removed: vdr-2.0.6.ebuild |
6 |
Log: |
7 |
naludump patch fixed, reported by M.Dummer |
8 |
|
9 |
(Portage version: 2.2.14_rc1/cvs/Linux x86_64, signed Manifest commit with key 34C2808A) |
10 |
|
11 |
Revision Changes Path |
12 |
1.183 media-video/vdr/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vdr/ChangeLog?rev=1.183&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vdr/ChangeLog?rev=1.183&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vdr/ChangeLog?r1=1.182&r2=1.183 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/media-video/vdr/ChangeLog,v |
21 |
retrieving revision 1.182 |
22 |
retrieving revision 1.183 |
23 |
diff -u -r1.182 -r1.183 |
24 |
--- ChangeLog 27 Sep 2014 00:25:12 -0000 1.182 |
25 |
+++ ChangeLog 1 Oct 2014 16:02:21 -0000 1.183 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for media-video/vdr |
28 |
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/ChangeLog,v 1.182 2014/09/27 00:25:12 hd_brummy Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/ChangeLog,v 1.183 2014/10/01 16:02:21 hd_brummy Exp $ |
31 |
+ |
32 |
+*vdr-2.0.6-r1 (01 Oct 2014) |
33 |
+ |
34 |
+ 01 Oct 2014; Joerg Bornkessel <hd_brummy@g.o> -vdr-2.0.6.ebuild, |
35 |
+ +vdr-2.0.6-r1.ebuild: |
36 |
+ naludump patch fixed, reported by M.Dummer |
37 |
|
38 |
27 Sep 2014; Joerg Bornkessel <hd_brummy@g.o> vdr-2.0.6.ebuild: |
39 |
fixed typo in patchset |
40 |
|
41 |
|
42 |
|
43 |
1.1 media-video/vdr/vdr-2.0.6-r1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vdr/vdr-2.0.6-r1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-video/vdr/vdr-2.0.6-r1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: vdr-2.0.6-r1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2014 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/media-video/vdr/vdr-2.0.6-r1.ebuild,v 1.1 2014/10/01 16:02:21 hd_brummy Exp $ |
53 |
|
54 |
EAPI=5 |
55 |
|
56 |
inherit eutils flag-o-matic multilib toolchain-funcs |
57 |
|
58 |
# Switches supported by extensions-patch |
59 |
EXT_PATCH_FLAGS="alternatechannel ddepgentry dvlvidprefer graphtft |
60 |
jumpplay jumpingseconds mainmenuhooks menuorg naludump permashift permashift_v1 |
61 |
pinplugin rotor ttxtsubs vasarajanauloja wareagleicon yaepg" |
62 |
|
63 |
# names of the use-flags |
64 |
EXT_PATCH_FLAGS_RENAMED="" |
65 |
|
66 |
# names ext-patch uses internally, here only used for maintainer checks |
67 |
EXT_PATCH_FLAGS_RENAMED_EXT_NAME="" |
68 |
|
69 |
IUSE="bidi debug html vanilla ${EXT_PATCH_FLAGS} ${EXT_PATCH_FLAGS_RENAMED}" |
70 |
|
71 |
MY_PV="${PV%_p*}" |
72 |
MY_P="${PN}-${MY_PV}" |
73 |
S="${WORKDIR}/${MY_P}" |
74 |
|
75 |
EXT_P="extpng-${P}-gentoo-edition-v6" |
76 |
|
77 |
DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB" |
78 |
HOMEPAGE="http://www.tvdr.de/" |
79 |
SRC_URI="ftp://ftp.tvdr.de/vdr/${MY_P}.tar.bz2 |
80 |
http://dev.gentoo.org/~hd_brummy/distfiles/${EXT_P}.patch.bz2" |
81 |
|
82 |
KEYWORDS="~arm ~amd64 ~ppc ~x86" |
83 |
SLOT="0" |
84 |
LICENSE="GPL-2" |
85 |
|
86 |
REQUIRED_USE=" |
87 |
permashift? ( !permashift_v1 ) |
88 |
permashift_v1? ( !permashift )" |
89 |
|
90 |
COMMON_DEPEND="virtual/jpeg |
91 |
sys-libs/libcap |
92 |
>=media-libs/fontconfig-2.4.2 |
93 |
>=media-libs/freetype-2" |
94 |
|
95 |
DEPEND="${COMMON_DEPEND} |
96 |
>=virtual/linuxtv-dvb-headers-5.3 |
97 |
sys-devel/gettext" |
98 |
|
99 |
RDEPEND="${COMMON_DEPEND} |
100 |
dev-lang/perl |
101 |
>=media-tv/gentoo-vdr-scripts-2.5_rc1 |
102 |
media-fonts/corefonts |
103 |
bidi? ( dev-libs/fribidi )" |
104 |
|
105 |
CONF_DIR=/etc/vdr |
106 |
CAP_FILE=${S}/capabilities.sh |
107 |
CAPS="# Capabilities of the vdr-executable for use by startscript etc." |
108 |
|
109 |
pkg_setup() { |
110 |
use debug && append-flags -g |
111 |
|
112 |
PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins" |
113 |
|
114 |
tc-export CC CXX AR |
115 |
} |
116 |
|
117 |
add_cap() { |
118 |
local arg |
119 |
for arg; do |
120 |
CAPS="${CAPS}\n${arg}=1" |
121 |
done |
122 |
} |
123 |
|
124 |
enable_patch() { |
125 |
local arg ARG_UPPER |
126 |
for arg; do |
127 |
ARG_UPPER=$(echo $arg|tr '[:lower:]' '[:upper:]') |
128 |
echo "${ARG_UPPER} = 1" >> Make.config |
129 |
|
130 |
# codesnippet to bring the extpng defines into the vdr.pc CXXFLAGS CFLAGS |
131 |
echo "-DUSE_${ARG_UPPER}" >> "${T}"/defines.tmp |
132 |
cat "${T}"/defines.tmp | tr \\\012 ' ' > "${T}"/defines.IUSE |
133 |
export DEFINES_IUSE=$( cat ${T}/defines.IUSE ) |
134 |
done |
135 |
} |
136 |
|
137 |
extensions_add_make_conf() |
138 |
{ |
139 |
# copy all ifdef for extensions-patch to Make.config |
140 |
sed -e '1,/need to touch the following:/d' \ |
141 |
-e '/need to touch the following/,/^$/d' \ |
142 |
Make.config.template >> Make.config |
143 |
} |
144 |
|
145 |
extensions_all_defines() { |
146 |
# extract all possible settings for extensions-patch |
147 |
sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \ |
148 |
Make.config.template \ |
149 |
| sort \ |
150 |
| tr '[:upper:]' '[:lower:]' |
151 |
} |
152 |
|
153 |
lang_po() { |
154 |
LING_PO=$( ls ${S}/po | sed -e "s:.po::g" | cut -d_ -f1 | tr \\\012 ' ' ) |
155 |
} |
156 |
|
157 |
src_prepare() { |
158 |
# apply maintainace-patches |
159 |
ebegin "Changing paths for gentoo" |
160 |
|
161 |
local DVBDIR=/usr/include |
162 |
local i |
163 |
for i in ${DVB_HEADER_PATH} /usr/include/v4l-dvb-hg /usr/include; do |
164 |
[[ -d ${i} ]] || continue |
165 |
if [[ -f ${i}/linux/dvb/dmx.h ]]; then |
166 |
einfo "Found DVB header files in ${i}" |
167 |
DVBDIR=${i} |
168 |
break |
169 |
fi |
170 |
done |
171 |
|
172 |
# checking for s2api headers |
173 |
local api_version |
174 |
api_version=$(awk -F' ' '/define DVB_API_VERSION / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
175 |
api_version=${api_version}*$(awk -F' ' '/define DVB_API_VERSION_MINOR / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
176 |
|
177 |
if [[ ${api_version:-0} -lt 5*3 ]]; then |
178 |
eerror "DVB header files do not contain s2api support or too old for ${P}" |
179 |
eerror "You cannot compile VDR against old dvb-header" |
180 |
die "DVB headers too old" |
181 |
fi |
182 |
|
183 |
cat > Make.config <<-EOT |
184 |
# |
185 |
# Generated by ebuild ${PF} |
186 |
# |
187 |
PREFIX = /usr |
188 |
DVBDIR = ${DVBDIR} |
189 |
PLUGINLIBDIR = ${PLUGIN_LIBDIR} |
190 |
CONFDIR = ${CONF_DIR} |
191 |
VIDEODIR = /var/vdr/video |
192 |
LOCDIR = \$(PREFIX)/share/locale |
193 |
INCDIR = \$(PREFIX)/include |
194 |
|
195 |
DEFINES += -DCONFDIR=\"\$(CONFDIR)\" |
196 |
INCLUDES += -I\$(DVBDIR) |
197 |
|
198 |
# >=vdr-1.7.36-r1; parameter only used for compiletime on vdr |
199 |
# PLUGINLIBDIR (plugin Makefile old) = LIBDIR (plugin Makefile new) |
200 |
LIBDIR = ${PLUGIN_LIBDIR} |
201 |
PCDIR = /usr/$(get_libdir)/pkgconfig |
202 |
EOT |
203 |
eend 0 |
204 |
|
205 |
# support languages, written from right to left |
206 |
BUILD_PARAMS+=" BIDI=$(usex bidi 1 0)" |
207 |
|
208 |
epatch "${FILESDIR}/${PN}-2.0.6_gentoo.patch" |
209 |
|
210 |
if ! use vanilla; then |
211 |
|
212 |
# Now apply extensions patch |
213 |
epatch "${WORKDIR}/${EXT_P}.patch" |
214 |
|
215 |
# This allows us to start even if some plugin does not exist |
216 |
# or is not loadable. |
217 |
enable_patch PLUGINMISSING |
218 |
enable_patch CHANNELBIND |
219 |
|
220 |
if [[ -n ${VDR_MAINTAINER_MODE} ]]; then |
221 |
einfo "Doing maintainer checks:" |
222 |
|
223 |
# we do not support these patches |
224 |
# (or have them already hard enabled) |
225 |
local IGNORE_PATCHES="pluginmissing channelbind" |
226 |
|
227 |
extensions_all_defines > "${T}"/new.IUSE |
228 |
echo $EXT_PATCH_FLAGS $EXT_PATCH_FLAGS_RENAMED_EXT_NAME \ |
229 |
$IGNORE_PATCHES | \ |
230 |
tr ' ' '\n' |sort > "${T}"/old.IUSE |
231 |
local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]') |
232 |
if [[ -z ${DIFFS} ]]; then |
233 |
einfo "EXT_PATCH_FLAGS is up to date." |
234 |
else |
235 |
ewarn "IUSE differences!" |
236 |
local diff |
237 |
for diff in $DIFFS; do |
238 |
ewarn "$diff" |
239 |
done |
240 |
fi |
241 |
fi |
242 |
|
243 |
ebegin "Enabling selected patches" |
244 |
local flag |
245 |
for flag in $EXT_PATCH_FLAGS; do |
246 |
use $flag && enable_patch ${flag} |
247 |
done |
248 |
|
249 |
eend 0 |
250 |
|
251 |
extensions_add_make_conf |
252 |
|
253 |
# add defined use-flags compile options to vdr.pc |
254 |
sed -e "s:\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR):\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR) \$(DEFINES_IUSE):" \ |
255 |
-i Makefile |
256 |
|
257 |
ebegin "Make depend" |
258 |
emake .dependencies >/dev/null |
259 |
eend $? "make depend failed" |
260 |
fi |
261 |
|
262 |
epatch_user |
263 |
|
264 |
add_cap CAP_UTF8 |
265 |
|
266 |
add_cap CAP_IRCTRL_RUNTIME_PARAM \ |
267 |
CAP_VFAT_RUNTIME_PARAM \ |
268 |
CAP_CHUID \ |
269 |
CAP_SHUTDOWN_AUTO_RETRY |
270 |
|
271 |
echo -e ${CAPS} > "${CAP_FILE}" |
272 |
|
273 |
# LINGUAS support |
274 |
einfo "\n \t VDR supports the LINGUAS values" |
275 |
|
276 |
lang_po |
277 |
|
278 |
einfo "\t Please set one of this values in your sytem make.conf" |
279 |
einfo "\t LINGUAS=\"${LING_PO}\"\n" |
280 |
|
281 |
if [[ -z ${LINGUAS} ]]; then |
282 |
einfo "\n \t No values in LINGUAS=" |
283 |
einfo "\t You will get only english text on OSD \n" |
284 |
fi |
285 |
|
286 |
strip-linguas ${LING_PO} en |
287 |
} |
288 |
|
289 |
src_install() { |
290 |
# # trick makefile not to create a videodir by supplying it with an existing |
291 |
# # directory |
292 |
emake \ |
293 |
VIDEODIR="/" \ |
294 |
DESTDIR="${D}" install || die "emake install failed" |
295 |
|
296 |
keepdir "${PLUGIN_LIBDIR}" |
297 |
|
298 |
keepdir "${CONF_DIR}"/plugins |
299 |
keepdir "${CONF_DIR}"/themes |
300 |
|
301 |
if use html; then |
302 |
dohtml *.html |
303 |
fi |
304 |
|
305 |
dodoc MANUAL INSTALL README* HISTORY CONTRIBUTORS |
306 |
|
307 |
insinto /usr/share/vdr |
308 |
doins "${CAP_FILE}" |
309 |
|
310 |
if use alternatechannel; then |
311 |
insinto /etc/vdr |
312 |
doins "${FILESDIR}"/channel_alternative.conf |
313 |
fi |
314 |
|
315 |
chown -R vdr:vdr "${D}/${CONF_DIR}" |
316 |
} |
317 |
|
318 |
pkg_postinst() { |
319 |
elog "It is a good idea to run vdrplugin-rebuild now." |
320 |
|
321 |
elog "To get nice symbols in OSD we recommend to install" |
322 |
elog "\t1. emerge media-fonts/vdrsymbols-ttf" |
323 |
elog "\t2. select font VDRSymbolsSans in Setup" |
324 |
elog "" |
325 |
elog "To get an idea how to proceed now, have a look at our vdr-guide:" |
326 |
elog "\thttp://www.gentoo.org/doc/en/vdr-guide.xml" |
327 |
} |