<pre style='margin:0'>
Andrew Stromnov (stromnov) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e32d07a1692e839b33a30400f136534fe5f900e4">https://github.com/macports/macports-ports/commit/e32d07a1692e839b33a30400f136534fe5f900e4</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 e32d07a1692 py-networkit: update to 9.0
</span>e32d07a1692 is described below

<span style='display:block; white-space:pre;color:#808000;'>commit e32d07a1692e839b33a30400f136534fe5f900e4
</span>Author: Andrey Stromnov <stromnov@macports.org>
AuthorDate: Thu Jul 29 09:02:29 2021 +0300

<span style='display:block; white-space:pre;color:#404040;'>    py-networkit: update to 9.0
</span>---
 python/py-networkit/Portfile                       | 33 ++++++---------
 .../py-networkit/files/patch-CMakeLists.txt.diff   | 11 +++++
 python/py-networkit/files/patch-setup.py.diff      | 48 +++++-----------------
 3 files changed, 34 insertions(+), 58 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-networkit/Portfile b/python/py-networkit/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 5c637c89b7f..0c46be37679 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-networkit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-networkit/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -4,13 +4,13 @@ PortSystem          1.0
</span> PortGroup           python 1.0
 
 name                py-networkit
<span style='display:block; white-space:pre;background:#ffe0e0;'>-version             7.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version             9.0
</span> revision            0
 categories-append   devel
 platforms           darwin
 license             MIT
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-python.versions     37 38
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions     37 38 39
</span> 
 maintainers         {stromnov @stromnov} openmaintainer
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -19,39 +19,30 @@ long_description    ${description}
</span> 
 homepage            https://networkit.iti.kit.edu/
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums           rmd160  432de3a8ff849835059ea2972cb6b7c5071845e0 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    sha256  eea4b5e565d6990b674e1c7f4d598be9377d57b61d0d82883ecc39edabaf3631 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                    size    1905444
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums           rmd160  ed6cd21d1d2053d02f6113bb78e2b809beb21329 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    sha256  e27872d0d6a8a0a1ba862b0dab6adb4f0046fe6b20d3c47863075d1ee70226d3 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                    size    3238059
</span> 
 if {${name} ne ${subport}} {
     compiler.cxx_standard 2017
     compiler.openmp_version 2.5
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    patchfiles-append   patch-setup.py.diff
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    post-patch {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        # force cython usage
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        file delete ${worksrcpath}/networkit/_NetworKit.cpp
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        reinplace "s|@@PREFIX@@|${prefix}|" ${worksrcpath}/setup.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        reinplace "s|@@CYTHON@@|cython-${python.branch}|" ${worksrcpath}/setup.py
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span>     depends_build-append \
                         port:py${python.version}-setuptools \
                         port:py${python.version}-cython \
                         port:cmake
 
     depends_lib-append  port:py${python.version}-scipy \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                        port:py${python.version}-matplotlib \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                        port:py${python.version}-pandas \
</span>                         port:py${python.version}-numpy \
<span style='display:block; white-space:pre;background:#ffe0e0;'>-                        port:py${python.version}-networkx \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                        port:py${python.version}-tabulate \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                        port:py${python.version}-seaborn \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                        port:py${python.version}-scikit-learn \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                        port:py${python.version}-ipython \
</span>                         port:libomp
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    patchfiles-append   patch-setup.py.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                        patch-CMakeLists.txt.diff
</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|@PYTHONBIN@|${python.bin}|g" ${worksrcpath}/setup.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     build.env-append    "CXX=${configure.cxx}"
 
     destroot.env-append "CXX=${configure.cxx}"
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-networkit/files/patch-CMakeLists.txt.diff b/python/py-networkit/files/patch-CMakeLists.txt.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 00000000000..62f60e9f214
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-networkit/files/patch-CMakeLists.txt.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- CMakeLists.txt.orig    2021-07-28 16:07:03.000000000 +0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ CMakeLists.txt 2021-07-28 16:08:57.000000000 +0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -55,7 +55,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ################################################################################
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Compilation Flags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set(NETWORKIT_CXX_FLAGS "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-set(NETWORKIT_LINK_FLAGS "")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++set(NETWORKIT_LINK_FLAGS "-I/opt/local/include/libomp -L/opt/local/lib/libomp -fopenmp")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if (NETWORKIT_QUIET_LOGGING)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   set(NETWORKIT_CXX_FLAGS "-DNETWORKIT_QUIET_LOGGING")
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-networkit/files/patch-setup.py.diff b/python/py-networkit/files/patch-setup.py.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index adb94d31245..b4432870da3 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-networkit/files/patch-setup.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-networkit/files/patch-setup.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,37 +1,11 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- setup.py.orig  2020-03-02 01:23:13.000000000 +0300
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ setup.py       2020-03-02 01:26:39.000000000 +0300
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -24,6 +24,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   sys.exit(1)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ninja_available = shutil.which("ninja") is not None
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+ninja_available = False
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- if not (ninja_available or shutil.which("make")):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   print("ERROR: NetworKit compilation requires Make or Ninja.")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   sys.exit(1)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -117,7 +118,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- def cythonizeFile(filepath):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   cpp_file = filepath.replace("pyx","cpp")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- 
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--  cython_available = shutil.which("cython") is not None
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+  cython_available = shutil.which("@@CYTHON@@") is not None
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   if not cython_available:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-           if not os.path.isfile(cpp_file):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                   print("ERROR: Neither cython nor _NetworKit.cpp is provided. Build cancelled", flush=True)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -134,7 +135,7 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-           if not os.path.isfile(filepath):
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                   print("_NetworKit.pyx is not available. Build cancelled.")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                   exit(1)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--          comp_cmd = ["cython","-3","--cplus","-t",filepath]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+          comp_cmd = ["@@CYTHON@@","-3","--cplus","-t",filepath]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-           if not subprocess.call(comp_cmd) == 0:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                   print("cython returned an error, exiting setup.py")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-                   exit(1)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-@@ -163,6 +164,8 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   comp_cmd.append(os.getcwd()) #call CMakeLists.txt from networkit root
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   if rpath:
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-           comp_cmd.append("-DNETWORKIT_PYTHON_RPATH="+rpath)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+  comp_cmd.append("-DLIBOMP_PATH=@@PREFIX@@/lib/libomp")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+  comp_cmd.append("-DLIBOMP_INCLUDE=@@PREFIX@@/include/libomp")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   # Run cmake
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   print("initializing NetworKit compilation with: '{0}'".format(" ".join(comp_cmd)), flush=True)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   if not subprocess.call(comp_cmd, cwd=buildDirectory) == 0:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- setup.py.orig  2021-07-28 13:18:29.000000000 +0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ setup.py       2021-07-28 13:55:30.000000000 +0300
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -133,6 +133,8 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   # Build cmake call
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   abs_prefix = os.path.join(os.getcwd(), install_prefix)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   comp_cmd = ["cmake","-DCMAKE_BUILD_TYPE=Release"]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  comp_cmd.append("-DPython_EXECUTABLE=@PYTHONBIN@")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++  comp_cmd.append("-DPython3_EXECUTABLE=@PYTHONBIN@")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   comp_cmd.append("-DCMAKE_INSTALL_PREFIX="+abs_prefix)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   comp_cmd.append("-DCMAKE_CXX_COMPILER="+cmakeCompiler)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   comp_cmd.append("-DNETWORKIT_FLATINSTALL=ON")
</span></pre><pre style='margin:0'>

</pre>