From 9cbbcfa81f0786a10daf0693b2a10a5627631ccb Mon Sep 17 00:00:00 2001 From: Pacho Ramos Date: Sun, 9 Apr 2017 12:22:12 +0200 Subject: sci-visualization/nonolith-connect: Fix gcc6 support (#594330 by Peter Levine) Package-Manager: Portage-2.3.5, Repoman-2.3.2 --- .../nonolith-connect/files/1.1-gcc6.patch | 14 ++++++++++++++ .../nonolith-connect/nonolith-connect-1.1.ebuild | 18 +++++++++--------- 2 files changed, 23 insertions(+), 9 deletions(-) create mode 100644 sci-visualization/nonolith-connect/files/1.1-gcc6.patch (limited to 'sci-visualization') diff --git a/sci-visualization/nonolith-connect/files/1.1-gcc6.patch b/sci-visualization/nonolith-connect/files/1.1-gcc6.patch new file mode 100644 index 000000000000..815c3ca866c7 --- /dev/null +++ b/sci-visualization/nonolith-connect/files/1.1-gcc6.patch @@ -0,0 +1,14 @@ +--- nonolith-connect-1.1/websocketpp/src/websocket_server_session.cpp.old 2016-09-25 18:13:31.820474134 -0400 ++++ nonolith-connect-1.1/websocketpp/src/websocket_server_session.cpp 2016-09-25 18:38:52.654567787 -0400 +@@ -41,8 +41,11 @@ + #include + #include + #include ++ ++#if __cplusplus < 201103L + #include + using __gnu_cxx::copy_n; ++#endif + + using websocketpp::server_session; + diff --git a/sci-visualization/nonolith-connect/nonolith-connect-1.1.ebuild b/sci-visualization/nonolith-connect/nonolith-connect-1.1.ebuild index c33a929da916..955e544fbc61 100644 --- a/sci-visualization/nonolith-connect/nonolith-connect-1.1.ebuild +++ b/sci-visualization/nonolith-connect/nonolith-connect-1.1.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -EAPI=5 +EAPI=6 -inherit eutils scons-utils toolchain-funcs user +inherit scons-utils toolchain-funcs user DESCRIPTION="CEE (Control - Experiment - Explore) analog multitool" HOMEPAGE="http://www.nonolithlabs.com/cee/" @@ -16,20 +16,20 @@ IUSE="" RDEPEND=" dev-libs/boost - virtual/udev" + virtual/udev +" DEPEND="${RDEPEND}" -PATCHES=( "${FILESDIR}/${PV}-cflags-respect.patch" ) +PATCHES=( + "${FILESDIR}/${PV}-cflags-respect.patch" + "${FILESDIR}/${PV}-gcc6.patch" +) pkg_setup() { tc-export CC CXX enewuser nonolithd -1 -1 /dev/null usb } -src_prepare() { - epatch "${PATCHES[@]}" -} - src_configure() { myesconsargs=( boost_static=0 -- cgit v1.2.3-65-gdbad