math/xtensor-io: New port: Xtensor plugin to read/write images, audio files, numpy npz and HDF5

This commit is contained in:
Yuri Victorovich 2021-11-26 11:39:58 -08:00
parent efa95596af
commit de46e513ae
5 changed files with 69 additions and 0 deletions

View file

@ -1076,6 +1076,7 @@
SUBDIR += xspread
SUBDIR += xtensor
SUBDIR += xtensor-blas
SUBDIR += xtensor-io
SUBDIR += yacas
SUBDIR += yices
SUBDIR += z3

30
math/xtensor-io/Makefile Normal file
View file

@ -0,0 +1,30 @@
PORTNAME= xtensor-io
DISTVERSION= 0.13.0
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Xtensor plugin to read/write images, audio files, numpy npz and HDF5
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
HPP_DEPENDS= xtensor>0:math/xtensor
BUILD_DEPENDS= ${HPP_DEPENDS}
RUN_DEPENDS= ${HPP_DEPENDS}
TEST_DEPENDS= googletest>0:devel/googletest
USES= cmake compiler:c++14-lang
USE_GITHUB= yes
GH_ACCOUNT= xtensor-stack
NO_BUILD= yes
NO_ARCH= yes
do-test: install # tests fail to compile, see https://github.com/xtensor-stack/xtensor-io/issues/168
@cd ${WRKSRC}/test && \
${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} . && \
${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} && \
${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} xtest
.include <bsd.port.mk>

3
math/xtensor-io/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1637954965
SHA256 (xtensor-stack-xtensor-io-0.13.0_GH0.tar.gz) = 470bedee082adb0ef25ef7b54f9cfd3684e27b8489c42cf7980e0d90c14d04da
SIZE (xtensor-stack-xtensor-io-0.13.0_GH0.tar.gz) = 402965

View file

@ -0,0 +1,9 @@
xtensor-io offers an API to read and write various file formats into xtensor
data structures:
* images
* audio files
* NumPy's compressed storage format (NPZ)
* HDF5 files
* Blosc
WWW: https://github.com/xtensor-stack/xtensor-io

26
math/xtensor-io/pkg-plist Normal file
View file

@ -0,0 +1,26 @@
include/xtensor-io/thirdparty/zstr/strict_fstream.hpp
include/xtensor-io/thirdparty/zstr/zstr.hpp
include/xtensor-io/xaudio.hpp
include/xtensor-io/xchunk_store_manager.hpp
include/xtensor-io/xfile_array.hpp
include/xtensor-io/xgdal.hpp
include/xtensor-io/xhighfive.hpp
include/xtensor-io/ximage.hpp
include/xtensor-io/xio_aws_handler.hpp
include/xtensor-io/xio_binary.hpp
include/xtensor-io/xio_blosc.hpp
include/xtensor-io/xio_disk_handler.hpp
include/xtensor-io/xio_file_wrapper.hpp
include/xtensor-io/xio_gcs_handler.hpp
include/xtensor-io/xio_gdal_handler.hpp
include/xtensor-io/xio_gzip.hpp
include/xtensor-io/xio_stream_wrapper.hpp
include/xtensor-io/xio_vsilfile_wrapper.hpp
include/xtensor-io/xio_zlib.hpp
include/xtensor-io/xnpz.hpp
include/xtensor-io/xtensor-io.hpp
include/xtensor-io/xtensor_io_config.hpp
lib/cmake/xtensor-io/xtensor-ioConfig.cmake
lib/cmake/xtensor-io/xtensor-ioConfigVersion.cmake
lib/cmake/xtensor-io/xtensor-ioTargets.cmake
libdata/pkgconfig/xtensor-io.pc