git: 7605224ac113 - main - devel/py-zfp: New port: High throughput library for compressed floating-point arrays

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 01 Nov 2022 10:36:13 UTC
The branch main has been updated by yuri:

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

commit 7605224ac113f2f5e03b9dbce519d151fd9270ef
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-11-01 06:50:43 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-11-01 10:36:07 +0000

    devel/py-zfp: New port: High throughput library for compressed floating-point arrays
---
 devel/Makefile                          |  1 +
 devel/py-zfp/Makefile                   | 25 +++++++++++++++++++++++++
 devel/py-zfp/distinfo                   |  3 +++
 devel/py-zfp/files/patch-CMakeLists.txt |  8 ++++++++
 devel/py-zfp/pkg-descr                  |  4 ++++
 5 files changed, 41 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 647778df374a..09a1f8aa3f0c 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5585,6 +5585,7 @@
     SUBDIR += py-zc.buildout
     SUBDIR += py-zclockfile
     SUBDIR += py-zconfig
+    SUBDIR += py-zfp
     SUBDIR += py-zict
     SUBDIR += py-zipp
     SUBDIR += py-zope.app.basicskin
diff --git a/devel/py-zfp/Makefile b/devel/py-zfp/Makefile
new file mode 100644
index 000000000000..9874fb5ff7f9
--- /dev/null
+++ b/devel/py-zfp/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	zfp
+DISTVERSION=	1.0.0
+CATEGORIES=	devel science
+MASTER_SITES=	https://github.com/LLNL/${PORTNAME}/releases/download/${DISTVERSION}/
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	High throughput library for compressed floating-point arrays
+WWW=		https://computing.llnl.gov/projects/zfp
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/scikit-build-cmake/LICENSE
+
+BUILD_DEPENDS=	${PYNUMPY}
+LIB_DEPENDS=	libzfp.so:devel/zfp
+RUN_DEPENDS=	${PYNUMPY}
+
+USES=		cmake localbase:ldflags python
+USE_PYTHON=	cython flavors
+
+WRKSRC_SUBDIR=	python
+
+PLIST_FILES=	${PYTHON_SITELIBDIR}/zfpy${PYTHON_EXT_SUFFIX}.so
+
+.include <bsd.port.mk>
diff --git a/devel/py-zfp/distinfo b/devel/py-zfp/distinfo
new file mode 100644
index 000000000000..dace46c794cb
--- /dev/null
+++ b/devel/py-zfp/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1660978478
+SHA256 (zfp-1.0.0.tar.gz) = 0ea08ae3e50e3c92f8b8cf41ba5b6e2de8892bc4a4ca0c59b8945b6c2ab617c4
+SIZE (zfp-1.0.0.tar.gz) = 180465
diff --git a/devel/py-zfp/files/patch-CMakeLists.txt b/devel/py-zfp/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..8e349e8ec025
--- /dev/null
+++ b/devel/py-zfp/files/patch-CMakeLists.txt
@@ -0,0 +1,8 @@
+--- CMakeLists.txt.orig	2022-08-01 21:04:02 UTC
++++ CMakeLists.txt
+@@ -1,3 +1,5 @@
++cmake_minimum_required(VERSION 3.9)
++
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR}/scikit-build-cmake)
+ include(UseCython)
+ include(FindPythonExtensions)
diff --git a/devel/py-zfp/pkg-descr b/devel/py-zfp/pkg-descr
new file mode 100644
index 000000000000..f14c4ca260e1
--- /dev/null
+++ b/devel/py-zfp/pkg-descr
@@ -0,0 +1,4 @@
+zfp is a BSD licensed open source C/C++ library for compressed floating-point
+arrays that support very high throughput read and write random access. zfp was
+written by Peter Lindstrom, Markus Salasoo, and Matt Larsen at Lawrence
+Livermore National Laboratory.