git: 6c90ba4cc895 - main - math/kahip: New port: Karlsruhe high quality graph partitioning

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 26 Jun 2022 02:23:04 UTC
The branch main has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=6c90ba4cc89559afe8ebffd92c8bde97de443191

commit 6c90ba4cc89559afe8ebffd92c8bde97de443191
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-06-26 01:21:05 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-06-26 02:22:57 +0000

    math/kahip: New port: Karlsruhe high quality graph partitioning
---
 math/Makefile        |  1 +
 math/kahip/Makefile  | 23 +++++++++++++++++++++++
 math/kahip/distinfo  |  3 +++
 math/kahip/pkg-descr | 12 ++++++++++++
 math/kahip/pkg-plist | 25 +++++++++++++++++++++++++
 5 files changed, 64 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index ba5ac17f60e8..36314ef12293 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -398,6 +398,7 @@
     SUBDIR += jsmath-fonts
     SUBDIR += jtransforms
     SUBDIR += jts
+    SUBDIR += kahip
     SUBDIR += kalgebra
     SUBDIR += kalker
     SUBDIR += kbruch
diff --git a/math/kahip/Makefile b/math/kahip/Makefile
new file mode 100644
index 000000000000..71ea0a64683c
--- /dev/null
+++ b/math/kahip/Makefile
@@ -0,0 +1,23 @@
+PORTNAME=	kahip
+DISTVERSIONPREFIX=	v
+DISTVERSION=	3.14-19
+DISTVERSIONSUFFIX=	-g5956007
+CATEGORIES=	math
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Karlsruhe high quality graph partitioning
+
+LICENSE=	GPLv3
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+LIB_DEPENDS=	libmetis.so:math/metis \
+		libmpi.so:net/mpich
+
+USES=		cmake localbase
+USE_LDCONFIG=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	KaHIP
+GH_PROJECT=	KaHIP
+
+.include <bsd.port.mk>
diff --git a/math/kahip/distinfo b/math/kahip/distinfo
new file mode 100644
index 000000000000..b8fcf57265a2
--- /dev/null
+++ b/math/kahip/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1656203807
+SHA256 (KaHIP-KaHIP-v3.14-19-g5956007_GH0.tar.gz) = c890983b9fd4ba2464526981c3677a63de9ea8d4e6c518e3140a9ee7a45cf99a
+SIZE (KaHIP-KaHIP-v3.14-19-g5956007_GH0.tar.gz) = 3061437
diff --git a/math/kahip/pkg-descr b/math/kahip/pkg-descr
new file mode 100644
index 000000000000..d7c4719d6170
--- /dev/null
+++ b/math/kahip/pkg-descr
@@ -0,0 +1,12 @@
+KaHIP - Karlsruhe High Quality Partitioning - is a family of graph
+partitioning programs. It includes KaFFPa (Karlsruhe Fast Flow
+Partitioner), which is a multilevel graph partitioning algorithm, in
+its variants Strong, Eco and Fast, KaFFPaE (KaFFPaEvolutionary) which
+is a parallel evolutionary algorithm that uses KaFFPa to provide
+combine and mutation operations, as well as KaBaPE which extends the
+evolutionary algorithm. Moreover, specialized techniques are included
+to partition road networks (Buffoon), to output a vertex separator
+from a given partition or techniques geared towards efficient
+partitioning of social networks.
+
+WWW: https://kahip.github.io/
diff --git a/math/kahip/pkg-plist b/math/kahip/pkg-plist
new file mode 100644
index 000000000000..22ae6f88c448
--- /dev/null
+++ b/math/kahip/pkg-plist
@@ -0,0 +1,25 @@
+bin/dspac
+bin/edge_list_to_metis_graph
+bin/edge_partitioning
+bin/evaluator
+bin/fast_node_ordering
+bin/global_multisection
+bin/graph2binary
+bin/graph2binary_external
+bin/graphchecker
+bin/interface_test
+bin/kaffpa
+bin/kaffpaE
+bin/label_propagation
+bin/node_ordering
+bin/node_separator
+bin/parhip
+bin/partition_to_vertex_separator
+bin/readbgf
+bin/toolbox
+include/kaHIP_interface.h
+include/parhip_interface.h
+lib/libkahip.so
+lib/libkahip_static.a
+lib/libparhip_interface.so
+lib/libparhip_interface_static.a