<pre style='margin:0'>
tobypeterson pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/1e50c1885c476c86a28f7504175f0fae3183c902">https://github.com/macports/macports-ports/commit/1e50c1885c476c86a28f7504175f0fae3183c902</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new 1e50c18  ansifilter: fix compiler incompatibility on OSX 10.8 and below
</span>1e50c18 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit 1e50c1885c476c86a28f7504175f0fae3183c902
</span>Author: Helmut K. C. Tessarek <tessarek@evermeet.cx>
AuthorDate: Wed Apr 12 22:29:34 2017 -0400

<span style='display:block; white-space:pre;color:#404040;'>    ansifilter: fix compiler incompatibility on OSX 10.8 and below
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Older compilers do not have the C++11 standard included.
</span><span style='display:block; white-space:pre;color:#404040;'>    ansilfilter uses unique_ptr, which is only available in C++11.
</span><span style='display:block; white-space:pre;color:#404040;'>    This patch removes the C++11 flag from the compiler options and
</span><span style='display:block; white-space:pre;color:#404040;'>    replaces the unique_ptr with a auto_ptr type.
</span>---
 textproc/ansifilter/Portfile                                  |  6 ++++++
 .../files/0001-make-it-work-with-old-compilers-main.cpp.patch | 11 +++++++++++
 .../files/0001-make-it-work-with-old-compilers-makefile.patch | 11 +++++++++++
 3 files changed, 28 insertions(+)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/ansifilter/Portfile b/textproc/ansifilter/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 99fa488..9b124a0 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/textproc/ansifilter/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/ansifilter/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -25,3 +25,9 @@ checksums       rmd160  bb1619fc5a734718a06e1e0e15a95ffed95cb686 \
</span> use_configure   no
 
 destroot.args   PREFIX="${prefix}"
<span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# The OS provided compilers on Mac OSX 10.8 and below do not like C++11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+if {${os.platform} eq "darwin" && ${os.major} < 13} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   patchfiles  0001-make-it-work-with-old-compilers-main.cpp.patch \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+               0001-make-it-work-with-old-compilers-makefile.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/ansifilter/files/0001-make-it-work-with-old-compilers-main.cpp.patch b/textproc/ansifilter/files/0001-make-it-work-with-old-compilers-main.cpp.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..c051519
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/ansifilter/files/0001-make-it-work-with-old-compilers-main.cpp.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./src/main.cpp.orig    2017-04-12 15:45:45.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./src/main.cpp 2017-04-12 15:48:21.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -113,7 +113,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     const  vector <string> inFileList=options.getInputFileNames();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-    unique_ptr<ansifilter::CodeGenerator> generator(ansifilter::CodeGenerator::getInstance(options.getOutputType()));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++    auto_ptr<ansifilter::CodeGenerator> generator(ansifilter::CodeGenerator::getInstance(options.getOutputType()));
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+     string outDirectory = options.getOutDirectory();
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/textproc/ansifilter/files/0001-make-it-work-with-old-compilers-makefile.patch b/textproc/ansifilter/files/0001-make-it-work-with-old-compilers-makefile.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..7f323b3
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/textproc/ansifilter/files/0001-make-it-work-with-old-compilers-makefile.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- ./src/makefile.orig    2017-04-12 15:45:31.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ ./src/makefile 2017-04-12 15:47:17.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -6,7 +6,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CC=g++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Added -std=c++11 because of auto_ptr to unique_ptr transition
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CFLAGS= -c -Wall -O2 -DNDEBUG -std=c++11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CFLAGS= -c -Wall -O2 -DNDEBUG 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ LDFLAGS=
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span></pre><pre style='margin:0'>

</pre>