git: 2e1a65e8d177 - main - math/libceed: CEED Library: Code for Efficient Extensible Discretizations

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Thu, 24 Oct 2024 06:03:28 UTC
The branch main has been updated by yuri:

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

commit 2e1a65e8d1774c35da444bdd73204470e303bba0
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-10-24 02:16:00 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-10-24 06:03:24 +0000

    math/libceed: CEED Library: Code for Efficient Extensible Discretizations
---
 math/Makefile          |  1 +
 math/libceed/Makefile  | 30 ++++++++++++++++++
 math/libceed/distinfo  |  3 ++
 math/libceed/pkg-descr |  3 ++
 math/libceed/pkg-plist | 86 ++++++++++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 123 insertions(+)

diff --git a/math/Makefile b/math/Makefile
index 1bb2cae8b7ab..f24073883517 100644
--- a/math/Makefile
+++ b/math/Makefile
@@ -451,6 +451,7 @@
     SUBDIR += libRmath
     SUBDIR += libbraiding
     SUBDIR += libccd
+    SUBDIR += libceed
     SUBDIR += libcerf
     SUBDIR += libdivide
     SUBDIR += libdivsufsort
diff --git a/math/libceed/Makefile b/math/libceed/Makefile
new file mode 100644
index 000000000000..d0a854162387
--- /dev/null
+++ b/math/libceed/Makefile
@@ -0,0 +1,30 @@
+PORTNAME=	libceed
+DISTVERSIONPREFIX=	v
+DISTVERSION=	0.12.0-763
+DISTVERSIONSUFFIX=	-ge3ae47f6
+CATEGORIES=	math # machine-learning
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	CEED Library: Code for Efficient Extensible Discretizations
+WWW=		https://libceed.org/en/latest/
+
+LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		fortran gmake python:build,test
+USE_LDCONFIG=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	CEED
+GH_PROJECT=	libCEED
+
+CFLAGS+=	-fPIC # https://github.com/CEED/libCEED/issues/1706
+
+TEST_TARGET=	test # tests fail, see https://github.com/CEED/libCEED/issues/1705
+
+BINARY_ALIAS=	python3=${PYTHON_CMD}
+
+post-install:
+	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libceed.so
+
+.include <bsd.port.mk>
diff --git a/math/libceed/distinfo b/math/libceed/distinfo
new file mode 100644
index 000000000000..7484df314fb6
--- /dev/null
+++ b/math/libceed/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1729731290
+SHA256 (CEED-libCEED-v0.12.0-763-ge3ae47f6_GH0.tar.gz) = e7137cb55d8505500a6d85c869722a2c39bd8e45abea31bc5f5d5f3e895c6291
+SIZE (CEED-libCEED-v0.12.0-763-ge3ae47f6_GH0.tar.gz) = 3385219
diff --git a/math/libceed/pkg-descr b/math/libceed/pkg-descr
new file mode 100644
index 000000000000..c530134e1532
--- /dev/null
+++ b/math/libceed/pkg-descr
@@ -0,0 +1,3 @@
+libCEED provides fast algebra for element-based discretizations, designed for
+performance portability, run-time flexibility, and clean embedding in higher
+level libraries and applications.
diff --git a/math/libceed/pkg-plist b/math/libceed/pkg-plist
new file mode 100644
index 000000000000..be209e969f0b
--- /dev/null
+++ b/math/libceed/pkg-plist
@@ -0,0 +1,86 @@
+include/ceed.h
+include/ceed/backend.h
+include/ceed/ceed-f32.h
+include/ceed/ceed-f64.h
+include/ceed/ceed.h
+include/ceed/cuda.h
+include/ceed/fortran.h
+include/ceed/hip.h
+include/ceed/jit-source/cuda/cuda-atomic-add-fallback.h
+include/ceed/jit-source/cuda/cuda-gen-templates.h
+include/ceed/jit-source/cuda/cuda-jit.h
+include/ceed/jit-source/cuda/cuda-ref-basis-nontensor-templates.h
+include/ceed/jit-source/cuda/cuda-ref-basis-nontensor.h
+include/ceed/jit-source/cuda/cuda-ref-basis-tensor-at-points.h
+include/ceed/jit-source/cuda/cuda-ref-basis-tensor.h
+include/ceed/jit-source/cuda/cuda-ref-operator-assemble-diagonal.h
+include/ceed/jit-source/cuda/cuda-ref-operator-assemble.h
+include/ceed/jit-source/cuda/cuda-ref-qfunction.h
+include/ceed/jit-source/cuda/cuda-ref-restriction-at-points.h
+include/ceed/jit-source/cuda/cuda-ref-restriction-curl-oriented.h
+include/ceed/jit-source/cuda/cuda-ref-restriction-offset.h
+include/ceed/jit-source/cuda/cuda-ref-restriction-oriented.h
+include/ceed/jit-source/cuda/cuda-ref-restriction-strided.h
+include/ceed/jit-source/cuda/cuda-shared-basis-read-write-templates.h
+include/ceed/jit-source/cuda/cuda-shared-basis-tensor-templates.h
+include/ceed/jit-source/cuda/cuda-shared-basis-tensor.h
+include/ceed/jit-source/cuda/cuda-types.h
+include/ceed/jit-source/gallery/ceed-identity.h
+include/ceed/jit-source/gallery/ceed-mass1dbuild.h
+include/ceed/jit-source/gallery/ceed-mass2dbuild.h
+include/ceed/jit-source/gallery/ceed-mass3dbuild.h
+include/ceed/jit-source/gallery/ceed-massapply.h
+include/ceed/jit-source/gallery/ceed-poisson1dapply.h
+include/ceed/jit-source/gallery/ceed-poisson1dbuild.h
+include/ceed/jit-source/gallery/ceed-poisson2dapply.h
+include/ceed/jit-source/gallery/ceed-poisson2dbuild.h
+include/ceed/jit-source/gallery/ceed-poisson3dapply.h
+include/ceed/jit-source/gallery/ceed-poisson3dbuild.h
+include/ceed/jit-source/gallery/ceed-scale.h
+include/ceed/jit-source/gallery/ceed-vectormassapply.h
+include/ceed/jit-source/gallery/ceed-vectorpoisson1dapply.h
+include/ceed/jit-source/gallery/ceed-vectorpoisson2dapply.h
+include/ceed/jit-source/gallery/ceed-vectorpoisson3dapply.h
+include/ceed/jit-source/hip/hip-gen-templates.h
+include/ceed/jit-source/hip/hip-jit.h
+include/ceed/jit-source/hip/hip-ref-basis-nontensor-templates.h
+include/ceed/jit-source/hip/hip-ref-basis-nontensor.h
+include/ceed/jit-source/hip/hip-ref-basis-tensor-at-points.h
+include/ceed/jit-source/hip/hip-ref-basis-tensor.h
+include/ceed/jit-source/hip/hip-ref-operator-assemble-diagonal.h
+include/ceed/jit-source/hip/hip-ref-operator-assemble.h
+include/ceed/jit-source/hip/hip-ref-qfunction.h
+include/ceed/jit-source/hip/hip-ref-restriction-at-points.h
+include/ceed/jit-source/hip/hip-ref-restriction-curl-oriented.h
+include/ceed/jit-source/hip/hip-ref-restriction-offset.h
+include/ceed/jit-source/hip/hip-ref-restriction-oriented.h
+include/ceed/jit-source/hip/hip-ref-restriction-strided.h
+include/ceed/jit-source/hip/hip-shared-basis-read-write-templates.h
+include/ceed/jit-source/hip/hip-shared-basis-tensor-templates.h
+include/ceed/jit-source/hip/hip-shared-basis-tensor.h
+include/ceed/jit-source/hip/hip-types.h
+include/ceed/jit-source/magma/magma-basis-grad-1d.h
+include/ceed/jit-source/magma/magma-basis-grad-2d.h
+include/ceed/jit-source/magma/magma-basis-grad-3d.h
+include/ceed/jit-source/magma/magma-basis-interp-1d.h
+include/ceed/jit-source/magma/magma-basis-interp-2d.h
+include/ceed/jit-source/magma/magma-basis-interp-3d.h
+include/ceed/jit-source/magma/magma-basis-interp-deriv-nontensor.h
+include/ceed/jit-source/magma/magma-basis-weight-1d.h
+include/ceed/jit-source/magma/magma-basis-weight-2d.h
+include/ceed/jit-source/magma/magma-basis-weight-3d.h
+include/ceed/jit-source/magma/magma-basis-weight-nontensor.h
+include/ceed/jit-source/magma/magma-common-defs.h
+include/ceed/jit-source/magma/magma-common-nontensor.h
+include/ceed/jit-source/magma/magma-common-tensor.h
+include/ceed/jit-source/sycl/sycl-gen-templates.h
+include/ceed/jit-source/sycl/sycl-jit.h
+include/ceed/jit-source/sycl/sycl-ref-qfunction.h
+include/ceed/jit-source/sycl/sycl-shared-basis-read-write-templates.h
+include/ceed/jit-source/sycl/sycl-shared-basis-tensor-templates.h
+include/ceed/jit-source/sycl/sycl-shared-basis-tensor.h
+include/ceed/jit-source/sycl/sycl-types.h
+include/ceed/types.h
+include/ceedf.h
+lib/libceed.so
+libdata/pkgconfig/ceed.pc