media-plugins/vdr-rssreader: fixed compile c++11, wrt bug 594470
authorJoerg Bornkessel <hd_brummy@gentoo.org>
Wed, 28 Sep 2016 10:00:24 +0000 (12:00 +0200)
committerJoerg Bornkessel <hd_brummy@gentoo.org>
Wed, 28 Sep 2016 10:00:24 +0000 (12:00 +0200)
Package-Manager: portage-2.3.0

media-plugins/vdr-rssreader/files/vdr-rssreader-2.2.1_c++11.patch [new file with mode: 0644]
media-plugins/vdr-rssreader/vdr-rssreader-2.2.1-r1.ebuild [new file with mode: 0644]

diff --git a/media-plugins/vdr-rssreader/files/vdr-rssreader-2.2.1_c++11.patch b/media-plugins/vdr-rssreader/files/vdr-rssreader-2.2.1_c++11.patch
new file mode 100644 (file)
index 0000000..74d7593
--- /dev/null
@@ -0,0 +1,16 @@
+still use function typeof,
+this was never defined part of c++ and is
+not supported in c++11 anymore
+so we revert back to gnu++03 as it is not fixed by upstream
+Signed-of-by: Joerg Bornkessel <hd_brummy@gentoo.org> (2016/sep/28)
+diff -Naur rssreader-2.2.1.orig/Makefile rssreader-2.2.1/Makefile
+--- rssreader-2.2.1.orig/Makefile      2016-09-28 11:49:11.239051376 +0200
++++ rssreader-2.2.1/Makefile   2016-09-28 11:49:55.982051376 +0200
+@@ -28,6 +28,7 @@
+ 
+ export CFLAGS   = $(call PKGCFG,cflags)
+ export CXXFLAGS = $(call PKGCFG,cxxflags)
++export CXXFLAGS += -std=gnu++03
+ STRIP           ?= /bin/true
+ 
+ ### The version number of VDR's plugin API:
diff --git a/media-plugins/vdr-rssreader/vdr-rssreader-2.2.1-r1.ebuild b/media-plugins/vdr-rssreader/vdr-rssreader-2.2.1-r1.ebuild
new file mode 100644 (file)
index 0000000..c6f688f
--- /dev/null
@@ -0,0 +1,32 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit vdr-plugin-2
+
+DESCRIPTION="VDR Plugin: RSS reader"
+HOMEPAGE="http://www.saunalahti.fi/~rahrenbe/vdr/rssreader/"
+SRC_URI="http://www.saunalahti.fi/~rahrenbe/vdr/rssreader/files/${P}.tgz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=">=media-video/vdr-2.2.0
+               >=dev-libs/expat-1.95.8
+               >=net-misc/curl-7.15.1-r1"
+
+RDEPEND="${DEPEND}"
+
+PATCHES=("${FILESDIR}/${PN}-2.0.0-gentoo.diff"
+               "${FILESDIR}/${P}_c++11.patch" )
+
+src_install() {
+       vdr-plugin-2_src_install
+
+       insinto /etc/vdr/plugins/rssreader
+       doins "${S}/rssreader/rssreader.conf"
+}