<pre style='margin:0'>
Herby Gillot (herbygillot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/51fc93c14a21a10e9b6fccbc4fc82ed68900e2f8">https://github.com/macports/macports-ports/commit/51fc93c14a21a10e9b6fccbc4fc82ed68900e2f8</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 51fc93c14a21a10e9b6fccbc4fc82ed68900e2f8
</span>Author: Kirill A. Korinsky <kirill@korins.ky>
AuthorDate: Mon May 8 01:07:21 2023 +0200
<span style='display:block; white-space:pre;color:#404040;'> gfan: new submission (version 0.6.2)
</span>---
math/gfan/Portfile | 63 +++++++++++++++++++++++++++++++++++++
math/gfan/files/patch-Makefile.diff | 32 +++++++++++++++++++
math/gfan/files/patch-log.diff | 15 +++++++++
3 files changed, 110 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/gfan/Portfile b/math/gfan/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..2966177606e
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/gfan/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,63 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup makefile 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name gfan
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 0.6.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision 0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories math
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license {GPL-2 GPL-3}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers {@catap korins.ky:kirill} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://users-math.au.dk/jensen/software/gfan/gfan.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Gfan is a software package for computing Gröbner fans and tropical varieties.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description {*}${description}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites https://users-math.au.dk/jensen/software/gfan/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distfiles ${name}${version}${extract.suffix}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 01a49b25644bd5e7cabb26fb7733eb6aec97f3fc \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 a674d5e5dc43634397de0d55dd5da3c32bd358d05f72b73a50e62c1a1686f10a \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 1321059
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+extract.rename yes
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.c_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cflags-append -std=c++14
</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;'>+patchfiles patch-log.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-Makefile.diff
</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;'>+post-patch {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|-L/usr/local|-L${prefix}/lib|" ${worksrcpath}/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if { [string match *clang* ${configure.compiler}] } {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ reinplace "s|-fno-guess-branch-probability||" ${worksrcpath}/Makefile
</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;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_lib-append port:cddlib \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:gmp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+configure.cflags-append -I${prefix}/include/cddlib
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build.pre_args cddnoprefix=true
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ file copy ${worksrcpath}/gfan ${destroot}${prefix}/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ system -W ${destroot}${prefix}/bin "./gfan installlinks"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ xinstall -m 644 -W ${worksrcpath} LICENSE COPYING README ${destroot}${prefix}/share/doc/${name}
</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;'>+livecheck.type regex
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.url https://users-math.au.dk/jensen/software/gfan/gfan.html
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+livecheck.regex "${name}(\[\\d.]+)${extract.suffix}"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/gfan/files/patch-Makefile.diff b/math/gfan/files/patch-Makefile.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..72aaf13396d
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/gfan/files/patch-Makefile.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,32 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -110,9 +110,9 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ PREFIX =
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ SHELL = /bin/sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #ARCH = LINUX
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CC = $(PREFIX)gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CC ?= $(PREFIX)gcc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CLINKER = $(CC)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CXX = $(PREFIX)g++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CXX ?= $(PREFIX)g++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CCLINKER = $(CXX)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #OPTFLAGS = -O2 -DGMPRATIONAL -DNDEBUG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Note that gcc produces wrong code with -O3
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -125,7 +125,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #OPTFLAGS = -DGMPRATIONAL -Wuninitialized -fno-omit-frame-pointer -O3 -msse2 -ftree-vectorizer-verbose=2 -ffast-math #-DNDEBUG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #OPTFLAGS = -DGMPRATIONAL -Wuninitialized -fno-omit-frame-pointer -O3 -mavx -msse2 -ftree-vectorizer-verbose=2 -ffast-math #-DNDEBUG
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-CFLAGS = $(OPTFLAGS) $(GPROFFLAG) $(STACTDUMP_OPTIONS) $(ADDITIONALINCLUDEOPTIONS) -std=c++0x -g $(CDDDEFINE_PREFIX) #-pedantic
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++CFLAGS += $(OPTFLAGS) $(GPROFFLAG) $(STACTDUMP_OPTIONS) $(ADDITIONALINCLUDEOPTIONS) -g $(CDDDEFINE_PREFIX) #-pedantic
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #CFLAGS = $(OPTFLAGS) $(GPROFFLAG) $(STACTDUMP_OPTIONS) $(ADDITIONALINCLUDEOPTIONS) -D_GLIBCXX_DEBUG -std=c++0x -g $(CDDDEFINE_PREFIX) #-pedantic
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ CCFLAGS = $(CFLAGS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ FFLAGS = $(OPTFLAGS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -420,7 +421,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $(MAIN): $(OBJECTS)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # $(CCLINKER) $(OBJECTS) $(ADDITIONALLINKOPTIONS) $(GPROFFLAG) -lpthread -o $(MAIN)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- $(CCLINKER) $(OBJECTS) $(ADDITIONALLINKOPTIONS) $(GPROFFLAG) -lpthread -rdynamic -o $(MAIN)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ $(CCLINKER) $(OBJECTS) $(ADDITIONALLINKOPTIONS) $(GPROFFLAG) $(LDFLAGS) -lpthread -dynamic -o $(MAIN)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ release:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ rm -f -r $(RELEASEDIR)/*
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/math/gfan/files/patch-log.diff b/math/gfan/files/patch-log.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..3f75da6b025
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/math/gfan/files/patch-log.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,15 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- src/timer.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ src/timer.cpp
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,10 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "timer.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-#include "log.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include "iostream"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <time.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #include <assert.h>
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++#include "log.h"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ using namespace std;
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Timer* Timer::timers;
</span></pre><pre style='margin:0'>
</pre>