1 |
commit: f90375a6a07f068428cbbe2345317709e2d610ca |
2 |
Author: Martin Dummer <martin.dummer <AT> gmx <DOT> net> |
3 |
AuthorDate: Sun Mar 12 10:44:19 2023 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 14 23:06:12 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f90375a6 |
7 |
|
8 |
media-video/vdr: add 2.6.4 |
9 |
|
10 |
Signed-off-by: Martin Dummer <martin.dummer <AT> gmx.net> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/30074 |
12 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
13 |
|
14 |
media-video/vdr/Manifest | 2 + |
15 |
media-video/vdr/vdr-2.6.4.ebuild | 199 +++++++++++++++++++++++++++++++++++++++ |
16 |
2 files changed, 201 insertions(+) |
17 |
|
18 |
diff --git a/media-video/vdr/Manifest b/media-video/vdr/Manifest |
19 |
index 6e905f5e27c4..6d4cb3b44c66 100644 |
20 |
--- a/media-video/vdr/Manifest |
21 |
+++ b/media-video/vdr/Manifest |
22 |
@@ -2,4 +2,6 @@ DIST extpng-vdr-2.2.0-gentoo-edition-v1.patch.bz2 34664 BLAKE2B 81b68ebe0ef4588c |
23 |
DIST vdr-2.2.0.tar.bz2 922708 BLAKE2B 975e07d6d4c5bd13ee92be5d6a1826d6404b0c59e20fa2e30689b185a61e02d54782ad528e6a4f15e0d36806b30bcf48aa336d63adb3604e78056ff318e0fd2c SHA512 183f58133915c6c0fe8ec2b88becbcb2a36418210e6dcf7931053d3771d727c3581593f9eb5c9693abf39e22e728f7b41c42079cd704610c3636ec05134ea93d |
24 |
DIST vdr-2.6.1_ttxtsubs_v2.patch 40549 BLAKE2B 525c05b72fa957372cc1ef91428428f664f42d92eebc06fd0b179afbe99e4ecc4919c69cef000cc15c8340c9a2506d38cbf755fd6665cde1708ce17d4320a35f SHA512 590c43e63818de8be9637cb3b32bf3399b82a181ca151d67e2341232669619020ab78ba9934da3a9c58cdb3bac56fc2a332a5838a92ee0851e42c3707726eb49 |
25 |
DIST vdr-2.6.3.tbz2 943867 BLAKE2B 48dd2f19125dc60b68d835d3da457b4e2377b7b8ca31b9e1849b9f5ebe29391ed51c9460ec8efc9bdd349adba6d39a2b17f4a3e8f23bea3964b15bcbd9618ec9 SHA512 d84ca2cd797c80134a28cebc28172f45081d4f9580122f823dde396d106a15fa88d5f040252b8ee7caa7d44fa6f1cfba37a13c6a36ecd3fd2734b0140f7c438c |
26 |
+DIST vdr-2.6.4.tbz2 944257 BLAKE2B 09f2867d84ad6ee722e37cd3f77160ba4d976c25e46394a50ecd53b22da2269a3988e5aaf07eb741aaf0c957e9a001b15767b61eb6b1169206b4434d3885dc2f SHA512 2e69b67c82dd9dd1473c8776524b3888944957d4c6d7cf8f7713de4935819853dc481f04a87936bba8b1f56d9f3d8018f0820a3b1505bec2fceea6863e5d3776 |
27 |
+DIST vdr-2.6.4_ttxtsubs_v2.patch 40549 BLAKE2B 525c05b72fa957372cc1ef91428428f664f42d92eebc06fd0b179afbe99e4ecc4919c69cef000cc15c8340c9a2506d38cbf755fd6665cde1708ce17d4320a35f SHA512 590c43e63818de8be9637cb3b32bf3399b82a181ca151d67e2341232669619020ab78ba9934da3a9c58cdb3bac56fc2a332a5838a92ee0851e42c3707726eb49 |
28 |
DIST vdr-menuorg-2.3.x.diff 8852 BLAKE2B 19b98d51a69f52ecda5500f51ef1741a8397953b20c490055eab0393da5f56ff9598c3e1e8ed8b915f5877e08deeb9ba7a9ef8d9356ad3a1fa12e3778869174a SHA512 7b41c3a529858a4953a57f21619ea01864e140cc1755ee0b03caf1c4de41e80c3f805653502bc8d39d02a4dfcddf720acd4a8c8bd91f4871eef31d86e8e915c0 |
29 |
|
30 |
diff --git a/media-video/vdr/vdr-2.6.4.ebuild b/media-video/vdr/vdr-2.6.4.ebuild |
31 |
new file mode 100644 |
32 |
index 000000000000..6f0f847cc9b0 |
33 |
--- /dev/null |
34 |
+++ b/media-video/vdr/vdr-2.6.4.ebuild |
35 |
@@ -0,0 +1,199 @@ |
36 |
+# Copyright 2021-2023 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=8 |
40 |
+ |
41 |
+inherit flag-o-matic strip-linguas toolchain-funcs user-info |
42 |
+ |
43 |
+DESCRIPTION="Video Disk Recorder - turns a pc into a powerful set top box for DVB" |
44 |
+HOMEPAGE="http://www.tvdr.de/" |
45 |
+SRC_URI="http://git.tvdr.de/?p=vdr.git;a=snapshot;h=refs/tags/${PV};sf=tbz2 -> ${P}.tbz2 |
46 |
+ menuorg? ( https://github.com/vdr-projects/vdr-plugin-menuorg/raw/master/vdr-patch/vdr-menuorg-2.3.x.diff ) |
47 |
+ ttxtsubs? ( https://md11.it.cx/download/${PN}/${P}_ttxtsubs_v2.patch )" |
48 |
+ |
49 |
+LICENSE="GPL-2+" |
50 |
+SLOT="0" |
51 |
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~x86" |
52 |
+IUSE="bidi debug demoplugins html keyboard mainmenuhooks menuorg naludump permashift pinplugin systemd ttxtsubs verbose" |
53 |
+ |
54 |
+COMMON_DEPEND=" |
55 |
+ acct-group/vdr |
56 |
+ acct-user/vdr |
57 |
+ media-libs/fontconfig |
58 |
+ media-libs/freetype |
59 |
+ media-libs/libjpeg-turbo:= |
60 |
+ sys-libs/libcap" |
61 |
+DEPEND="${COMMON_DEPEND} |
62 |
+ >=virtual/linuxtv-dvb-headers-5.3" |
63 |
+RDEPEND="${COMMON_DEPEND} |
64 |
+ dev-lang/perl |
65 |
+ media-tv/gentoo-vdr-scripts |
66 |
+ media-fonts/corefonts |
67 |
+ bidi? ( dev-libs/fribidi ) |
68 |
+ systemd? ( sys-apps/systemd )" |
69 |
+BDEPEND=" |
70 |
+ sys-devel/gettext |
71 |
+ virtual/pkgconfig" |
72 |
+ |
73 |
+REQUIRED_USE="permashift? ( !naludump !pinplugin )" |
74 |
+ |
75 |
+CONF_DIR="/etc/vdr" |
76 |
+CAP_FILE="${S}/capabilities.sh" |
77 |
+CAPS="# Capabilities of the vdr-executable for use by startscript etc." |
78 |
+ |
79 |
+pkg_setup() { |
80 |
+ use debug && append-flags -g |
81 |
+ |
82 |
+ PLUGIN_LIBDIR="/usr/$(get_libdir)/vdr/plugins" |
83 |
+ VIDEO_DIR="$(egethome vdr)/video" |
84 |
+ |
85 |
+ tc-export CC CXX AR |
86 |
+} |
87 |
+ |
88 |
+add_cap() { |
89 |
+ local arg |
90 |
+ for arg; do |
91 |
+ CAPS="${CAPS}\n${arg}=1" |
92 |
+ done |
93 |
+} |
94 |
+ |
95 |
+lang_po() { |
96 |
+ LING_PO=$( ls "${S}"/po | sed -e "s:.po::g" | cut -d_ -f1 | tr \\\012 ' ' ) |
97 |
+} |
98 |
+ |
99 |
+src_prepare() { |
100 |
+ # apply maintenance-patches |
101 |
+ ebegin "Changing paths for gentoo" |
102 |
+ |
103 |
+ local DVBDIR=/usr/include |
104 |
+ local i |
105 |
+ for i in ${DVB_HEADER_PATH} /usr/include/v4l-dvb-hg /usr/include; do |
106 |
+ [[ -d ${i} ]] || continue |
107 |
+ if [[ -f ${i}/linux/dvb/dmx.h ]]; then |
108 |
+ einfo "Found DVB header files in ${i}" |
109 |
+ DVBDIR=${i} |
110 |
+ break |
111 |
+ fi |
112 |
+ done |
113 |
+ |
114 |
+ # checking for s2api headers |
115 |
+ local api_version |
116 |
+ api_version=$(awk -F' ' '/define DVB_API_VERSION / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
117 |
+ api_version=${api_version}*$(awk -F' ' '/define DVB_API_VERSION_MINOR / {print $3}' "${DVBDIR}"/linux/dvb/version.h) |
118 |
+ |
119 |
+ if [[ ${api_version:-0} -lt 5*3 ]]; then |
120 |
+ eerror "DVB header files do not contain s2api support or too old for ${P}" |
121 |
+ eerror "You cannot compile VDR against old dvb-header" |
122 |
+ die "DVB headers too old" |
123 |
+ fi |
124 |
+ |
125 |
+ cat > Make.config <<-EOT || die "cannot write to Make.config" |
126 |
+ # |
127 |
+ # Generated by ebuild ${PF} |
128 |
+ # |
129 |
+ PREFIX = /usr |
130 |
+ DVBDIR = ${DVBDIR} |
131 |
+ PLUGINLIBDIR = ${PLUGIN_LIBDIR} |
132 |
+ CONFDIR = ${CONF_DIR} |
133 |
+ ARGSDIR = \$(CONFDIR)/conf.d |
134 |
+ VIDEODIR = ${VIDEO_DIR} |
135 |
+ LOCDIR = \$(PREFIX)/share/locale |
136 |
+ INCDIR = \$(PREFIX)/include |
137 |
+ |
138 |
+ DEFINES += -DCONFDIR=\"\$(CONFDIR)\" |
139 |
+ INCLUDES += -I\$(DVBDIR) |
140 |
+ |
141 |
+ # >=vdr-1.7.36-r1; parameter only used for compiletime on vdr |
142 |
+ # PLUGINLIBDIR (plugin Makefile old) = LIBDIR (plugin Makefile new) |
143 |
+ LIBDIR = ${PLUGIN_LIBDIR} |
144 |
+ PCDIR = /usr/$(get_libdir)/pkgconfig |
145 |
+ |
146 |
+ EOT |
147 |
+ eend 0 |
148 |
+ |
149 |
+ eapply "${FILESDIR}/${PN}-2.4.6_gentoo.patch" |
150 |
+ use demoplugins || eapply "${FILESDIR}/vdr-2.4_remove_plugins.patch" |
151 |
+ eapply "${FILESDIR}/${PN}-2.4.6_makefile-variables.patch" |
152 |
+ |
153 |
+ # fix clang/LLVM compile |
154 |
+ eapply "${FILESDIR}/${PN}-2.4.6_clang.patch" |
155 |
+ |
156 |
+ use naludump && eapply "${FILESDIR}/${PN}-2.6.1_naludump.patch" |
157 |
+ use permashift && eapply "${FILESDIR}/${PN}-2.6.1-patch-for-permashift.patch" |
158 |
+ use pinplugin && eapply "${FILESDIR}/${PN}-2.6.1_pinplugin.patch" |
159 |
+ use ttxtsubs && eapply "${DISTDIR}/vdr-2.6.1_ttxtsubs_v2.patch" |
160 |
+ use menuorg && eapply "${DISTDIR}/vdr-menuorg-2.3.x.diff" |
161 |
+ use mainmenuhooks && eapply "${FILESDIR}/${PN}-2.4.1_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_configure() { |
190 |
+ # support languages, written from right to left |
191 |
+ export "BIDI=$(usex bidi 1 0)" |
192 |
+ # systemd notification support |
193 |
+ export "SDNOTIFY=$(usex systemd 1 0)" |
194 |
+ # with/without keyboard |
195 |
+ export "USE_KBD=$(usex keyboard 1 0)" |
196 |
+ # detailed compile output for debug |
197 |
+ export "VERBOSE=$(usex verbose 1 0)" |
198 |
+} |
199 |
+ |
200 |
+src_install() { |
201 |
+ # trick the makefile to not create a VIDEODIR by supplying it with an |
202 |
+ # existing directory |
203 |
+ emake VIDEODIR="/" DESTDIR="${ED}" install |
204 |
+ |
205 |
+ keepdir "${PLUGIN_LIBDIR}" |
206 |
+ |
207 |
+ # backup for plugins they don't be able to create this dir |
208 |
+ keepdir "${CONF_DIR}/plugins" |
209 |
+ |
210 |
+ if use html; then |
211 |
+ local HTML_DOCS=( *.html ) |
212 |
+ fi |
213 |
+ local DOCS=( MANUAL INSTALL README* HISTORY CONTRIBUTORS UPDATE-2* ) |
214 |
+ einstalldocs |
215 |
+ |
216 |
+ insinto /usr/share/vdr |
217 |
+ doins "${CAP_FILE}" |
218 |
+ |
219 |
+ fowners vdr:vdr "${CONF_DIR}" -R |
220 |
+} |
221 |
+ |
222 |
+pkg_postinst() { |
223 |
+ elog "Please read the /usr/share/doc/${PF}/UPDATE-2.4" |
224 |
+ elog "for major changes in this version\n" |
225 |
+ |
226 |
+ elog "It is a good idea to run vdrplugin-rebuild now.\n" |
227 |
+ |
228 |
+ elog "To get nice symbols in OSD we recommend to install" |
229 |
+ elog "\t1. emerge media-fonts/vdrsymbols-ttf" |
230 |
+ elog "\t2. select font VDRSymbolsSans in Setup\n" |
231 |
+ |
232 |
+ elog "To get an idea how to proceed now, have a look at our vdr-guide:" |
233 |
+ elog "\thttps://wiki.gentoo.org/wiki/VDR" |
234 |
+} |