From 398b683849779a6e62a0891e012a83491dca657d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Tue, 26 May 2020 09:33:00 +0200 Subject: media-gfx/openscad: try to fix build --- media-gfx/openscad/files/50openscad-gentoo.el | 3 +++ .../openscad-2019.05_fix-boost-1.72.0-build.patch | 27 ++++++++++++++++++++++ .../openscad-2019.05_fix-boost-1.73.0-build.patch | 11 +++++++++ 3 files changed, 41 insertions(+) create mode 100644 media-gfx/openscad/files/50openscad-gentoo.el create mode 100644 media-gfx/openscad/files/openscad-2019.05_fix-boost-1.72.0-build.patch create mode 100644 media-gfx/openscad/files/openscad-2019.05_fix-boost-1.73.0-build.patch (limited to 'media-gfx/openscad/files') diff --git a/media-gfx/openscad/files/50openscad-gentoo.el b/media-gfx/openscad/files/50openscad-gentoo.el new file mode 100644 index 0000000..3cc7c1a --- /dev/null +++ b/media-gfx/openscad/files/50openscad-gentoo.el @@ -0,0 +1,3 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'scad-mode "scad-mode" "Major mode for editing SCAD code." t) +(add-to-list 'auto-mode-alist '("\\.scad$" . scad-mode)) diff --git a/media-gfx/openscad/files/openscad-2019.05_fix-boost-1.72.0-build.patch b/media-gfx/openscad/files/openscad-2019.05_fix-boost-1.72.0-build.patch new file mode 100644 index 0000000..28d3285 --- /dev/null +++ b/media-gfx/openscad/files/openscad-2019.05_fix-boost-1.72.0-build.patch @@ -0,0 +1,27 @@ +From b6c170cc5dd1bc677176ee732cdb0ddae57e5cf0 Mon Sep 17 00:00:00 2001 +From: Jan Beich +Date: Fri, 25 Oct 2019 15:10:26 +0000 +Subject: [PATCH] Add missing header bootlegged by Boost < 1.72 + +src/parser.y:76:6: error: no template named 'stack' in namespace 'std' +std::stack scope_stack; +~~~~~^ +--- + src/parser.y | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/parser.y b/src/parser.y +index 7f4fd56c..4c77c989 100644 +--- a/src/parser.y ++++ b/src/parser.y +@@ -46,6 +46,7 @@ + #include "printutils.h" + #include "memory.h" + #include ++#include + #include + #include "boost-utils.h" + #include "feature.h" +-- +2.24.1 + diff --git a/media-gfx/openscad/files/openscad-2019.05_fix-boost-1.73.0-build.patch b/media-gfx/openscad/files/openscad-2019.05_fix-boost-1.73.0-build.patch new file mode 100644 index 0000000..041d241 --- /dev/null +++ b/media-gfx/openscad/files/openscad-2019.05_fix-boost-1.73.0-build.patch @@ -0,0 +1,11 @@ +--- a/src/import.cc 2019-03-30 22:14:41.000000000 -0600 ++++ b/src/import.cc2 2020-05-10 20:30:19.704599229 -0600 +@@ -50,7 +50,7 @@ + #include + using namespace boost::assign; // bring 'operator+=()' into scope + +-#include ++#include + #include + + extern PolySet * import_amf(std::string, const Location &loc); -- cgit v1.2.3