From nobody Sat Nov 27 05:26:10 2021 X-Original-To: dev-commits-ports-main@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 32A1D18A21C2; Sat, 27 Nov 2021 05:26:11 +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 4J1KpV6T9Cz4wfW; Sat, 27 Nov 2021 05:26:10 +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 BDB3E16423; Sat, 27 Nov 2021 05:26:10 +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 1AR5QAKO004607; Sat, 27 Nov 2021 05:26:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AR5QAQF004606; Sat, 27 Nov 2021 05:26:10 GMT (envelope-from git) Date: Sat, 27 Nov 2021 05:26:10 GMT Message-Id: <202111270526.1AR5QAQF004606@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 9320013175ca - main - math/xtensor-python: New port: Python bindings for xtensor List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 9320013175ca67645adfb30423d8fef817d9cc51 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637990770; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=iIxcRyqyxGnF7nYRmD0TyzXwNSD/arTLOwlL0iE95jY=; b=mbFNDOonR3D/imFIAzh8rvDa42CdwYphfNG+N0xzLYqh1s8TA1NPa1giNcLUrsFeSZlLP+ GiJEmD1tHWj2HvcHZuv8XRShMoaKEbcu1HdkBJVEz3Hqy4W7Zyo63Mbf3KWWPMo97k0ub/ somMIL8grzUNUmLe0KIxGsMF4kJ5URmZvqiz9ApDa2sT/lcUKrt7fDZM19Z4a9UHN+5UOY ZB7xzjTd7w0bp+jQmWao/cafC8weYwGjo/7ySq6v/vZvu/YXLFZw+vjO/VhMptJR1oUvMJ AFMzIuAusE3DmVWtNWimxERsYtuz6xIlZs3QdsM2IWOCvPg2fBm5RV07xH/3yQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637990770; a=rsa-sha256; cv=none; b=ICa/7jabik1vYQ3Oqbb/rrQZdBpqg9euTr02Cz2omF7voAGxGiHnY03J7XgdHNuA4fMJte /mDZ83ozOjk24H1HK0PrwfCM1ZwU+i4V3PDqY5T+l/1jkKn0OVohOyKEKYxo4GkCV8LVCw yOhLV6dEewWhv6sFgVOBRs8lEoWMRpuj6AF8ijl7he71WadHSOzRqvL35mC7w67uCr0gmF AQRlUc0WeK4DFK9ertpT8RS1WlwfaNm+/VfvPZY2YGWcZKrrh1lqRKBQadbiAKXfsUrbZC pBliqeWSDwmHnm74RGzfdWvUEQPTfRhTBFtAB1kxqK4m82up8Bca4F2o/mMnVA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=9320013175ca67645adfb30423d8fef817d9cc51 commit 9320013175ca67645adfb30423d8fef817d9cc51 Author: Yuri Victorovich AuthorDate: 2021-11-27 02:32:03 +0000 Commit: Yuri Victorovich CommitDate: 2021-11-27 05:26:06 +0000 math/xtensor-python: New port: Python bindings for xtensor --- math/Makefile | 1 + math/xtensor-python/Makefile | 35 +++++++++++++++++++++++++++++++++++ math/xtensor-python/distinfo | 3 +++ math/xtensor-python/pkg-descr | 6 ++++++ math/xtensor-python/pkg-plist | 12 ++++++++++++ 5 files changed, 57 insertions(+) diff --git a/math/Makefile b/math/Makefile index f86ef164dfd4..6a9063d94961 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1077,6 +1077,7 @@ SUBDIR += xtensor SUBDIR += xtensor-blas SUBDIR += xtensor-io + SUBDIR += xtensor-python SUBDIR += yacas SUBDIR += yices SUBDIR += z3 diff --git a/math/xtensor-python/Makefile b/math/xtensor-python/Makefile new file mode 100644 index 000000000000..d379e46afa83 --- /dev/null +++ b/math/xtensor-python/Makefile @@ -0,0 +1,35 @@ +PORTNAME= xtensor-python +DISTVERSION= 0.26.0 +CATEGORIES= math python + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Python bindings for xtensor # it is called "bindings" but it doesn't install python modules, it's rather a header-only library to use xtensor from python extensions + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +HPP_DEPENDS= xtensor>0:math/xtensor \ + pybind11>0:devel/pybind11 \ + ${PYNUMPY} +BUILD_DEPENDS= ${HPP_DEPENDS} +RUN_DEPENDS= ${HPP_DEPENDS} +TEST_DEPENDS= googletest>0:devel/googletest \ + pybind11>0:devel/pybind11 + +USES= cmake compiler:c++14-lang python + +USE_GITHUB= yes +GH_ACCOUNT= xtensor-stack + +CXXFLAGS+= -I${PYTHON_INCLUDEDIR} -I${PYTHON_SITELIBDIR}/numpy/core/include # workaround for https://github.com/xtensor-stack/xtensor-python/issues/272 + +NO_BUILD= yes +NO_ARCH= yes + +do-test: install + @cd ${WRKSRC}/test && \ + ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} . && \ + ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} && \ + ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} xtest + +.include diff --git a/math/xtensor-python/distinfo b/math/xtensor-python/distinfo new file mode 100644 index 000000000000..b8b0d49b69be --- /dev/null +++ b/math/xtensor-python/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1637967434 +SHA256 (xtensor-stack-xtensor-python-0.26.0_GH0.tar.gz) = 04dcfe84181c23f364b1e68a6d55d89d1679f31d8da0372db01af72534baf728 +SIZE (xtensor-stack-xtensor-python-0.26.0_GH0.tar.gz) = 66262 diff --git a/math/xtensor-python/pkg-descr b/math/xtensor-python/pkg-descr new file mode 100644 index 000000000000..88657f65699a --- /dev/null +++ b/math/xtensor-python/pkg-descr @@ -0,0 +1,6 @@ +Python bindings for the xtensor C++ multi-dimensional array library. + +xtensor is a C++ library for multi-dimensional arrays enabling numpy-style +broadcasting and lazy computing. + +WWW: https://github.com/xtensor-stack/xtensor-python diff --git a/math/xtensor-python/pkg-plist b/math/xtensor-python/pkg-plist new file mode 100644 index 000000000000..e9f7970198bd --- /dev/null +++ b/math/xtensor-python/pkg-plist @@ -0,0 +1,12 @@ +include/xtensor-python/pyarray.hpp +include/xtensor-python/pyarray_backstrides.hpp +include/xtensor-python/pycontainer.hpp +include/xtensor-python/pynative_casters.hpp +include/xtensor-python/pystrides_adaptor.hpp +include/xtensor-python/pytensor.hpp +include/xtensor-python/pyvectorize.hpp +include/xtensor-python/xtensor_python_config.hpp +include/xtensor-python/xtensor_type_caster_base.hpp +lib/cmake/xtensor-python/xtensor-pythonConfig.cmake +lib/cmake/xtensor-python/xtensor-pythonConfigVersion.cmake +lib/cmake/xtensor-python/xtensor-pythonTargets.cmake