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-iptv/, media-plugins/vdr-iptv/files/
Date: Wed, 28 Sep 2016 09:27:44
Message-Id: 1475054830.3501505d34d47dc7e7d2bacbb8d266d88aa6ee51.hd_brummy@gentoo
1 commit: 3501505d34d47dc7e7d2bacbb8d266d88aa6ee51
2 Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
3 AuthorDate: Wed Sep 28 09:27:10 2016 +0000
4 Commit: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
5 CommitDate: Wed Sep 28 09:27:10 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3501505d
7
8 media-plugins/vdr-iptv: fix c11++ compile
9
10 Package-Manager: portage-2.3.0
11
12 .../vdr-iptv/files/vdr-iptv-2.2.1_c++11.patch | 28 ++++++++++++++
13 media-plugins/vdr-iptv/vdr-iptv-2.2.1-r1.ebuild | 43 ++++++++++++++++++++++
14 2 files changed, 71 insertions(+)
15
16 diff --git a/media-plugins/vdr-iptv/files/vdr-iptv-2.2.1_c++11.patch b/media-plugins/vdr-iptv/files/vdr-iptv-2.2.1_c++11.patch
17 new file mode 100644
18 index 00000000..c188291
19 --- /dev/null
20 +++ b/media-plugins/vdr-iptv/files/vdr-iptv-2.2.1_c++11.patch
21 @@ -0,0 +1,28 @@
22 +common.h still use function typeof,
23 +this was never defined in c++ and is
24 +not supported in c++11 anymore
25 +so we revert back to gnu++03 as it is not fixed by upstream
26 +Signed-of-by: Joerg Bornkessel <hd_brummy@g.o> (2016/aug/01)
27 +diff -Naur satip-2.2.3.orig/Makefile satip-2.2.3/Makefile
28 +--- satip-2.2.3.orig/Makefile 2016-08-03 23:17:36.769080128 +0200
29 ++++ satip-2.2.3/Makefile 2016-08-03 23:18:36.399080128 +0200
30 +@@ -32,6 +32,7 @@
31 +
32 + export CFLAGS = $(call PKGCFG,cflags)
33 + export CXXFLAGS = $(call PKGCFG,cxxflags)
34 ++export CXXFLAGS += -std=gnu++03
35 + STRIP = true
36 +
37 + ### The version number of VDR's plugin API:
38 +diff -Naur iptv-2.2.1.orig/common.h iptv-2.2.1/common.h
39 +--- iptv-2.2.1.orig/common.h 2016-08-07 19:32:59.623090044 +0200
40 ++++ iptv-2.2.1/common.h 2016-08-07 19:33:30.243091614 +0200
41 +@@ -36,7 +36,7 @@
42 + do { \
43 + if (exp) { \
44 + char tmp[64]; \
45 +- esyslog("[%s,%d]: "errstr": %s", __FILE__, __LINE__, \
46 ++ esyslog("[%s,%d]: " errstr ": %s", __FILE__, __LINE__, \
47 + strerror_r(errno, tmp, sizeof(tmp))); \
48 + func; \
49 + ret; \
50
51 diff --git a/media-plugins/vdr-iptv/vdr-iptv-2.2.1-r1.ebuild b/media-plugins/vdr-iptv/vdr-iptv-2.2.1-r1.ebuild
52 new file mode 100644
53 index 00000000..9abd462
54 --- /dev/null
55 +++ b/media-plugins/vdr-iptv/vdr-iptv-2.2.1-r1.ebuild
56 @@ -0,0 +1,43 @@
57 +# Copyright 1999-2016 Gentoo Foundation
58 +# Distributed under the terms of the GNU General Public License v2
59 +# $Id$
60 +
61 +EAPI=6
62 +
63 +inherit vdr-plugin-2
64 +
65 +DESCRIPTION="VDR plugin: Add a logical device capable of receiving IPTV"
66 +HOMEPAGE="http://www.saunalahti.fi/~rahrenbe/vdr/iptv/"
67 +SRC_URI="http://www.saunalahti.fi/~rahrenbe/vdr/iptv/files/${P}.tgz"
68 +
69 +LICENSE="GPL-2"
70 +SLOT="0"
71 +KEYWORDS="~amd64 ~x86"
72 +IUSE=""
73 +
74 +DEPEND=">=media-video/vdr-2.1.6"
75 +RDEPEND="${DEPEND}
76 + net-misc/curl"
77 +
78 +src_prepare() {
79 + vdr-plugin-2_src_prepare
80 +
81 + fix_vdr_libsi_include sidscanner.c
82 +
83 + eapply "${FILESDIR}/${P}_c++11.patch"
84 +}
85 +
86 +#src_install() {
87 +# vdr-plugin-2_src_install
88 +
89 +# dobin iptv/image.sh
90 +# dobin iptv/iptvstream-notrap.sh
91 +# dobin iptv/linein.sh
92 +# dobin iptv/webcam.sh
93 +# dobin iptv/internetradio.sh
94 +# dobin iptv/iptvstream.sh
95 +# dobin iptv/vlc2iptv
96 +
97 +# insinto /usr/share/vdr/plugins/iptv
98 +# doins iptv/*
99 +#}