<pre style='margin:0'>
Marcus Calhoun-Lopez (MarcusCalhoun-Lopez) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/bccf6228540c8056f5aaa4310bd8cd25cdce3f5d">https://github.com/macports/macports-ports/commit/bccf6228540c8056f5aaa4310bd8cd25cdce3f5d</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit bccf6228540c8056f5aaa4310bd8cd25cdce3f5d
</span>Author: Marcus Calhoun-Lopez <mcalhoun@macports.org>
AuthorDate: Sun Aug 18 08:47:13 2019 -0700
<span style='display:block; white-space:pre;color:#404040;'> plplot-single: fix typo in code
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Typo introduced in
</span><span style='display:block; white-space:pre;color:#404040;'> https://sourceforge.net/p/plplot/plplot/ci/7e7acff15a6eb8aff3b13d94740622b571f0ad77/
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> No revbump since port either builds correctly or not at all.
</span>---
science/plplot/Portfile | 2 ++
science/plplot/files/patch-src-plmap.c.diff | 31 +++++++++++++++++++++++++++++
2 files changed, 33 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/plplot/Portfile b/science/plplot/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index c8ad3f4..246035a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/science/plplot/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/plplot/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -29,6 +29,8 @@ plotting contexts."
</span>
long_description ${description_base} This port uses double precision.
<span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles-append patch-src-plmap.c.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> compilers.choose fc f90
compilers.setup
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/science/plplot/files/patch-src-plmap.c.diff b/science/plplot/files/patch-src-plmap.c.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..a28fee6
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/science/plplot/files/patch-src-plmap.c.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,31 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/plmap.c.orig 2019-06-01 16:24:33.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/plmap.c 2019-08-18 08:42:10.000000000 -0700
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -76,6 +76,10 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PLINT i;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PLFLT *renderX;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PLFLT *renderY;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#ifndef PL_DOUBLE
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PLFLT *fltX;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ PLFLT *fltY;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#endif
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //we need to do something a bit different with filled polygons. The issue is the poles
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //on lat/lon plots. If we draw Antarctica then we expect it to be filled, but this
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -135,7 +139,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ renderY = newY;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fltX = malloc( ( n + nExtraPoints ) * sizeof ( PLFLT ) );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- fltX = malloc( ( n + nExtraPoints ) * sizeof ( PLFLT ) );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ fltY = malloc( ( n + nExtraPoints ) * sizeof ( PLFLT ) );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ( !fltX || !fltY )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ free( fltX );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -187,7 +191,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ renderY = y;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #else
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ fltX = malloc( n * sizeof ( PLFLT ) );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- fltX = malloc( n * sizeof ( PLFLT ) );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ fltY = malloc( n * sizeof ( PLFLT ) );
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if ( !fltX || !fltY )
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ free( fltX );
</span></pre><pre style='margin:0'>
</pre>