Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/vdr-dvbapi/, media-plugins/vdr-dvbapi/files/
Date: Sat, 28 Apr 2018 20:41:41
Message-Id: 1524948088.e6b48cf37ae185db0e88e2dde9d6e60006dcfe4a.mgorny@gentoo
1 commit: e6b48cf37ae185db0e88e2dde9d6e60006dcfe4a
2 Author: Martin Dummer <martin.dummer <AT> ts <DOT> fujitsu <DOT> com>
3 AuthorDate: Mon Apr 23 21:54:04 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Apr 28 20:41:28 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e6b48cf3
7
8 media-plugins/vdr-dvbapi: bump to version 2.2.4
9
10 Version bump to 2.2.4, also includes compile fix for kernel >=4.14
11
12 Closes: https://bugs.gentoo.org/651096
13 Closes: https://github.com/gentoo/gentoo/pull/8118
14 Package-Manager: Portage-2.3.31, Repoman-2.3.9
15
16 media-plugins/vdr-dvbapi/Manifest | 1 +
17 .../vdr-dvbapi/files/kernel-4.14-fix.diff | 15 ++++
18 media-plugins/vdr-dvbapi/metadata.xml | 11 +++
19 media-plugins/vdr-dvbapi/vdr-dvbapi-2.2.4.ebuild | 93 ++++++++++++++++++++++
20 4 files changed, 120 insertions(+)
21
22 diff --git a/media-plugins/vdr-dvbapi/Manifest b/media-plugins/vdr-dvbapi/Manifest
23 index ce58b22db84..c736ff3e9ca 100644
24 --- a/media-plugins/vdr-dvbapi/Manifest
25 +++ b/media-plugins/vdr-dvbapi/Manifest
26 @@ -1,2 +1,3 @@
27 DIST vdr-dvbapi-2.1.1.tar.gz 82813 BLAKE2B 2dd2b4aa11a645b4168ebbae962371f94a6e70ff905b06230048a69921f31521468506f2959ce5d5327b4cf61edc620686210520239e751e142e524751640e0d SHA512 fb632e66c9e477663eb1edf5e630a20b2165495c89d5bd6294d74d6a28c8386021d90914c9c6b958ea3c5c1d0958cc69efa5c65ef72c510c224d676f1eca39ae
28 DIST vdr-dvbapi-2.2.2.tar.gz 83995 BLAKE2B 6ddd9cc4e3edbd504505b7bbb9c40e203d53faab43b3d1afe9b9834cf3d751ba469536b5f27c24cfb04afeba1378ee3ac8dc0885db8a4576ce7a275233c88ca6 SHA512 01d3a6368e0233a7b96b6ea57b28884a004a130d63da2b2958b1616a1108e83389b68cbe32ec7fc6be65d6741912c4f46621b659fb13dba56e594a1a18af2c63
29 +DIST vdr-plugin-dvbapi-2.2.4.tar.gz 94419 BLAKE2B 326346b418ece22674aa0d84efd798a9eb8e958586d24385b4e468c11478f63ed89e94c742c57c5b1e955dc598db29a39e3730d71c93005aa6dcda262545e4e2 SHA512 d1313e927978fcf150ae14e570c16059caeeec07992066b03282295147872da3bdb191209408539c2a70c2ada868f731e9e5504a8dd737143f86e33a85fdf0c7
30
31 diff --git a/media-plugins/vdr-dvbapi/files/kernel-4.14-fix.diff b/media-plugins/vdr-dvbapi/files/kernel-4.14-fix.diff
32 new file mode 100644
33 index 00000000000..07644ab418c
34 --- /dev/null
35 +++ b/media-plugins/vdr-dvbapi/files/kernel-4.14-fix.diff
36 @@ -0,0 +1,15 @@
37 +--- a/CA.h 2017-03-28 11:14:07.000000000 +0200
38 ++++ b/CA.h 2018-03-27 00:47:51.231750662 +0200
39 +@@ -9,4 +9,12 @@
40 + unsigned char cw[16];
41 + } ca_descr_aes_t;
42 +
43 ++#ifndef CA_SET_PID /* removed in kernel 4.14 */
44 ++typedef struct ca_pid {
45 ++ unsigned int pid;
46 ++ int index; /* -1 == disable */
47 ++} ca_pid_t;
48 ++#define CA_SET_PID _IOW('o', 135, struct ca_pid)
49 + #endif
50 ++
51 ++#endif // __CA_H
52
53 diff --git a/media-plugins/vdr-dvbapi/metadata.xml b/media-plugins/vdr-dvbapi/metadata.xml
54 index 9e2a4b763c8..e82c63acca5 100644
55 --- a/media-plugins/vdr-dvbapi/metadata.xml
56 +++ b/media-plugins/vdr-dvbapi/metadata.xml
57 @@ -5,6 +5,17 @@
58 <email>hd_brummy@g.o</email>
59 <name>Joerg Bornkessel</name>
60 </maintainer>
61 + <maintainer type="person">
62 + <email>martin.dummer@×××.net</email>
63 + <name>Martin Dummer</name>
64 + </maintainer>
65 + <maintainer type="project">
66 + <email>proxy-maint@g.o</email>
67 + <name>Proxy Maintainers</name>
68 + </maintainer>
69 + <use>
70 + <flag name="dvbcsa">use <pkg>media-libs/libdvbcsa</pkg> free implementation of the DVB Common Scrambling Algorithm</flag>
71 + </use>
72 <upstream>
73 <remote-id type="github">manio/vdr-plugin-dvbapi</remote-id>
74 </upstream>
75
76 diff --git a/media-plugins/vdr-dvbapi/vdr-dvbapi-2.2.4.ebuild b/media-plugins/vdr-dvbapi/vdr-dvbapi-2.2.4.ebuild
77 new file mode 100644
78 index 00000000000..8f22cdaedc3
79 --- /dev/null
80 +++ b/media-plugins/vdr-dvbapi/vdr-dvbapi-2.2.4.ebuild
81 @@ -0,0 +1,93 @@
82 +# Copyright 1999-2018 Gentoo Foundation
83 +# Distributed under the terms of the GNU General Public License v2
84 +
85 +EAPI=6
86 +
87 +inherit vdr-plugin-2
88 +
89 +MY_P="vdr-plugin-dvbapi-${PV}"
90 +
91 +DESCRIPTION="VDR Plugin: allows connect VDR to OScam"
92 +HOMEPAGE="https://github.com/manio/vdr-plugin-dvbapi"
93 +SRC_URI="https://github.com/manio/vdr-plugin-dvbapi/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
94 +
95 +KEYWORDS="~amd64 ~x86"
96 +SLOT="0"
97 +LICENSE="GPL-2+"
98 +IUSE="cpu_flags_x86_3dnow cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2 dvbcsa"
99 +
100 +DEPEND=">=media-video/vdr-2.1.4
101 + dvbcsa? ( media-libs/libdvbcsa )"
102 +RDEPEND="${DEPEND}"
103 +
104 +S="${WORKDIR}/${MY_P}"
105 +
106 +DOCS=( "FAQ" "HISTORY" "INSTALL" "README" "FFdecsa/docs" )
107 +
108 +src_prepare() {
109 + vdr-plugin-2_src_prepare
110 +
111 + if use dvbcsa; then
112 + sed -e "/PLUGIN = dvbapi/a LIBDVBCSA = 1" -i Makefile || die "modifying Makefile"
113 + fi
114 +
115 + # respect the system CXXFLAGS
116 + sed -e "s:FLAGS:CXXFLAGS:" -i FFdecsa/Makefile || die "modifying FFdecsa/Makefile"
117 +
118 + # Prepare flags for FFdeCSA
119 + if [[ -n "${VDR_DVBAPI_PARALLEL}" ]]; then
120 + PARALLEL="${VDR_DVBAPI_PARALLEL}"
121 + else
122 + # [32/64] Core2 (SSSE3) achieves best results with SSE2 & SSE
123 + # [64] Athlon64 (SSE2) does much better with 64_LONG
124 + # [32] Athlon64 (SSE2) does best with MMX
125 + # [32] Pentium4 & Atom (SSE2) work best with SSE2 & SSE
126 + # [32] AthlonXP (SSE) has MMX faster
127 +
128 + # To avoid parsing -march=, we use ugly assumption that Intels don't
129 + # have 3dnow and AMDs do. SSE achieves good results only on Intel CPUs,
130 + # and LONG is best on 64-bit AMD CPUs.
131 +
132 + if ! use cpu_flags_x86_3dnow && use cpu_flags_x86_sse2; then
133 + PARALLEL=PARALLEL_128_SSE2
134 + elif ! use cpu_flags_x86_3dnow && use cpu_flags_x86_sse; then
135 + PARALLEL=PARALLEL_128_SSE
136 + elif use amd64; then
137 + PARALLEL=PARALLEL_64_LONG
138 + elif use cpu_flags_x86_mmx; then
139 + PARALLEL=PARALLEL_64_MMX
140 + else
141 + # fallback values:
142 + # PARALLEL_32_INT fails with gcc4.4 on x86&amd64
143 + # PARALLEL_64_2INT fails with gcc4.4 on x86
144 + # PARALLEL_128_4INT seems to be the fastest non-failing fallback
145 + PARALLEL=PARALLEL_128_4INT
146 + fi
147 +
148 + ewarn "VDR_DVBAPI_PARALLEL in your system make.conf is not set, guessing"
149 + ewarn "value from CPU_FLAGS_X86 USEflags, result: ${PARALLEL}"
150 + ewarn "This setting may be suboptimal, so you'll probably want to tweak"
151 + ewarn "it yourself."
152 + ewarn
153 + ewarn "To do this, unpack the source and run the script in"
154 + ewarn "\t<unpackdir>/${MY_P}/extra/FFdecsa-benchmark.sh"
155 + ewarn "and add the output value from PARALLEL_MODE= to your system make.conf as"
156 + ewarn "\tVDR_DVBAPI_PARALLEL=<your parameter>"
157 + ewarn
158 + fi
159 +
160 + export PARALLEL
161 +
162 + eapply "${FILESDIR}/kernel-4.14-fix.diff"
163 +}
164 +
165 +pkg_postinst() {
166 + vdr-plugin-2_pkg_postinst
167 +
168 + elog "This software might be illegal in some countries or violate"
169 + elog "rules of your DVB provider. Please respect these rules."
170 + elog
171 + elog "We do not offer support of any kind."
172 + elog "Asking for keys or for installation help will be ignored by gentoo developers!"
173 + elog
174 +}