git: d08b5879b85c - main - math/scalapackfx: New port: Modern Fortran wrappers around ScaLAPACK routines

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 18 Jan 2022 06:39:49 UTC
The branch main has been updated by yuri:

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

commit d08b5879b85c4f906a26dd2494233ad263597e58
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-01-18 06:32:38 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-01-18 06:39:35 +0000

    math/scalapackfx: New port: Modern Fortran wrappers around ScaLAPACK routines
---
 math/Makefile              |  1 +
 math/scalapackfx/Makefile  | 31 +++++++++++++++++++++++++++++++
 math/scalapackfx/distinfo  |  3 +++
 math/scalapackfx/pkg-descr |  5 +++++
 math/scalapackfx/pkg-plist | 20 ++++++++++++++++++++
 5 files changed, 60 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 9f829a8890ba..d41bbff7eb2f 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -993,6 +993,7 @@
     SUBDIR += sc
     SUBDIR += sc-im
     SUBDIR += scalapack
+    SUBDIR += scalapackfx
     SUBDIR += scilab
     SUBDIR += scilab-toolbox-swt
     SUBDIR += scs
diff --git a/math/scalapackfx/Makefile b/math/scalapackfx/Makefile
new file mode 100644
index 000000000000..54a63a5c04d9
--- /dev/null
+++ b/math/scalapackfx/Makefile
@@ -0,0 +1,31 @@
+PORTNAME=	scalapackfx
+DISTVERSION=	1.0.2
+CATEGORIES=	math
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Modern Fortran wrappers around ScaLAPACK routines
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	fypp:devel/py-fypp@${PY_FLAVOR}
+LIB_DEPENDS=	libmpi.so:net/mpich \
+		libmpifort.so:net/mpich \
+		libopenblas.so:math/openblas \
+		libscalapack.so:math/scalapack
+
+USES=		cmake fortran python:build
+USE_LDCONFIG=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	dftbplus
+
+CMAKE_ARGS=	-DSCALAPACK_LIBRARY=${LOCALBASE}
+LDFLAGS+=	-lscalapack
+
+CMAKE_ON=	BUILD_SHARED_LIBS
+
+do-test:
+	@cd ${WRKSRC}/test && mpirun -n 2 ${BUILD_WRKSRC}/test/test_det
+
+.include <bsd.port.mk>
diff --git a/math/scalapackfx/distinfo b/math/scalapackfx/distinfo
new file mode 100644
index 000000000000..01813edf75cf
--- /dev/null
+++ b/math/scalapackfx/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1642486855
+SHA256 (dftbplus-scalapackfx-1.0.2_GH0.tar.gz) = 842908c0ae46f1d669c5cb1a4123cfdf8749e29d7249aa589107c5163c29f0fc
+SIZE (dftbplus-scalapackfx-1.0.2_GH0.tar.gz) = 79391
diff --git a/math/scalapackfx/pkg-descr b/math/scalapackfx/pkg-descr
new file mode 100644
index 000000000000..c8256e135b03
--- /dev/null
+++ b/math/scalapackfx/pkg-descr
@@ -0,0 +1,5 @@
+ScalapackFx library provides convenient modern Fortran (Fortran 2003)
+wrappers for the routines of the ScaLAPACK library. Currently mostly
+the routines related to diagonalization are covered.
+
+WWW: https://github.com/dftbplus/scalapackfx
diff --git a/math/scalapackfx/pkg-plist b/math/scalapackfx/pkg-plist
new file mode 100644
index 000000000000..c3f3a5d7a879
--- /dev/null
+++ b/math/scalapackfx/pkg-plist
@@ -0,0 +1,20 @@
+include/scalapackfx/modfiles/blacs_module.mod
+include/scalapackfx/modfiles/blacsfx_module.mod
+include/scalapackfx/modfiles/blacsgrid_module.mod
+include/scalapackfx/modfiles/libscalapackfx_module.mod
+include/scalapackfx/modfiles/linecomm_module.mod
+include/scalapackfx/modfiles/pblas_module.mod
+include/scalapackfx/modfiles/pblasfx_module.mod
+include/scalapackfx/modfiles/scalapack_module.mod
+include/scalapackfx/modfiles/scalapackfx_common_module.mod
+include/scalapackfx/modfiles/scalapackfx_module.mod
+include/scalapackfx/modfiles/scalapackfx_tools_module.mod
+lib/cmake/scalapackfx/Modules/CustomLibraryFinder.cmake
+lib/cmake/scalapackfx/Modules/FindCustomLapack.cmake
+lib/cmake/scalapackfx/Modules/FindCustomScalapack.cmake
+lib/cmake/scalapackfx/scalapackfx-config-version.cmake
+lib/cmake/scalapackfx/scalapackfx-config.cmake
+lib/cmake/scalapackfx/scalapackfx-targets-%%CMAKE_BUILD_TYPE%%.cmake
+lib/cmake/scalapackfx/scalapackfx-targets.cmake
+lib/libscalapackfx.so
+libdata/pkgconfig/scalapackfx.pc