media-gfx/freecad: Patch out internal boost::re_detail for boost 1.60
authorDavid Seifert <soap@gentoo.org>
Sun, 3 Apr 2016 19:07:12 +0000 (21:07 +0200)
committerDavid Seifert <soap@gentoo.org>
Sun, 3 Apr 2016 19:07:56 +0000 (21:07 +0200)
Gentoo-Bug: 578910

Package-Manager: portage-2.2.28

media-gfx/freecad/files/freecad-0.15.4671-boost-1.60.patch [new file with mode: 0644]
media-gfx/freecad/freecad-0.15.4671.ebuild

diff --git a/media-gfx/freecad/files/freecad-0.15.4671-boost-1.60.patch b/media-gfx/freecad/files/freecad-0.15.4671-boost-1.60.patch
new file mode 100644 (file)
index 0000000..4a7dbab
--- /dev/null
@@ -0,0 +1,16 @@
+From e0683f4db0fb56f8139f78ca2e500b21ec2a67f0 Mon Sep 17 00:00:00 2001\r
+From: wmayer <wmayer@users.sourceforge.net>\r
+Date: Mon, 28 Dec 2015 13:54:40 +0100\r
+Subject: [PATCH] + fixes #0002347: freecad fails to build with Boost 1.60.0\r
+\r
+--- freecad-0.15.4671/src/Mod/Drawing/App/FeaturePage.cpp
++++ freecad-0.15.4671/src/Mod/Drawing/App/FeaturePage.cpp
+@@ -195,7 +195,7 @@
+             if (count < editText.size()) {\r
+                 // change values of editable texts\r
+                 boost::regex e2 ("(<text.*?freecad:editable=\""+what[1].str()+"\".*?<tspan.*?)>(.*?)(</tspan>)");\r
+-                boost::re_detail::string_out_iterator<std::string > out(newfragment);\r
++                std::back_insert_iterator<std::string> out(newfragment);\r
+                 boost::regex_replace(out, begin, what[0].second, e2, "$1>"+editText[count]+"$3");\r
+             }\r
+             count++;\r
index d0e09c63b81c22e9ec47ef58ca0cbc19583725f9..4c5cb71353afbfafe0048ac2387b7f5f2a092aaa 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -61,7 +61,8 @@ src_prepare() {
        einfo remove bundled libs
        rm -rf src/3rdParty/{boost,Pivy*}
 
-       epatch "${FILESDIR}"/${PN}-0.14.3702-install-paths.patch
+       epatch "${FILESDIR}"/${PN}-0.14.3702-install-paths.patch \
+               "${FILESDIR}"/${P}-boost-1.60.patch
 
        #bug 518996
        sed -e "/LibDir = /s:'lib':'"$(get_libdir)"':g" \