Gentoo Archives: gentoo-commits

From: Joerg Bornkessel <hd_brummy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-plugins/vdr-dvbapi/
Date: Sun, 29 May 2016 19:57:44
Message-Id: 1464551804.58971da6dbaece8db7df621cabe415dd783abe60.hd_brummy@gentoo
1 commit: 58971da6dbaece8db7df621cabe415dd783abe60
2 Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
3 AuthorDate: Sun May 29 19:56:44 2016 +0000
4 Commit: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
5 CommitDate: Sun May 29 19:56:44 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=58971da6
7
8 media-plugins/vdr-dvbapi: version bump
9
10 Package-Manager: portage-2.3.0_rc1
11
12 media-plugins/vdr-dvbapi/Manifest | 1 +
13 media-plugins/vdr-dvbapi/vdr-dvbapi-2.2.2.ebuild | 80 ++++++++++++++++++++++++
14 2 files changed, 81 insertions(+)
15
16 diff --git a/media-plugins/vdr-dvbapi/Manifest b/media-plugins/vdr-dvbapi/Manifest
17 index 0261db6..1a99cd1 100644
18 --- a/media-plugins/vdr-dvbapi/Manifest
19 +++ b/media-plugins/vdr-dvbapi/Manifest
20 @@ -1 +1,2 @@
21 DIST vdr-dvbapi-2.1.1.tar.gz 82813 SHA256 2724768de00a607d7119478296a3ad1cc592c12badbc95480edc5f7e6b3985d7 SHA512 fb632e66c9e477663eb1edf5e630a20b2165495c89d5bd6294d74d6a28c8386021d90914c9c6b958ea3c5c1d0958cc69efa5c65ef72c510c224d676f1eca39ae WHIRLPOOL af18c22bb00ddbb41aa8e3ee091f27a1bb7b79f0d90783af9c9503ad03a568193c88cc41db86e0e06fd8c503ad43242a582b0decc5f64c417283517f05d14727
22 +DIST vdr-dvbapi-2.2.2.tar.gz 83995 SHA256 86c00b7235952a6b49321efd6c931f0c97885475c9bdc81b0b35236fc7ec7f20 SHA512 01d3a6368e0233a7b96b6ea57b28884a004a130d63da2b2958b1616a1108e83389b68cbe32ec7fc6be65d6741912c4f46621b659fb13dba56e594a1a18af2c63 WHIRLPOOL 107c157c915876b17e437996957205559f2aaee144de732b366566f6817b456da992dfb9d061f9011bd06bb279ab346d394fb751fe87c7ceebddfffe23615a45
23
24 diff --git a/media-plugins/vdr-dvbapi/vdr-dvbapi-2.2.2.ebuild b/media-plugins/vdr-dvbapi/vdr-dvbapi-2.2.2.ebuild
25 new file mode 100644
26 index 0000000..105c387
27 --- /dev/null
28 +++ b/media-plugins/vdr-dvbapi/vdr-dvbapi-2.2.2.ebuild
29 @@ -0,0 +1,80 @@
30 +# Copyright 1999-2016 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +# $Id$
33 +
34 +EAPI=6
35 +
36 +inherit vdr-plugin-2
37 +
38 +DESCRIPTION="VDR Plugin: allows connect VDR to OScam"
39 +HOMEPAGE="https://github.com/manio/vdr-plugin-dvbapi"
40 +SRC_URI="https://github.com/manio/vdr-plugin-dvbapi/archive/v${PV}.tar.gz -> vdr-dvbapi-${PV}.tar.gz"
41 +
42 +KEYWORDS="~amd64 ~x86"
43 +SLOT="0"
44 +LICENSE="GPL-2"
45 +IUSE="cpu_flags_x86_3dnow cpu_flags_x86_mmx cpu_flags_x86_sse cpu_flags_x86_sse2"
46 +
47 +DEPEND=">=media-video/vdr-2.1.4"
48 +RDEPEND="${DEPEND}"
49 +
50 +S="${WORKDIR}/vdr-plugin-dvbapi-${PV}"
51 +
52 +DOCS="HISTORY INSTALL README FFdecsa/docs"
53 +
54 +src_prepare() {
55 + vdr-plugin-2_src_prepare
56 +
57 + # respect the system CXXFLAGS
58 + sed -e "s:FLAGS:CXXFLAGS:" -i FFdecsa/Makefile
59 +
60 + # Prepare flags for FFdeCSA
61 + if [ -n "${VDR_DVBAPI_PARALLEL}" ]; then
62 + PARALLEL="${VDR_DVBAPI_PARALLEL}"
63 + else
64 + # [32/64] Core2 (SSSE3) achieves best results with SSE2 & SSE
65 + # [64] Athlon64 (SSE2) does much better with 64_LONG
66 + # [32] Athlon64 (SSE2) does best with MMX
67 + # [32] Pentium4 & Atom (SSE2) work best with SSE2 & SSE
68 + # [32] AthlonXP (SSE) has MMX faster
69 +
70 + # To avoid parsing -march=, we use ugly assumption that Intels don't
71 + # have 3dnow and AMDs do. SSE achieves good results only on Intel CPUs,
72 + # and LONG is best on 64-bit AMD CPUs.
73 +
74 + if ! use cpu_flags_x86_3dnow && use cpu_flags_x86_sse2; then
75 + PARALLEL=PARALLEL_128_SSE2
76 + elif ! use cpu_flags_x86_3dnow && use cpu_flags_x86_sse; then
77 + PARALLEL=PARALLEL_128_SSE
78 + elif use amd64; then
79 + PARALLEL=PARALLEL_64_LONG
80 + elif use cpu_flags_x86_mmx; then
81 + PARALLEL=PARALLEL_64_MMX
82 + else
83 + # fallback values:
84 + # PARALLEL_32_INT fails with gcc4.4 on x86&amd64
85 + # PARALLEL_64_2INT fails with gcc4.4 on x86
86 + # PARALLEL_128_4INT seems to be the fastest non-failing fallback
87 + PARALLEL=PARALLEL_128_4INT
88 + fi
89 +
90 + ewarn "VDR_DVBAPI_PARALLEL in your system make.conf is not set, guessing value from USEflags (${PARALLEL})."
91 + ewarn "This setting may be suboptimal, so you'll probably want to tweak it yourself."
92 + ewarn "\n\tRun the script ${WORKDIR}/extra/FFdecsa-benchmark.sh"
93 + ewarn "\tand add the output parameter from PARALLEL= to your system make.conf"
94 + ewarn "\tVDR_DVBAPI_PARALLEL= your parameter"
95 + fi
96 +
97 + export PARALLEL
98 +}
99 +
100 +pkg_postinst() {
101 + vdr-plugin-2_pkg_postinst
102 +
103 + elog "This software might be illegal in some countries or violate"
104 + elog "rules of your DVB provider"
105 + elog "Please respect these rules.\n"
106 +
107 + elog "We do not offer support of any kind"
108 + elog "Asking for keys or for installation help will be ignored by gentoo developers!\n"
109 +}