Gentoo Archives: gentoo-commits

From: "Jörg Bornkessel" <hd_brummy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-video/vdr/
Date: Tue, 11 Feb 2020 19:57:50
Message-Id: 1581451044.e7c2235119568d65d3ee364aada3e2c65dcf9bc7.hd_brummy@gentoo
1 commit: e7c2235119568d65d3ee364aada3e2c65dcf9bc7
2 Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
3 AuthorDate: Tue Feb 11 19:56:30 2020 +0000
4 Commit: Jörg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
5 CommitDate: Tue Feb 11 19:57:24 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7c22351
7
8 media-video/vdr: cleanup old, broken by glibc-2.31
9
10 Closes: https://bugs.gentoo.org/708802
11 Package-Manager: Portage-2.3.84, Repoman-2.3.20
12 Signed-off-by: Joerg Bornkessel <hd_brummy <AT> gentoo.org>
13
14 media-video/vdr/vdr-2.4.1.ebuild | 201 ---------------------------------------
15 1 file changed, 201 deletions(-)
16
17 diff --git a/media-video/vdr/vdr-2.4.1.ebuild b/media-video/vdr/vdr-2.4.1.ebuild
18 deleted file mode 100644
19 index d2f923913af..00000000000
20 --- a/media-video/vdr/vdr-2.4.1.ebuild
21 +++ /dev/null
22 @@ -1,201 +0,0 @@
23 -# Copyright 2019 Gentoo Authors
24 -# Distributed under the terms of the GNU General Public License v2
25 -
26 -EAPI=7
27 -
28 -inherit flag-o-matic multilib toolchain-funcs
29 -
30 -DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB"
31 -HOMEPAGE="http://www.tvdr.de/"
32 -SRC_URI="ftp://ftp.tvdr.de/vdr/${P}.tar.bz2
33 - mainmenuhooks? ( http://vdr.websitec.de/download/${PN}/${P}/${P}_mainmenuhook-1.0.1.patch.bz2 )
34 - menuorg? ( https://projects.vdr-developer.org/projects/plg-menuorg/repository/revisions/master/raw/vdr-patch/vdr-menuorg-2.3.x.diff )
35 - naludump? ( http://www.udo-richter.de/vdr/files/vdr-2.1.5-naludump-0.1.diff )
36 - pinplugin? ( http://vdr.websitec.de/download/${PN}/${P}/${P}_pinplugin.patch.bz2 )
37 - ttxtsubs? ( http://vdr.websitec.de/download/${PN}/${P}/${PN}-2.4.0-ttxtsubs.patch.bz2 )"
38 -
39 -LICENSE="GPL-2+"
40 -SLOT="0"
41 -KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86"
42 -IUSE="bidi debug demoplugins html keyboard mainmenuhooks menuorg naludump pinplugin systemd ttxtsubs verbose"
43 -
44 -COMMON_DEPEND="
45 - virtual/jpeg:*
46 - sys-libs/libcap
47 - >=media-libs/fontconfig-2.4.2
48 - >=media-libs/freetype-2"
49 -DEPEND="${COMMON_DEPEND}
50 - >=virtual/linuxtv-dvb-headers-5.3"
51 -RDEPEND="${COMMON_DEPEND}
52 - dev-lang/perl
53 - media-tv/gentoo-vdr-scripts
54 - media-fonts/corefonts
55 - bidi? ( dev-libs/fribidi )
56 - systemd? ( sys-apps/systemd )"
57 -BDEPEND="sys-devel/gettext"
58 -
59 -REQUIRED_USE="pinplugin? ( !mainmenuhooks )"
60 -
61 -CONF_DIR="/etc/vdr"
62 -CAP_FILE="${S}/capabilities.sh"
63 -CAPS="# Capabilities of the vdr-executable for use by startscript etc."
64 -
65 -pkg_setup() {
66 - use debug && append-flags -g
67 -
68 - PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins"
69 -
70 - tc-export CC CXX AR
71 -}
72 -
73 -add_cap() {
74 - local arg
75 - for arg; do
76 - CAPS="${CAPS}\n${arg}=1"
77 - done
78 -}
79 -
80 -lang_po() {
81 - LING_PO=$( ls ${S}/po | sed -e "s:.po::g" | cut -d_ -f1 | tr \\\012 ' ' )
82 -}
83 -
84 -src_configure() {
85 - # support languages, written from right to left
86 - export "BIDI=$(usex bidi 1 0)"
87 - # systemd notification support
88 - export "SDNOTIFY=$(usex systemd 1 0)"
89 - # with/without keyboard
90 - export "USE_KBD=$(usex keyboard 1 0)"
91 - # detailed compile output for debug
92 - export "VERBOSE=$(usex verbose 1 0)"
93 -}
94 -
95 -src_prepare() {
96 - # apply maintenance-patches
97 - ebegin "Changing paths for gentoo"
98 -
99 - local DVBDIR=/usr/include
100 - local i
101 - for i in ${DVB_HEADER_PATH} /usr/include/v4l-dvb-hg /usr/include; do
102 - [[ -d ${i} ]] || continue
103 - if [[ -f ${i}/linux/dvb/dmx.h ]]; then
104 - einfo "Found DVB header files in ${i}"
105 - DVBDIR=${i}
106 - break
107 - fi
108 - done
109 -
110 - # checking for s2api headers
111 - local api_version
112 - api_version=$(awk -F' ' '/define DVB_API_VERSION / {print $3}' "${DVBDIR}"/linux/dvb/version.h)
113 - api_version=${api_version}*$(awk -F' ' '/define DVB_API_VERSION_MINOR / {print $3}' "${DVBDIR}"/linux/dvb/version.h)
114 -
115 - if [[ ${api_version:-0} -lt 5*3 ]]; then
116 - eerror "DVB header files do not contain s2api support or too old for ${P}"
117 - eerror "You cannot compile VDR against old dvb-header"
118 - die "DVB headers too old"
119 - fi
120 -
121 - cat > Make.config <<-EOT || die "cannot write to Make.config"
122 - #
123 - # Generated by ebuild ${PF}
124 - #
125 - PREFIX = /usr
126 - DVBDIR = ${DVBDIR}
127 - PLUGINLIBDIR = ${PLUGIN_LIBDIR}
128 - CONFDIR = ${CONF_DIR}
129 - ARGSDIR = \$(CONFDIR)/conf.d
130 - VIDEODIR = /var/vdr/video
131 - LOCDIR = \$(PREFIX)/share/locale
132 - INCDIR = \$(PREFIX)/include
133 -
134 - DEFINES += -DCONFDIR=\"\$(CONFDIR)\"
135 - INCLUDES += -I\$(DVBDIR)
136 -
137 - # >=vdr-1.7.36-r1; parameter only used for compiletime on vdr
138 - # PLUGINLIBDIR (plugin Makefile old) = LIBDIR (plugin Makefile new)
139 - LIBDIR = ${PLUGIN_LIBDIR}
140 - PCDIR = /usr/$(get_libdir)/pkgconfig
141 -
142 - EOT
143 - eend 0
144 -
145 - eapply "${FILESDIR}/${P}_gentoo.patch"
146 - eapply "${FILESDIR}/vdr-2.2.0-jpeg-9c.patch"
147 - use demoplugins || eapply "${FILESDIR}/vdr-2.4_remove_plugins.patch"
148 - eapply "${FILESDIR}/${P}_makefile-variables.patch"
149 -
150 - # works
151 - use naludump && eapply "${DISTDIR}/${PN}-2.1.5-naludump-0.1.diff"
152 -# # request to upstream for new patch
153 -# use permashift && eapply "${DISTDIR}/vdr-2.3-patch-for-permashift.diff"
154 - #pinplugin works
155 - use pinplugin && eapply "${WORKDIR}/${P}_pinplugin.patch"
156 - # ttxtsubs works
157 - use ttxtsubs && eapply "${WORKDIR}/${PN}-2.4.0-ttxtsubs.patch"
158 - # menuorg works
159 - use menuorg && eapply "${DISTDIR}/vdr-menuorg-2.3.x.diff"
160 - # mainmenuhooks, works
161 - use mainmenuhooks && eapply "${WORKDIR}/${P}_mainmenuhook-1.0.1.patch"
162 -
163 - add_cap CAP_UTF8 \
164 - CAP_IRCTRL_RUNTIME_PARAM \
165 - CAP_VFAT_RUNTIME_PARAM \
166 - CAP_CHUID \
167 - CAP_SHUTDOWN_AUTO_RETRY
168 -
169 - echo -e ${CAPS} > "${CAP_FILE}" || die "cannot write to CAP_FILE"
170 -
171 - # LINGUAS support
172 - einfo "\n \t VDR supports the LINGUAS values"
173 -
174 - lang_po
175 -
176 - einfo "\t Please set one of this values in your sytem make.conf"
177 - einfo "\t LINGUAS=\"${LING_PO}\"\n"
178 -
179 - if [[ -z ${LINGUAS} ]]; then
180 - einfo "\n \t No values in LINGUAS="
181 - einfo "\t You will get only english text on OSD \n"
182 - fi
183 -
184 - strip-linguas ${LING_PO} en
185 -
186 - default
187 -}
188 -
189 -src_install() {
190 - # trick the makefile to not create a VIDEODIR by supplying it with an
191 - # existing directory
192 - emake VIDEODIR="/" DESTDIR="${ED}" install
193 -
194 - keepdir "${PLUGIN_LIBDIR}"
195 -
196 - # backup for plugins they don't be able to create this dir
197 - keepdir "${CONF_DIR}/plugins"
198 -
199 - if use html; then
200 - local HTML_DOCS=( *.html )
201 - fi
202 - local DOCS=( MANUAL INSTALL README* HISTORY CONTRIBUTORS UPDATE-2* )
203 - einstalldocs
204 -
205 - insinto /usr/share/vdr
206 - doins "${CAP_FILE}"
207 -
208 - fowners vdr:vdr "${CONF_DIR}" -R
209 -}
210 -
211 -pkg_postinst() {
212 - elog "Please read the /usr/share/doc/${PF}/UPDATE-2.4"
213 - elog "for major changes in this version\n"
214 -
215 - elog "It is a good idea to run vdrplugin-rebuild now.\n"
216 -
217 - elog "To get nice symbols in OSD we recommend to install"
218 - elog "\t1. emerge media-fonts/vdrsymbols-ttf"
219 - elog "\t2. select font VDRSymbolsSans in Setup\n"
220 -
221 - elog "To get an idea how to proceed now, have a look at our vdr-guide:"
222 - elog "\thttps://wiki.gentoo.org/wiki/VDR"
223 -}