<pre style='margin:0'>
Chris Jones (cjones051073) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/f692476264263c5ad94eab309204028a65874a5e">https://github.com/macports/macports-ports/commit/f692476264263c5ad94eab309204028a65874a5e</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 f692476 pstoedit: use abs from cmath
</span>f692476 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit f692476264263c5ad94eab309204028a65874a5e
</span>Author: Davide Liessi <davide.liessi@gmail.com>
AuthorDate: Sun Jul 21 01:00:45 2019 +0200
<span style='display:block; white-space:pre;color:#404040;'> pstoedit: use abs from cmath
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Closes: https://trac.macports.org/ticket/58602
</span>---
graphics/pstoedit/Portfile | 1 +
graphics/pstoedit/files/patch-src-dxfacad.h.diff | 16 ++++++++++++++++
2 files changed, 17 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/pstoedit/Portfile b/graphics/pstoedit/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 2b52964..bdf99b2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/graphics/pstoedit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/pstoedit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -36,6 +36,7 @@ depends_run port:ghostscript
</span>
patchfiles patch-config-pstoedit.pc.in.diff \
patch-configure.ac.diff \
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-src-dxfacad.h.diff \
</span> patch-src-cppcomp.h.diff
use_autoreconf yes
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/graphics/pstoedit/files/patch-src-dxfacad.h.diff b/graphics/pstoedit/files/patch-src-dxfacad.h.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..e2189a2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/graphics/pstoedit/files/patch-src-dxfacad.h.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,16 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/dxfacad.h.orig 2019-01-06 12:59:59.000000000 +0100
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/dxfacad.h 2019-07-21 00:50:07.000000000 +0200
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,3 +1,4 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include <cmath>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ static const char dxf14acadheader_prelayer1 [] =
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ " 0\n"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ "SECTION\n"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -245,7 +246,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ friend ostream & operator << (ostream & out, const DXF_LineType & lt) {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ double length = 0.0;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- for (auto l : lt.m_pattern) length += abs(l);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ for (auto l : lt.m_pattern) length += std::abs(l);
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ out <<
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ " 0\n"
</span></pre><pre style='margin:0'>
</pre>