1 |
commit: 0ad257c1fa1579b49a5e299307267a9bcf69ec73 |
2 |
Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net> |
3 |
AuthorDate: Fri Nov 8 19:59:12 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 2 15:19:28 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ad257c1 |
7 |
|
8 |
media-video/vdr: remove old ebuilds, fix QA issue |
9 |
|
10 |
QA issue: USE flag 'permashift_v1' uses reserved underscore character |
11 |
remove old ebuilds with USE flag 'permashift_v1': |
12 |
vdr-2.0.6-r1 |
13 |
vdr-2.2.0-r3 |
14 |
|
15 |
Closes: https://bugs.gentoo.org/695066 |
16 |
Closes: https://bugs.gentoo.org/700366 |
17 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
18 |
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net> |
19 |
Closes: https://github.com/gentoo/gentoo/pull/13773 |
20 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
21 |
|
22 |
media-video/vdr/Manifest | 2 - |
23 |
media-video/vdr/files/vdr-2.0.6_gentoo.patch | 68 ------ |
24 |
media-video/vdr/metadata.xml | 9 - |
25 |
media-video/vdr/vdr-2.0.6-r1.ebuild | 277 ------------------------ |
26 |
media-video/vdr/vdr-2.2.0-r3.ebuild | 303 --------------------------- |
27 |
5 files changed, 659 deletions(-) |
28 |
|
29 |
diff --git a/media-video/vdr/Manifest b/media-video/vdr/Manifest |
30 |
index e9b20f623a1..dac0f69a4e8 100644 |
31 |
--- a/media-video/vdr/Manifest |
32 |
+++ b/media-video/vdr/Manifest |
33 |
@@ -1,4 +1,2 @@ |
34 |
-DIST extpng-vdr-2.0.6-gentoo-edition-v6.patch.bz2 69472 BLAKE2B 60669e9c20b2bd573eb05733bbf9548d2e643b36693be8b15a377b38470708a71b29e2a16baf7ed378132265f814ec9d35dae749ccf6ae204cd9beb787dc8f57 SHA512 f4ecb786ec5a026fa75fcf539518e80273bf43fc325c13a380c70eb85351910efa991b3ee71ca477e597bc2b4598a18620b6cf00fc02714acfcc4e6112d84b6c |
35 |
DIST extpng-vdr-2.2.0-gentoo-edition-v1.patch.bz2 34664 BLAKE2B 81b68ebe0ef4588c3676f0b7a2c766d8d4d4f754a987b3be5868f3c6eff9158d4cea8e492ca81df535e637dbdc5baff638d1fafb4163e9d9a2d0125aba17e2e1 SHA512 16d6fbb8201f003dfe653b6a49424b794d7e697e27ad6f2383dbe17b76712ea5a3da88a676900b84d75ff7425bf3eb9084d60a89a4598758f482dc1f013f7b3e |
36 |
-DIST vdr-2.0.6.tar.bz2 839575 BLAKE2B 40de46d8465b7008bc29c7e2c1c241d4114aa3d62aa6a0acd81636133c295cd87c2fc618e725885c98f47445220e897c23188373457a96b51cf832ca417c9842 SHA512 070ebbfb85478887088567872a71744305dbf9c75de8b095a8fe46d883b0b4fe140539caeb2243715f42793a45790a127542655f549f7ea3cb71c4f9912fa07d |
37 |
DIST vdr-2.2.0.tar.bz2 922708 BLAKE2B 975e07d6d4c5bd13ee92be5d6a1826d6404b0c59e20fa2e30689b185a61e02d54782ad528e6a4f15e0d36806b30bcf48aa336d63adb3604e78056ff318e0fd2c SHA512 183f58133915c6c0fe8ec2b88becbcb2a36418210e6dcf7931053d3771d727c3581593f9eb5c9693abf39e22e728f7b41c42079cd704610c3636ec05134ea93d |
38 |
|
39 |
diff --git a/media-video/vdr/files/vdr-2.0.6_gentoo.patch b/media-video/vdr/files/vdr-2.0.6_gentoo.patch |
40 |
deleted file mode 100644 |
41 |
index 1641fc8e2ee..00000000000 |
42 |
--- a/media-video/vdr/files/vdr-2.0.6_gentoo.patch |
43 |
+++ /dev/null |
44 |
@@ -1,68 +0,0 @@ |
45 |
-diff -Naur vdr-2.0.6.orig/Makefile vdr-2.0.6/Makefile |
46 |
---- vdr-2.0.6.orig/Makefile 2014-09-22 22:17:23.000000000 +0200 |
47 |
-+++ vdr-2.0.6/Makefile 2014-09-24 15:22:43.000000000 +0200 |
48 |
-@@ -109,7 +109,7 @@ |
49 |
- VDRVERSION = $(shell sed -ne '/define VDRVERSION/s/^.*"\(.*\)".*$$/\1/p' config.h) |
50 |
- APIVERSION = $(shell sed -ne '/define APIVERSION/s/^.*"\(.*\)".*$$/\1/p' config.h) |
51 |
- |
52 |
--all: vdr i18n plugins |
53 |
-+all: vdr i18n |
54 |
- |
55 |
- # Implicit rules: |
56 |
- |
57 |
-@@ -162,7 +162,7 @@ |
58 |
- |
59 |
- PODIR = po |
60 |
- LOCALEDIR = locale |
61 |
--I18Npo = $(wildcard $(PODIR)/*.po) |
62 |
-+I18Npo = $(foreach dir,$(LINGUAS),$(wildcard $(PODIR)/$(dir)*.po)) |
63 |
- I18Nmo = $(addsuffix .mo, $(foreach file, $(I18Npo), $(basename $(file)))) |
64 |
- I18Nmsgs = $(addprefix $(LOCALEDIR)/, $(addsuffix /LC_MESSAGES/vdr.mo, $(notdir $(foreach file, $(I18Npo), $(basename $(file)))))) |
65 |
- I18Npot = $(PODIR)/vdr.pot |
66 |
-@@ -185,7 +185,7 @@ |
67 |
- |
68 |
- install-i18n: i18n |
69 |
- @mkdir -p $(DESTDIR)$(LOCDIR) |
70 |
-- cp -r $(LOCALEDIR)/* $(DESTDIR)$(LOCDIR) |
71 |
-+ @(cd $(LOCALEDIR); for linguas in $(LINGUAS); do [ "$$linguas" = "en" ] && continue; cp -r --parents $$linguas* $(DESTDIR)$(LOCDIR); done) |
72 |
- |
73 |
- # The 'include' directory (for plugins): |
74 |
- |
75 |
-@@ -247,7 +247,7 @@ |
76 |
- |
77 |
- # Install the files (note that 'install-pc' must be first!): |
78 |
- |
79 |
--install: install-pc install-bin install-dirs install-conf install-doc install-plugins install-i18n install-includes |
80 |
-+install: install-pc install-bin install-dirs install-conf install-doc install-i18n install-includes |
81 |
- |
82 |
- # VDR binary: |
83 |
- |
84 |
-@@ -259,11 +259,12 @@ |
85 |
- |
86 |
- install-dirs: |
87 |
- @mkdir -p $(DESTDIR)$(VIDEODIR) |
88 |
-- @mkdir -p $(DESTDIR)$(CONFDIR) |
89 |
-- @mkdir -p $(DESTDIR)$(CACHEDIR) |
90 |
-+# @mkdir -p $(DESTDIR)$(CONFDIR) |
91 |
-+# @mkdir -p $(DESTDIR)$(CACHEDIR) |
92 |
- @mkdir -p $(DESTDIR)$(RESDIR) |
93 |
- |
94 |
- install-conf: |
95 |
-+ @mkdir -p $(DESTDIR)$(CONFDIR) |
96 |
- @cp -pn *.conf $(DESTDIR)$(CONFDIR) |
97 |
- |
98 |
- # Documentation: |
99 |
-@@ -290,8 +291,11 @@ |
100 |
- # Includes: |
101 |
- |
102 |
- install-includes: include-dir |
103 |
-- @mkdir -p $(DESTDIR)$(INCDIR) |
104 |
-- @cp -pLR include/vdr include/libsi $(DESTDIR)$(INCDIR) |
105 |
-+# @mkdir -p $(DESTDIR)$(INCDIR) |
106 |
-+# @cp -pLR include/vdr include/libsi $(DESTDIR)$(INCDIR) |
107 |
-+ @mkdir -p $(DESTDIR)$(INCDIR)/vdr $(DESTDIR)$(INCDIR)/vdr/libsi |
108 |
-+ @cp -pLR include/vdr $(DESTDIR)$(INCDIR) |
109 |
-+ @cp -pLR include/libsi Make.config $(DESTDIR)$(INCDIR)/vdr |
110 |
- |
111 |
- # pkg-config file: |
112 |
- |
113 |
|
114 |
diff --git a/media-video/vdr/metadata.xml b/media-video/vdr/metadata.xml |
115 |
index 246bd87c200..84dcc17c309 100644 |
116 |
--- a/media-video/vdr/metadata.xml |
117 |
+++ b/media-video/vdr/metadata.xml |
118 |
@@ -16,25 +16,16 @@ |
119 |
<use> |
120 |
<flag name="alternatechannel">Use alternate channel on record</flag> |
121 |
<flag name="bidi">fribidi support, for languages, written from right to left</flag> |
122 |
- <flag name="ddepgentry">remove duplicate EPG entries</flag> |
123 |
- <flag name="dvlvidprefer">controls video-dir choice on recording</flag> |
124 |
<flag name="graphtft">support for vdr-graphtft plugin up from version 0.1.7</flag> |
125 |
<flag name="html">Install HTML documentation</flag> |
126 |
- <flag name="jumpplay">Enables automatic jumping over cut marks while watching a recording</flag> |
127 |
- <flag name="jumpingseconds">skip seconds in played records</flag> |
128 |
<flag name="kbd">enable keyboard support as remote device</flag> |
129 |
<flag name="mainmenuhooks">Allows to replace main menu entries by some special plugins (like epgsearch, extrecmenu, ...)</flag> |
130 |
<flag name="menuorg">Enables support for the <pkg>media-plugins/vdr-menuorg</pkg></flag> |
131 |
<flag name="menuselection">adds support for menu hotkeys of double digits</flag> |
132 |
<flag name="naludump">Removes NALU fill data from h.264-Streams of TS files</flag> |
133 |
<flag name="permashift">permanent timeshift by recording live TV into RAM, need plugin <pkg>media-plugins/vdr-permashift</pkg></flag> |
134 |
- <flag name="permashift_v1">permanent timeshift by recording live TV into RAM, need plugin <pkg>media-plugins/vdr-permashift</pkg></flag> |
135 |
<flag name="pinplugin">Support for <pkg>media-plugins/vdr-pin</pkg></flag> |
136 |
<flag name="resumereset">rreset resume of EOF</flag> |
137 |
- <flag name="rotor">Enable support for plugin vdr-rotor for dish-positioner.</flag> |
138 |
<flag name="ttxtsubs">support for <pkg>media-plugins/vdr-ttxtsubs</pkg></flag> |
139 |
- <flag name="vasarajanauloja">replacement for the liemikuutio patch, adds some nice must haves features</flag> |
140 |
- <flag name="wareagleicon">Replace original icon set in menu</flag> |
141 |
- <flag name="yaepg">Enables support for the vdr-yaepg plugin</flag> |
142 |
</use> |
143 |
</pkgmetadata> |
144 |
|
145 |
diff --git a/media-video/vdr/vdr-2.0.6-r1.ebuild b/media-video/vdr/vdr-2.0.6-r1.ebuild |
146 |
deleted file mode 100644 |
147 |
index 63de150c12f..00000000000 |
148 |
--- a/media-video/vdr/vdr-2.0.6-r1.ebuild |
149 |
+++ /dev/null |
150 |
@@ -1,277 +0,0 @@ |
151 |
-# Copyright 1999-2015 Gentoo Foundation |
152 |
-# Distributed under the terms of the GNU General Public License v2 |
153 |
- |
154 |
-EAPI=5 |
155 |
- |
156 |
-inherit eutils flag-o-matic multilib toolchain-funcs |
157 |
- |
158 |
-# Switches supported by extensions-patch |
159 |
-EXT_PATCH_FLAGS="alternatechannel ddepgentry dvlvidprefer graphtft |
160 |
- jumpplay jumpingseconds mainmenuhooks menuorg naludump permashift permashift_v1 |
161 |
- pinplugin rotor ttxtsubs vasarajanauloja wareagleicon yaepg" |
162 |
- |
163 |
-# names of the use-flags |
164 |
-EXT_PATCH_FLAGS_RENAMED="" |
165 |
- |
166 |
-# names ext-patch uses internally, here only used for maintainer checks |
167 |
-EXT_PATCH_FLAGS_RENAMED_EXT_NAME="" |
168 |
- |
169 |
-IUSE="bidi debug html vanilla ${EXT_PATCH_FLAGS} ${EXT_PATCH_FLAGS_RENAMED}" |
170 |
- |
171 |
-MY_PV="${PV%_p*}" |
172 |
-MY_P="${PN}-${MY_PV}" |
173 |
-S="${WORKDIR}/${MY_P}" |
174 |
- |
175 |
-EXT_P="extpng-${P}-gentoo-edition-v6" |
176 |
- |
177 |
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB" |
178 |
-HOMEPAGE="http://www.tvdr.de/" |
179 |
-SRC_URI="ftp://ftp.tvdr.de/vdr/${MY_P}.tar.bz2 |
180 |
- https://dev.gentoo.org/~hd_brummy/distfiles/${EXT_P}.patch.bz2" |
181 |
- |
182 |
-KEYWORDS="amd64 ~arm ~ppc x86" |
183 |
-SLOT="0" |
184 |
-LICENSE="GPL-2" |
185 |
- |
186 |
-REQUIRED_USE=" |
187 |
- permashift? ( !permashift_v1 ) |
188 |
- permashift_v1? ( !permashift )" |
189 |
- |
190 |
-COMMON_DEPEND="virtual/jpeg:* |
191 |
- sys-libs/libcap |
192 |
- >=media-libs/fontconfig-2.4.2 |
193 |
- >=media-libs/freetype-2" |
194 |
- |
195 |
-DEPEND="${COMMON_DEPEND} |
196 |
- >=virtual/linuxtv-dvb-headers-5.3 |
197 |
- sys-devel/gettext" |
198 |
- |
199 |
-RDEPEND="${COMMON_DEPEND} |
200 |
- dev-lang/perl |
201 |
- >=media-tv/gentoo-vdr-scripts-2.5_rc1 |
202 |
- media-fonts/corefonts |
203 |
- bidi? ( dev-libs/fribidi )" |
204 |
- |
205 |
-CONF_DIR=/etc/vdr |
206 |
-CAP_FILE=${S}/capabilities.sh |
207 |
-CAPS="# Capabilities of the vdr-executable for use by startscript etc." |
208 |
- |
209 |
-pkg_setup() { |
210 |
- use debug && append-flags -g |
211 |
- |
212 |
- PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins" |
213 |
- |
214 |
- tc-export CC CXX AR |
215 |
-} |
216 |
- |
217 |
-add_cap() { |
218 |
- local arg |
219 |
- for arg; do |
220 |
- CAPS="${CAPS}\n${arg}=1" |
221 |
- done |
222 |
-} |
223 |
- |
224 |
-enable_patch() { |
225 |
- local arg ARG_UPPER |
226 |
- for arg; do |
227 |
- ARG_UPPER=$(echo $arg|tr '[:lower:]' '[:upper:]') |
228 |
- echo "${ARG_UPPER} = 1" >> Make.config |
229 |
- |
230 |
- # codesnippet to bring the extpng defines into the vdr.pc CXXFLAGS CFLAGS |
231 |
- echo "-DUSE_${ARG_UPPER}" >> "${T}"/defines.tmp |
232 |
- cat "${T}"/defines.tmp | tr \\\012 ' ' > "${T}"/defines.IUSE |
233 |
- export DEFINES_IUSE=$( cat ${T}/defines.IUSE ) |
234 |
- done |
235 |
-} |
236 |
- |
237 |
-extensions_add_make_conf() |
238 |
-{ |
239 |
- # copy all ifdef for extensions-patch to Make.config |
240 |
- sed -e '1,/need to touch the following:/d' \ |
241 |
- -e '/need to touch the following/,/^$/d' \ |
242 |
- Make.config.template >> Make.config |
243 |
-} |
244 |
- |
245 |
-extensions_all_defines() { |
246 |
- # extract all possible settings for extensions-patch |
247 |
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \ |
248 |
- Make.config.template \ |
249 |
- | sort \ |
250 |
- | tr '[:upper:]' '[:lower:]' |
251 |
-} |
252 |
- |
253 |
-lang_po() { |
254 |
- LING_PO=$( ls ${S}/po | sed -e "s:.po::g" | cut -d_ -f1 | tr \\\012 ' ' ) |
255 |
-} |
256 |
- |
257 |
-src_prepare() { |
258 |
- # apply maintainace-patches |
259 |
- ebegin "Changing paths for gentoo" |
260 |
- |
261 |
- local DVBDIR=/usr/include |
262 |
- local i |
263 |
- for i in ${DVB_HEADER_PATH} /usr/include/v4l-dvb-hg /usr/include; do |
264 |
- [[ -d ${i} ]] || continue |
265 |
- if [[ -f ${i}/linux/dvb/dmx.h ]]; then |
266 |
- einfo "Found DVB header files in ${i}" |
267 |
- DVBDIR=${i} |
268 |
- break |
269 |
- fi |
270 |
- done |
271 |
- |
272 |
- # checking for s2api headers |
273 |
- local api_version |
274 |
- api_version=$(awk -F' ' '/define DVB_API_VERSION / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
275 |
- api_version=${api_version}*$(awk -F' ' '/define DVB_API_VERSION_MINOR / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
276 |
- |
277 |
- if [[ ${api_version:-0} -lt 5*3 ]]; then |
278 |
- eerror "DVB header files do not contain s2api support or too old for ${P}" |
279 |
- eerror "You cannot compile VDR against old dvb-header" |
280 |
- die "DVB headers too old" |
281 |
- fi |
282 |
- |
283 |
- cat > Make.config <<-EOT |
284 |
- # |
285 |
- # Generated by ebuild ${PF} |
286 |
- # |
287 |
- PREFIX = /usr |
288 |
- DVBDIR = ${DVBDIR} |
289 |
- PLUGINLIBDIR = ${PLUGIN_LIBDIR} |
290 |
- CONFDIR = ${CONF_DIR} |
291 |
- VIDEODIR = /var/vdr/video |
292 |
- LOCDIR = \$(PREFIX)/share/locale |
293 |
- INCDIR = \$(PREFIX)/include |
294 |
- |
295 |
- DEFINES += -DCONFDIR=\"\$(CONFDIR)\" |
296 |
- INCLUDES += -I\$(DVBDIR) |
297 |
- |
298 |
- # >=vdr-1.7.36-r1; parameter only used for compiletime on vdr |
299 |
- # PLUGINLIBDIR (plugin Makefile old) = LIBDIR (plugin Makefile new) |
300 |
- LIBDIR = ${PLUGIN_LIBDIR} |
301 |
- PCDIR = /usr/$(get_libdir)/pkgconfig |
302 |
- EOT |
303 |
- eend 0 |
304 |
- |
305 |
- # support languages, written from right to left |
306 |
- BUILD_PARAMS+=" BIDI=$(usex bidi 1 0)" |
307 |
- |
308 |
- epatch "${FILESDIR}/${PN}-2.0.6_gentoo.patch" |
309 |
- |
310 |
- if ! use vanilla; then |
311 |
- |
312 |
- # Now apply extensions patch |
313 |
- epatch "${WORKDIR}/${EXT_P}.patch" |
314 |
- |
315 |
- # This allows us to start even if some plugin does not exist |
316 |
- # or is not loadable. |
317 |
- enable_patch PLUGINMISSING |
318 |
- enable_patch CHANNELBIND |
319 |
- |
320 |
- if [[ -n ${VDR_MAINTAINER_MODE} ]]; then |
321 |
- einfo "Doing maintainer checks:" |
322 |
- |
323 |
- # we do not support these patches |
324 |
- # (or have them already hard enabled) |
325 |
- local IGNORE_PATCHES="pluginmissing channelbind" |
326 |
- |
327 |
- extensions_all_defines > "${T}"/new.IUSE |
328 |
- echo $EXT_PATCH_FLAGS $EXT_PATCH_FLAGS_RENAMED_EXT_NAME \ |
329 |
- $IGNORE_PATCHES | \ |
330 |
- tr ' ' '\n' |sort > "${T}"/old.IUSE |
331 |
- local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]') |
332 |
- if [[ -z ${DIFFS} ]]; then |
333 |
- einfo "EXT_PATCH_FLAGS is up to date." |
334 |
- else |
335 |
- ewarn "IUSE differences!" |
336 |
- local diff |
337 |
- for diff in $DIFFS; do |
338 |
- ewarn "$diff" |
339 |
- done |
340 |
- fi |
341 |
- fi |
342 |
- |
343 |
- ebegin "Enabling selected patches" |
344 |
- local flag |
345 |
- for flag in $EXT_PATCH_FLAGS; do |
346 |
- use $flag && enable_patch ${flag} |
347 |
- done |
348 |
- |
349 |
- eend 0 |
350 |
- |
351 |
- extensions_add_make_conf |
352 |
- |
353 |
- # add defined use-flags compile options to vdr.pc |
354 |
- sed -e "s:\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR):\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR) \$(DEFINES_IUSE):" \ |
355 |
- -i Makefile |
356 |
- |
357 |
- ebegin "Make depend" |
358 |
- emake .dependencies >/dev/null |
359 |
- eend $? "make depend failed" |
360 |
- fi |
361 |
- |
362 |
- epatch_user |
363 |
- |
364 |
- add_cap CAP_UTF8 |
365 |
- |
366 |
- add_cap CAP_IRCTRL_RUNTIME_PARAM \ |
367 |
- CAP_VFAT_RUNTIME_PARAM \ |
368 |
- CAP_CHUID \ |
369 |
- CAP_SHUTDOWN_AUTO_RETRY |
370 |
- |
371 |
- echo -e ${CAPS} > "${CAP_FILE}" |
372 |
- |
373 |
- # LINGUAS support |
374 |
- einfo "\n \t VDR supports the LINGUAS values" |
375 |
- |
376 |
- lang_po |
377 |
- |
378 |
- einfo "\t Please set one of this values in your sytem make.conf" |
379 |
- einfo "\t LINGUAS=\"${LING_PO}\"\n" |
380 |
- |
381 |
- if [[ -z ${LINGUAS} ]]; then |
382 |
- einfo "\n \t No values in LINGUAS=" |
383 |
- einfo "\t You will get only english text on OSD \n" |
384 |
- fi |
385 |
- |
386 |
- strip-linguas ${LING_PO} en |
387 |
-} |
388 |
- |
389 |
-src_install() { |
390 |
-# # trick makefile not to create a videodir by supplying it with an existing |
391 |
-# # directory |
392 |
- emake \ |
393 |
- VIDEODIR="/" \ |
394 |
- DESTDIR="${D}" install || die "emake install failed" |
395 |
- |
396 |
- keepdir "${PLUGIN_LIBDIR}" |
397 |
- |
398 |
- keepdir "${CONF_DIR}"/plugins |
399 |
- keepdir "${CONF_DIR}"/themes |
400 |
- |
401 |
- if use html; then |
402 |
- dohtml *.html |
403 |
- fi |
404 |
- |
405 |
- dodoc MANUAL INSTALL README* HISTORY CONTRIBUTORS |
406 |
- |
407 |
- insinto /usr/share/vdr |
408 |
- doins "${CAP_FILE}" |
409 |
- |
410 |
- if use alternatechannel; then |
411 |
- insinto /etc/vdr |
412 |
- doins "${FILESDIR}"/channel_alternative.conf |
413 |
- fi |
414 |
- |
415 |
- chown -R vdr:vdr "${D}/${CONF_DIR}" |
416 |
-} |
417 |
- |
418 |
-pkg_postinst() { |
419 |
- elog "It is a good idea to run vdrplugin-rebuild now." |
420 |
- |
421 |
- elog "To get nice symbols in OSD we recommend to install" |
422 |
- elog "\t1. emerge media-fonts/vdrsymbols-ttf" |
423 |
- elog "\t2. select font VDRSymbolsSans in Setup" |
424 |
- elog "" |
425 |
- elog "To get an idea how to proceed now, have a look at our vdr-guide:" |
426 |
- elog "\thttps://wiki.gentoo.org/wiki/VDR" |
427 |
-} |
428 |
|
429 |
diff --git a/media-video/vdr/vdr-2.2.0-r3.ebuild b/media-video/vdr/vdr-2.2.0-r3.ebuild |
430 |
deleted file mode 100644 |
431 |
index dfbfd553e10..00000000000 |
432 |
--- a/media-video/vdr/vdr-2.2.0-r3.ebuild |
433 |
+++ /dev/null |
434 |
@@ -1,303 +0,0 @@ |
435 |
-# Copyright 1999-2019 Gentoo Authors |
436 |
-# Distributed under the terms of the GNU General Public License v2 |
437 |
- |
438 |
-EAPI=7 |
439 |
- |
440 |
-inherit eutils flag-o-matic toolchain-funcs |
441 |
- |
442 |
-# Switches supported by extensions-patch |
443 |
-EXT_PATCH_FLAGS="alternatechannel graphtft naludump permashift_v1 pinplugin |
444 |
- mainmenuhooks menuorg menuselection resumereset ttxtsubs" |
445 |
- |
446 |
-# names of the use-flags |
447 |
-EXT_PATCH_FLAGS_RENAMED="" |
448 |
- |
449 |
-# names ext-patch uses internally, here only used for maintainer checks |
450 |
-EXT_PATCH_FLAGS_RENAMED_EXT_NAME="bidi no_kbd sdnotify" |
451 |
- |
452 |
-IUSE="bidi debug +kbd html systemd vanilla ${EXT_PATCH_FLAGS} ${EXT_PATCH_FLAGS_RENAMED}" |
453 |
- |
454 |
-MY_PV="${PV%_p*}" |
455 |
-MY_P="${PN}-${MY_PV}" |
456 |
-S="${WORKDIR}/${MY_P}" |
457 |
- |
458 |
-EXT_P="extpng-${P}-gentoo-edition-v1" |
459 |
- |
460 |
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB" |
461 |
-HOMEPAGE="http://www.tvdr.de/" |
462 |
-SRC_URI="ftp://ftp.tvdr.de/vdr/${MY_P}.tar.bz2 |
463 |
- https://dev.gentoo.org/~hd_brummy/distfiles/${EXT_P}.patch.bz2" |
464 |
- |
465 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc x86" |
466 |
-SLOT="0" |
467 |
-LICENSE="GPL-2" |
468 |
- |
469 |
-COMMON_DEPEND="virtual/jpeg:* |
470 |
- sys-libs/libcap |
471 |
- >=media-libs/fontconfig-2.4.2 |
472 |
- >=media-libs/freetype-2" |
473 |
- |
474 |
-DEPEND="${COMMON_DEPEND} |
475 |
- >=virtual/linuxtv-dvb-headers-5.3 |
476 |
- sys-devel/gettext" |
477 |
- |
478 |
-RDEPEND="${COMMON_DEPEND} |
479 |
- dev-lang/perl |
480 |
- >=media-tv/gentoo-vdr-scripts-2.7 |
481 |
- media-fonts/corefonts |
482 |
- bidi? ( dev-libs/fribidi ) |
483 |
- systemd? ( sys-apps/systemd )" |
484 |
- |
485 |
-CONF_DIR=/etc/vdr |
486 |
-CAP_FILE=${S}/capabilities.sh |
487 |
-CAPS="# Capabilities of the vdr-executable for use by startscript etc." |
488 |
- |
489 |
-pkg_setup() { |
490 |
- |
491 |
- use debug && append-flags -g |
492 |
- |
493 |
- PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins" |
494 |
- |
495 |
- tc-export CC CXX AR |
496 |
-} |
497 |
- |
498 |
-add_cap() { |
499 |
- local arg |
500 |
- for arg; do |
501 |
- CAPS="${CAPS}\n${arg}=1" |
502 |
- done |
503 |
-} |
504 |
- |
505 |
-enable_patch() { |
506 |
- local arg ARG_UPPER |
507 |
- for arg; do |
508 |
- ARG_UPPER=$(echo $arg|tr '[:lower:]' '[:upper:]') |
509 |
- echo "${ARG_UPPER} = 1" >> Make.config |
510 |
- |
511 |
- # codesnippet to bring the extpng defines into the vdr.pc CXXFLAGS CFLAGS |
512 |
- echo "-DUSE_${ARG_UPPER}" >> "${T}"/defines.tmp |
513 |
- cat "${T}"/defines.tmp | tr \\\012 ' ' > "${T}"/defines.IUSE |
514 |
- export DEFINES_IUSE=$( cat ${T}/defines.IUSE ) |
515 |
- done |
516 |
-} |
517 |
- |
518 |
-extensions_add_make_conf() |
519 |
-{ |
520 |
- # copy all ifdef for extensions-patch to Make.config |
521 |
- sed -e '1,/need to touch the following:/d' \ |
522 |
- -e '/need to touch the following/,/^$/d' \ |
523 |
- Make.config.template >> Make.config |
524 |
-} |
525 |
- |
526 |
-extensions_all_defines() { |
527 |
- # extract all possible settings for extensions-patch |
528 |
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \ |
529 |
- Make.config.template \ |
530 |
- | sort \ |
531 |
- | tr '[:upper:]' '[:lower:]' |
532 |
-} |
533 |
- |
534 |
-lang_po() { |
535 |
- LING_PO=$( ls ${S}/po | sed -e "s:.po::g" | cut -d_ -f1 | tr \\\012 ' ' ) |
536 |
-} |
537 |
- |
538 |
-src_configure() { |
539 |
- # support languages, written from right to left |
540 |
- export "BIDI=$(usex bidi 1 0)" |
541 |
- # systemd notification support |
542 |
- export "SDNOTIFY=$(usex systemd 1 0)" |
543 |
- # with/without keyboard |
544 |
- export "USE_KBD=$(usex kbd 1 0)" |
545 |
-} |
546 |
- |
547 |
-src_prepare() { |
548 |
- # apply maintainace-patches |
549 |
- ebegin "Changing paths for gentoo" |
550 |
- |
551 |
- local DVBDIR=/usr/include |
552 |
- local i |
553 |
- for i in ${DVB_HEADER_PATH} /usr/include/v4l-dvb-hg /usr/include; do |
554 |
- [[ -d ${i} ]] || continue |
555 |
- if [[ -f ${i}/linux/dvb/dmx.h ]]; then |
556 |
- einfo "Found DVB header files in ${i}" |
557 |
- DVBDIR=${i} |
558 |
- break |
559 |
- fi |
560 |
- done |
561 |
- |
562 |
- # checking for s2api headers |
563 |
- local api_version |
564 |
- api_version=$(awk -F' ' '/define DVB_API_VERSION / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
565 |
- api_version=${api_version}*$(awk -F' ' '/define DVB_API_VERSION_MINOR / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
566 |
- |
567 |
- if [[ ${api_version:-0} -lt 5*3 ]]; then |
568 |
- eerror "DVB header files do not contain s2api support or too old for ${P}" |
569 |
- eerror "You cannot compile VDR against old dvb-header" |
570 |
- die "DVB headers too old" |
571 |
- fi |
572 |
- |
573 |
- cat > Make.config <<-EOT |
574 |
- # |
575 |
- # Generated by ebuild ${PF} |
576 |
- # |
577 |
- PREFIX = /usr |
578 |
- DVBDIR = ${DVBDIR} |
579 |
- PLUGINLIBDIR = ${PLUGIN_LIBDIR} |
580 |
- CONFDIR = ${CONF_DIR} |
581 |
- VIDEODIR = /var/vdr/video |
582 |
- LOCDIR = \$(PREFIX)/share/locale |
583 |
- INCDIR = \$(PREFIX)/include |
584 |
- |
585 |
- DEFINES += -DCONFDIR=\"\$(CONFDIR)\" |
586 |
- INCLUDES += -I\$(DVBDIR) |
587 |
- |
588 |
- # >=vdr-1.7.36-r1; parameter only used for compiletime on vdr |
589 |
- # PLUGINLIBDIR (plugin Makefile old) = LIBDIR (plugin Makefile new) |
590 |
- LIBDIR = ${PLUGIN_LIBDIR} |
591 |
- PCDIR = /usr/$(get_libdir)/pkgconfig |
592 |
- |
593 |
- EOT |
594 |
- eend 0 |
595 |
- |
596 |
- # wrt bug 586070 |
597 |
- if has_version ">=sys-apps/systemd-230"; then |
598 |
- sed -e "s:libsystemd-daemon:libsystemd:g" -i Makefile || die "sed libsystemd failed" |
599 |
- fi |
600 |
- |
601 |
- if ! use vanilla; then |
602 |
- |
603 |
- # Now apply extensions patch |
604 |
- eapply "${WORKDIR}/${EXT_P}.patch" |
605 |
- |
606 |
- # This allows us to start even if some plugin does not exist |
607 |
- # or is not loadable. |
608 |
- enable_patch PLUGINMISSING |
609 |
- |
610 |
- if [[ -n ${VDR_MAINTAINER_MODE} ]]; then |
611 |
- einfo "Doing maintainer checks:" |
612 |
- |
613 |
- # we do not support these patches |
614 |
- # (or have them already hard enabled) |
615 |
- local IGNORE_PATCHES="pluginmissing" |
616 |
- |
617 |
- extensions_all_defines > "${T}"/new.IUSE |
618 |
- echo $EXT_PATCH_FLAGS $EXT_PATCH_FLAGS_RENAMED_EXT_NAME \ |
619 |
- $IGNORE_PATCHES | \ |
620 |
- tr ' ' '\n' |sort > "${T}"/old.IUSE |
621 |
- local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]') |
622 |
- if [[ -z ${DIFFS} ]]; then |
623 |
- einfo "EXT_PATCH_FLAGS are up to date." |
624 |
- else |
625 |
- ewarn "IUSE differences!" |
626 |
- local diff |
627 |
- for diff in $DIFFS; do |
628 |
- ewarn "$diff" |
629 |
- done |
630 |
- fi |
631 |
- fi |
632 |
- |
633 |
- ebegin "Enabling selected patches" |
634 |
- local flag |
635 |
- for flag in $EXT_PATCH_FLAGS; do |
636 |
- use $flag && enable_patch ${flag} |
637 |
- done |
638 |
- |
639 |
- eend 0 |
640 |
- |
641 |
- extensions_add_make_conf |
642 |
- |
643 |
- # add defined use-flags compile options to vdr.pc |
644 |
- sed -e "s:\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR):\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR) \$(DEFINES_IUSE):" \ |
645 |
- -i Makefile |
646 |
- |
647 |
- ebegin "Make depend" |
648 |
- emake .dependencies >/dev/null |
649 |
- eend $? "make depend failed" |
650 |
- |
651 |
- eapply "${FILESDIR}/${P}_gcc7extpng.patch" |
652 |
- fi |
653 |
- |
654 |
- eapply "${FILESDIR}/${P}_gentoo.patch" |
655 |
- eapply "${FILESDIR}/${P}_unsignedtosigned.patch" |
656 |
- eapply "${FILESDIR}/${P}_glibc-2.24.patch" |
657 |
- eapply "${FILESDIR}/${P}-jpeg-9c.patch" |
658 |
- |
659 |
- # fix some makefile issues |
660 |
- sed -e "s:ifndef NO_KBD:ifeq (\$(USE_KBD),1):" \ |
661 |
- -e "s:ifdef BIDI:ifeq (\$(BIDI),1):" \ |
662 |
- -e "s:ifdef SDNOTIFY:ifeq (\$(SDNOTIFY),1):" \ |
663 |
- -i "${S}"/Makefile |
664 |
- |
665 |
- eapply_user |
666 |
- |
667 |
- add_cap CAP_UTF8 |
668 |
- |
669 |
- add_cap CAP_IRCTRL_RUNTIME_PARAM \ |
670 |
- CAP_VFAT_RUNTIME_PARAM \ |
671 |
- CAP_CHUID \ |
672 |
- CAP_SHUTDOWN_AUTO_RETRY |
673 |
- |
674 |
- echo -e ${CAPS} > "${CAP_FILE}" |
675 |
- |
676 |
- # LINGUAS support |
677 |
- einfo "\n \t VDR supports the LINGUAS values" |
678 |
- |
679 |
- lang_po |
680 |
- |
681 |
- einfo "\t Please set one of this values in your sytem make.conf" |
682 |
- einfo "\t LINGUAS=\"${LING_PO}\"\n" |
683 |
- |
684 |
- if [[ -z ${LINGUAS} ]]; then |
685 |
- einfo "\n \t No values in LINGUAS=" |
686 |
- einfo "\t You will get only english text on OSD \n" |
687 |
- fi |
688 |
- |
689 |
- strip-linguas ${LING_PO} en |
690 |
-} |
691 |
- |
692 |
-src_install() { |
693 |
- # trick makefile not to create a videodir by supplying it with an existing |
694 |
- # directory |
695 |
- emake install \ |
696 |
- VIDEODIR="/" \ |
697 |
- DESTDIR="${D}" install |
698 |
- |
699 |
- keepdir "${PLUGIN_LIBDIR}" |
700 |
- |
701 |
- # backup for plugins they don't be able to create this dir |
702 |
- keepdir "${CONF_DIR}"/plugins |
703 |
- |
704 |
- if use html; then |
705 |
- local HTML_DOCS=( *.html ) |
706 |
- fi |
707 |
- |
708 |
- local DOCS=( MANUAL INSTALL README* HISTORY CONTRIBUTORS ) |
709 |
- |
710 |
- einstalldocs |
711 |
- |
712 |
- insinto /usr/share/vdr |
713 |
- doins "${CAP_FILE}" |
714 |
- |
715 |
- if use alternatechannel; then |
716 |
- insinto /etc/vdr |
717 |
- doins "${FILESDIR}"/channel_alternative.conf |
718 |
- fi |
719 |
- |
720 |
- chown -R vdr:vdr "${D}/${CONF_DIR}" |
721 |
-} |
722 |
- |
723 |
-pkg_postinst() { |
724 |
- |
725 |
- elog "\n\t---- 15 YEARS ANNIVERSARY EDITON ----\n" |
726 |
- elog "\tA lot of thanks to Klaus Schmidinger" |
727 |
- elog "\tfor this nice piece of Software...\n" |
728 |
- |
729 |
- elog "It is a good idea to run vdrplugin-rebuild now." |
730 |
- |
731 |
- elog "To get nice symbols in OSD we recommend to install" |
732 |
- elog "\t1. emerge media-fonts/vdrsymbols-ttf" |
733 |
- elog "\t2. select font VDRSymbolsSans in Setup" |
734 |
- elog "" |
735 |
- elog "To get an idea how to proceed now, have a look at our vdr-guide:" |
736 |
- elog "\thttps://wiki.gentoo.org/wiki/VDR" |
737 |
-} |