Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Nov 2021 13:45:17 GMT
From:      Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 696c7661135b - main - databases/py-caterva: Add py-caterva 0.6.0
Message-ID:  <202111011345.1A1DjHIm048519@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by sunpoet:

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

commit 696c7661135bd1e54f381fd68ba364b43a64ab9a
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2021-11-01 13:23:15 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2021-11-01 13:41:20 +0000

    databases/py-caterva: Add py-caterva 0.6.0
    
    Python wrapper for Caterva.
    
    WWW: https://github.com/Blosc/python-caterva
---
 databases/Makefile                                 |  1 +
 databases/py-caterva/Makefile                      | 32 ++++++++++++++++++++++
 databases/py-caterva/distinfo                      |  3 ++
 .../py-caterva/files/patch-caterva-CMakeLists.txt  | 22 +++++++++++++++
 databases/py-caterva/pkg-descr                     |  3 ++
 5 files changed, 61 insertions(+)

diff --git a/databases/Makefile b/databases/Makefile
index 0910e48865f4..8d57ffa545ec 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -757,6 +757,7 @@
     SUBDIR += py-bsddb3
     SUBDIR += py-carbon
     SUBDIR += py-cassandra-driver
+    SUBDIR += py-caterva
     SUBDIR += py-couchdb
     SUBDIR += py-dbf
     SUBDIR += py-dbutils
diff --git a/databases/py-caterva/Makefile b/databases/py-caterva/Makefile
new file mode 100644
index 000000000000..dacdf871a530
--- /dev/null
+++ b/databases/py-caterva/Makefile
@@ -0,0 +1,32 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+
+PORTNAME=	caterva
+PORTVERSION=	0.6.0
+CATEGORIES=	databases python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Caterva for Python (multidimensional compressed data containers)
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	cmake:devel/cmake \
+		ninja:devel/ninja \
+		${PYTHON_PKGNAMEPREFIX}scikit-build>=0:devel/py-scikit-build@${PY_FLAVOR}
+LIB_DEPENDS=	libblosc2.so:archivers/c-blosc2 \
+		libcaterva.so:databases/caterva
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}ndindex>=0:math/py-ndindex@${PY_FLAVOR}
+
+USES=		localbase:ldflags python:3.7+
+USE_PYTHON=	autoplist concurrent cython distutils
+
+post-patch:
+# Clean up bundled libraries
+	@${RM} -fr ${WRKSRC}/caterva/caterva/
+
+post-install:
+	${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +
+
+.include <bsd.port.mk>
diff --git a/databases/py-caterva/distinfo b/databases/py-caterva/distinfo
new file mode 100644
index 000000000000..38989d234bc2
--- /dev/null
+++ b/databases/py-caterva/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1635730873
+SHA256 (caterva-0.6.0.tar.gz) = 08aedc5c7a342babab0771dfcd6bdc18d7212e9dd9b77b513b00e1ba07d4023e
+SIZE (caterva-0.6.0.tar.gz) = 1443173
diff --git a/databases/py-caterva/files/patch-caterva-CMakeLists.txt b/databases/py-caterva/files/patch-caterva-CMakeLists.txt
new file mode 100644
index 000000000000..a4967ca7c7be
--- /dev/null
+++ b/databases/py-caterva/files/patch-caterva-CMakeLists.txt
@@ -0,0 +1,22 @@
+--- caterva/CMakeLists.txt.orig	2021-07-14 09:59:59 UTC
++++ caterva/CMakeLists.txt
+@@ -1,18 +1,7 @@
+-set(STATIC_LIB ON CACHE BOOL "Build a static version of the blosc library.")
+-set(SHARED_LIB ON CACHE BOOL "Build a shared library version of the blosc
+-    library.")
+-set(CATERVA_BUILD_TESTS OFF CACHE BOOL "Build Caterva tests")
+-set(CATERVA_BUILD_EXAMPLES OFF CACHE BOOL "Build Caterva examples")
+-set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+-add_subdirectory(caterva)
+-include_directories("${CMAKE_CURRENT_SOURCE_DIR}/caterva/caterva")
+-include_directories("${CMAKE_CURRENT_SOURCE_DIR}/caterva/contribs/c-blosc2/include")
+-
+-
+ add_cython_target(caterva_ext caterva_ext.pyx)
+ add_library(caterva_ext MODULE ${caterva_ext})
+ 
+-target_link_libraries(caterva_ext caterva_static)
++target_link_libraries(caterva_ext caterva)
+ 
+ python_extension_module(caterva_ext)
+ 
diff --git a/databases/py-caterva/pkg-descr b/databases/py-caterva/pkg-descr
new file mode 100644
index 000000000000..dfe9e258fac9
--- /dev/null
+++ b/databases/py-caterva/pkg-descr
@@ -0,0 +1,3 @@
+Python wrapper for Caterva.
+
+WWW: https://github.com/Blosc/python-caterva



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111011345.1A1DjHIm048519>