From nobody Mon Nov 1 13:45:17 2021 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 05C151835F11; Mon, 1 Nov 2021 13:45:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HjZ6P6V5Fz4jPT; Mon, 1 Nov 2021 13:45:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4DADB1296D; Mon, 1 Nov 2021 13:45:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1A1DjHhq048520; Mon, 1 Nov 2021 13:45:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1A1DjHIm048519; Mon, 1 Nov 2021 13:45:17 GMT (envelope-from git) Date: Mon, 1 Nov 2021 13:45:17 GMT Message-Id: <202111011345.1A1DjHIm048519@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 696c7661135b - main - databases/py-caterva: Add py-caterva 0.6.0 List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 696c7661135bd1e54f381fd68ba364b43a64ab9a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=696c7661135bd1e54f381fd68ba364b43a64ab9a commit 696c7661135bd1e54f381fd68ba364b43a64ab9a Author: Po-Chuan Hsieh AuthorDate: 2021-11-01 13:23:15 +0000 Commit: Po-Chuan Hsieh 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 + +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 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