1 |
commit: 254ca62f09e08d60eac5cc4b91994fbc947efe92 |
2 |
Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 3 19:34:48 2020 +0000 |
4 |
Commit: Jörg Bornkessel <hd_brummy <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 3 19:34:48 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=254ca62f |
7 |
|
8 |
media-video/vdr: old buggy version removed |
9 |
|
10 |
Package-Manager: Portage-2.3.90, Repoman-2.3.20 |
11 |
Signed-off-by: Joerg Bornkessel <hd_brummy <AT> gentoo.org> |
12 |
|
13 |
media-video/vdr/vdr-2.2.0-r5.ebuild | 301 ------------------------------------ |
14 |
1 file changed, 301 deletions(-) |
15 |
|
16 |
diff --git a/media-video/vdr/vdr-2.2.0-r5.ebuild b/media-video/vdr/vdr-2.2.0-r5.ebuild |
17 |
deleted file mode 100644 |
18 |
index 472f17daa0a..00000000000 |
19 |
--- a/media-video/vdr/vdr-2.2.0-r5.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,301 +0,0 @@ |
22 |
-# Copyright 2020 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-inherit eutils flag-o-matic toolchain-funcs |
28 |
- |
29 |
-# Switches supported by extensions-patch |
30 |
-EXT_PATCH_FLAGS="alternatechannel graphtft naludump permashift pinplugin |
31 |
- mainmenuhooks menuorg menuselection resumereset ttxtsubs" |
32 |
- |
33 |
-# names of the use-flags |
34 |
-EXT_PATCH_FLAGS_RENAMED="" |
35 |
- |
36 |
-# names ext-patch uses internally, here only used for maintainer checks |
37 |
-EXT_PATCH_FLAGS_RENAMED_EXT_NAME="bidi no_kbd sdnotify" |
38 |
- |
39 |
-MY_PV="${PV%_p*}" |
40 |
-MY_P="${PN}-${MY_PV}" |
41 |
-S="${WORKDIR}/${MY_P}" |
42 |
- |
43 |
-EXT_P="extpng-${P}-gentoo-edition-v1" |
44 |
- |
45 |
-DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB" |
46 |
-HOMEPAGE="http://www.tvdr.de/" |
47 |
-SRC_URI="ftp://ftp.tvdr.de/vdr/${MY_P}.tar.bz2 |
48 |
- mirror://gentoo/${EXT_P}.patch.bz2" |
49 |
- |
50 |
-LICENSE="GPL-2+" |
51 |
-SLOT="0" |
52 |
-KEYWORDS="amd64 ~arm ~arm64 ~ppc x86" |
53 |
-IUSE="bidi debug keyboard html systemd vanilla ${EXT_PATCH_FLAGS} ${EXT_PATCH_FLAGS_RENAMED}" |
54 |
- |
55 |
-COMMON_DEPEND=" |
56 |
- virtual/jpeg:* |
57 |
- sys-libs/libcap |
58 |
- >=media-libs/fontconfig-2.4.2 |
59 |
- >=media-libs/freetype-2" |
60 |
-DEPEND="${COMMON_DEPEND} |
61 |
- >=virtual/linuxtv-dvb-headers-5.3" |
62 |
-RDEPEND="${COMMON_DEPEND} |
63 |
- dev-lang/perl |
64 |
- >=media-tv/gentoo-vdr-scripts-2.7 |
65 |
- media-fonts/corefonts |
66 |
- bidi? ( dev-libs/fribidi ) |
67 |
- systemd? ( sys-apps/systemd )" |
68 |
-BDEPEND="sys-devel/gettext" |
69 |
- |
70 |
-CONF_DIR="/etc/vdr" |
71 |
-CAP_FILE="${S}/capabilities.sh" |
72 |
-CAPS="# Capabilities of the vdr-executable for use by startscript etc." |
73 |
- |
74 |
-pkg_setup() { |
75 |
- use debug && append-flags -g |
76 |
- |
77 |
- PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins" |
78 |
- |
79 |
- tc-export CC CXX AR |
80 |
-} |
81 |
- |
82 |
-add_cap() { |
83 |
- local arg |
84 |
- for arg; do |
85 |
- CAPS="${CAPS}\n${arg}=1" |
86 |
- done |
87 |
-} |
88 |
- |
89 |
-enable_patch() { |
90 |
- local arg ARG_UPPER |
91 |
- for arg; do |
92 |
- ARG_UPPER=$(echo $arg | tr '[:lower:]' '[:upper:]') |
93 |
- echo "${ARG_UPPER} = 1" >> Make.config || die "cannot write to Make.config" |
94 |
- |
95 |
- # codesnippet to bring the extpng defines into the vdr.pc CXXFLAGS CFLAGS |
96 |
- echo "-DUSE_${ARG_UPPER}" >> "${T}"/defines.tmp || die "cannot write to defines.tmp" |
97 |
- cat "${T}"/defines.tmp | tr \\\012 ' ' > "${T}"/defines.IUSE || die "cannot write to defines.tmp" |
98 |
- export DEFINES_IUSE=$( cat ${T}/defines.IUSE ) |
99 |
- done |
100 |
-} |
101 |
- |
102 |
-extensions_add_make_conf() |
103 |
-{ |
104 |
- # copy all ifdef for extensions-patch to Make.config |
105 |
- sed -e '1,/need to touch the following:/d' \ |
106 |
- -e '/need to touch the following/,/^$/d' \ |
107 |
- Make.config.template >> Make.config || die "cannot write to Make.config" |
108 |
-} |
109 |
- |
110 |
-extensions_all_defines() { |
111 |
- # extract all possible settings for extensions-patch |
112 |
- sed -e '/^#\?[A-Z].*= 1/!d' -e 's/^#\?//' -e 's/ .*//' \ |
113 |
- Make.config.template \ |
114 |
- | sort \ |
115 |
- | tr '[:upper:]' '[:lower:]' || die "error in function extensions_all_defines" |
116 |
-} |
117 |
- |
118 |
-lang_po() { |
119 |
- LING_PO=$( ls ${S}/po | sed -e "s:.po::g" | cut -d_ -f1 | tr \\\012 ' ' ) |
120 |
-} |
121 |
- |
122 |
-src_configure() { |
123 |
- # support languages, written from right to left |
124 |
- export "BIDI=$(usex bidi 1 0)" |
125 |
- # systemd notification support |
126 |
- export "SDNOTIFY=$(usex systemd 1 0)" |
127 |
- # with/without keyboard |
128 |
- export "USE_KBD=$(usex keyboard 1 0)" |
129 |
-} |
130 |
- |
131 |
-src_prepare() { |
132 |
- # apply maintenance-patches |
133 |
- ebegin "Changing paths for gentoo" |
134 |
- |
135 |
- local DVBDIR="/usr/include" |
136 |
- local i |
137 |
- for i in ${DVB_HEADER_PATH} /usr/include/v4l-dvb-hg /usr/include; do |
138 |
- [[ -d ${i} ]] || continue |
139 |
- if [[ -f ${i}/linux/dvb/dmx.h ]]; then |
140 |
- einfo "Found DVB header files in ${i}" |
141 |
- DVBDIR="${i}" |
142 |
- break |
143 |
- fi |
144 |
- done |
145 |
- |
146 |
- # checking for s2api headers |
147 |
- local api_version |
148 |
- api_version=$(awk -F' ' '/define DVB_API_VERSION / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
149 |
- api_version=${api_version}*$(awk -F' ' '/define DVB_API_VERSION_MINOR / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
150 |
- |
151 |
- if [[ ${api_version:-0} -lt 5*3 ]]; then |
152 |
- eerror "DVB header files do not contain s2api support or too old for ${P}" |
153 |
- eerror "You cannot compile VDR against old dvb-header" |
154 |
- die "DVB headers too old" |
155 |
- fi |
156 |
- |
157 |
- cat > Make.config <<-EOT || die "cannot write to Make.config" |
158 |
- # |
159 |
- # Generated by ebuild ${PF} |
160 |
- # |
161 |
- PREFIX = /usr |
162 |
- DVBDIR = ${DVBDIR} |
163 |
- PLUGINLIBDIR = ${PLUGIN_LIBDIR} |
164 |
- CONFDIR = ${CONF_DIR} |
165 |
- VIDEODIR = /var/vdr/video |
166 |
- LOCDIR = \$(PREFIX)/share/locale |
167 |
- INCDIR = \$(PREFIX)/include |
168 |
- |
169 |
- DEFINES += -DCONFDIR=\"\$(CONFDIR)\" |
170 |
- INCLUDES += -I\$(DVBDIR) |
171 |
- |
172 |
- # >=vdr-1.7.36-r1; parameter only used for compiletime on vdr |
173 |
- # PLUGINLIBDIR (plugin Makefile old) = LIBDIR (plugin Makefile new) |
174 |
- LIBDIR = ${PLUGIN_LIBDIR} |
175 |
- PCDIR = /usr/$(get_libdir)/pkgconfig |
176 |
- |
177 |
- EOT |
178 |
- eend 0 |
179 |
- |
180 |
- # wrt bug 586070 |
181 |
- if has_version ">=sys-apps/systemd-230"; then |
182 |
- sed -e "s:libsystemd-daemon:libsystemd:g" -i Makefile || die "sed libsystemd failed" |
183 |
- fi |
184 |
- |
185 |
- if ! use vanilla; then |
186 |
- |
187 |
- # Now apply extensions patch |
188 |
- eapply "${WORKDIR}/${EXT_P}.patch" |
189 |
- sed -e 's/PERMASHIFT_V1/PERMASHIFT/g' -i "${S}"/*.[ch] "${S}"/Make.config* || die "sed failed" |
190 |
- |
191 |
- # This allows us to start even if some plugin does not exist |
192 |
- # or is not loadable. |
193 |
- enable_patch PLUGINMISSING |
194 |
- |
195 |
- if [[ -n ${VDR_MAINTAINER_MODE} ]]; then |
196 |
- einfo "Doing maintainer checks:" |
197 |
- |
198 |
- # we do not support these patches |
199 |
- # (or have them already hard enabled) |
200 |
- local IGNORE_PATCHES="pluginmissing" |
201 |
- |
202 |
- extensions_all_defines > "${T}"/new.IUSE || die "cannot write to new.IUSE" |
203 |
- echo $EXT_PATCH_FLAGS $EXT_PATCH_FLAGS_RENAMED_EXT_NAME \ |
204 |
- $IGNORE_PATCHES | \ |
205 |
- tr ' ' '\n' |sort > "${T}"/old.IUSE || die "cannot write to old.IUSE" |
206 |
- local DIFFS=$(diff -u "${T}"/old.IUSE "${T}"/new.IUSE|grep '^[+-][^+-]') |
207 |
- if [[ -z ${DIFFS} ]]; then |
208 |
- einfo "EXT_PATCH_FLAGS are up to date." |
209 |
- else |
210 |
- ewarn "IUSE differences!" |
211 |
- local diff |
212 |
- for diff in $DIFFS; do |
213 |
- ewarn "$diff" |
214 |
- done |
215 |
- fi |
216 |
- fi |
217 |
- |
218 |
- ebegin "Enabling selected patches" |
219 |
- local flag |
220 |
- for flag in $EXT_PATCH_FLAGS; do |
221 |
- use $flag && enable_patch ${flag} |
222 |
- done |
223 |
- |
224 |
- eend 0 |
225 |
- |
226 |
- extensions_add_make_conf |
227 |
- |
228 |
- # add defined use-flags compile options to vdr.pc |
229 |
- sed -e "s:\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR):\$(CDEFINES) \$(CINCLUDES) \$(HDRDIR) \$(DEFINES_IUSE):" \ |
230 |
- -i Makefile || die "sed fails on Makefile" |
231 |
- |
232 |
- ebegin "Make depend" |
233 |
- emake .dependencies >/dev/null |
234 |
- eend $? "make depend failed" |
235 |
- |
236 |
- eapply "${FILESDIR}/${P}_gcc7extpng.patch" |
237 |
- fi |
238 |
- |
239 |
- eapply "${FILESDIR}/${P}_gentoo.patch" |
240 |
- eapply "${FILESDIR}/${P}_unsignedtosigned.patch" |
241 |
- eapply "${FILESDIR}/${P}_glibc-2.24.patch" |
242 |
- eapply "${FILESDIR}/${P}-jpeg-9c.patch" |
243 |
- |
244 |
- # fix some makefile issues |
245 |
- sed -e "s:ifndef NO_KBD:ifeq (\$(USE_KBD),1):" \ |
246 |
- -e "s:ifdef BIDI:ifeq (\$(BIDI),1):" \ |
247 |
- -e "s:ifdef SDNOTIFY:ifeq (\$(SDNOTIFY),1):" \ |
248 |
- -i "${S}"/Makefile || die "sed fails on Makefile" |
249 |
- |
250 |
- eapply_user |
251 |
- |
252 |
- add_cap CAP_UTF8 |
253 |
- |
254 |
- add_cap CAP_IRCTRL_RUNTIME_PARAM \ |
255 |
- CAP_VFAT_RUNTIME_PARAM \ |
256 |
- CAP_CHUID \ |
257 |
- CAP_SHUTDOWN_AUTO_RETRY |
258 |
- |
259 |
- echo -e ${CAPS} > "${CAP_FILE}" |
260 |
- |
261 |
- # LINGUAS support |
262 |
- einfo "\n \t VDR supports the LINGUAS values" |
263 |
- |
264 |
- lang_po |
265 |
- |
266 |
- einfo "\t Please set one of this values in your sytem make.conf" |
267 |
- einfo "\t LINGUAS=\"${LING_PO}\"\n" |
268 |
- |
269 |
- if [[ -z ${LINGUAS} ]]; then |
270 |
- einfo "\n \t No values in LINGUAS=" |
271 |
- einfo "\t You will get only english text on OSD \n" |
272 |
- fi |
273 |
- |
274 |
- strip-linguas ${LING_PO} en |
275 |
-} |
276 |
- |
277 |
-src_install() { |
278 |
- # trick makefile not to create a videodir by supplying it with an existing |
279 |
- # directory |
280 |
- emake install \ |
281 |
- VIDEODIR="/" \ |
282 |
- DESTDIR="${ED}" install |
283 |
- |
284 |
- keepdir "${PLUGIN_LIBDIR}" |
285 |
- |
286 |
- # backup for plugins they don't be able to create this dir |
287 |
- keepdir "${CONF_DIR}"/plugins |
288 |
- |
289 |
- if use html; then |
290 |
- local HTML_DOCS=( *.html ) |
291 |
- fi |
292 |
- |
293 |
- local DOCS=( MANUAL INSTALL README* HISTORY CONTRIBUTORS ) |
294 |
- |
295 |
- einstalldocs |
296 |
- |
297 |
- insinto /usr/share/vdr |
298 |
- doins "${CAP_FILE}" |
299 |
- |
300 |
- if use alternatechannel; then |
301 |
- insinto /etc/vdr |
302 |
- doins "${FILESDIR}"/channel_alternative.conf |
303 |
- fi |
304 |
- |
305 |
- chown -R vdr:vdr "${ED}/${CONF_DIR}" || die "chown failed" |
306 |
-} |
307 |
- |
308 |
-pkg_postinst() { |
309 |
- |
310 |
- elog "\n\t---- 15 YEARS ANNIVERSARY EDITON ----\n" |
311 |
- elog "\tA lot of thanks to Klaus Schmidinger" |
312 |
- elog "\tfor this nice piece of Software...\n" |
313 |
- |
314 |
- elog "It is a good idea to run vdrplugin-rebuild now." |
315 |
- |
316 |
- elog "To get nice symbols in OSD we recommend to install" |
317 |
- elog "\t1. emerge media-fonts/vdrsymbols-ttf" |
318 |
- elog "\t2. select font VDRSymbolsSans in Setup" |
319 |
- elog "" |
320 |
- elog "To get an idea how to proceed now, have a look at our vdr-guide:" |
321 |
- elog "\thttps://wiki.gentoo.org/wiki/VDR" |
322 |
-} |