diff --git a/archivers/Makefile b/archivers/Makefile index 35ecf91c7bb8..28342893c70d 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -1,292 +1,293 @@ COMMENT = Archivers SUBDIR += 7-zip SUBDIR += 9e SUBDIR += R-cran-zip SUBDIR += advancecomp SUBDIR += amigadepacker SUBDIR += ancient SUBDIR += apache-commons-compress SUBDIR += arc SUBDIR += arj SUBDIR += ark SUBDIR += ark-devel SUBDIR += atool SUBDIR += bicom SUBDIR += brotli SUBDIR += bzip SUBDIR += bzip2 SUBDIR += bzip3 SUBDIR += c-blosc SUBDIR += c-blosc2 SUBDIR += cabextract SUBDIR += ccmix SUBDIR += cmdpack SUBDIR += dact SUBDIR += deb2targz SUBDIR += deco SUBDIR += deutex SUBDIR += dpkg SUBDIR += draco SUBDIR += dzip SUBDIR += engrampa SUBDIR += fastjar SUBDIR += file-roller SUBDIR += gcab SUBDIR += gcpio SUBDIR += gnome-autoar SUBDIR += grzip SUBDIR += gtar SUBDIR += gzip SUBDIR += gzip-hpp SUBDIR += gzrecover SUBDIR += ha SUBDIR += hlextract SUBDIR += innoextract SUBDIR += javatar SUBDIR += kf5-karchive SUBDIR += kf6-karchive SUBDIR += kzip SUBDIR += laszip SUBDIR += lazperf SUBDIR += lbrate SUBDIR += lbzip2 SUBDIR += lcab SUBDIR += lha SUBDIR += lha-ac SUBDIR += lhasa SUBDIR += lib1541img SUBDIR += libarc SUBDIR += libarchive SUBDIR += libarchive-qt SUBDIR += libcabinet SUBDIR += libcomprex SUBDIR += libdeflate SUBDIR += libdynamite SUBDIR += liblz4 SUBDIR += liblzxcomp SUBDIR += libmspack SUBDIR += libpar2 SUBDIR += librtfcomp SUBDIR += libunrar SUBDIR += libzip SUBDIR += libzippp SUBDIR += linux-c7-lz4 SUBDIR += lizard SUBDIR += lrzip SUBDIR += lua-lzlib SUBDIR += lua-zlib SUBDIR += lxqt-archiver SUBDIR += lz4json SUBDIR += lzfse SUBDIR += lzip SUBDIR += lziprecover SUBDIR += lzlib SUBDIR += lzma SUBDIR += lzmalib SUBDIR += lzo2 SUBDIR += lzop SUBDIR += lzsa SUBDIR += makeself SUBDIR += mar SUBDIR += maxcso SUBDIR += minizip SUBDIR += minizip-ng SUBDIR += mscompress SUBDIR += mtf SUBDIR += nevada-toolset SUBDIR += nfpm SUBDIR += nomarch SUBDIR += nwreckdum SUBDIR += ocaml-bz2 SUBDIR += ocaml-zip SUBDIR += opkg-openwrt SUBDIR += ouch SUBDIR += p5-Archive-Any SUBDIR += p5-Archive-Any-Lite SUBDIR += p5-Archive-Any-Plugin-Rar SUBDIR += p5-Archive-Extract SUBDIR += p5-Archive-Extract-Libarchive SUBDIR += p5-Archive-Libarchive SUBDIR += p5-Archive-Peek SUBDIR += p5-Archive-Rar SUBDIR += p5-Archive-SimpleExtractor SUBDIR += p5-Archive-Tar SUBDIR += p5-Archive-Tar-Wrapper SUBDIR += p5-Archive-Zip SUBDIR += p5-Compress-Bzip2 SUBDIR += p5-Compress-LZ4 SUBDIR += p5-Compress-LZF SUBDIR += p5-Compress-LZO SUBDIR += p5-Compress-LZW SUBDIR += p5-Compress-Raw-Bzip2 SUBDIR += p5-Compress-Raw-Lzma SUBDIR += p5-Compress-Raw-Zlib SUBDIR += p5-Compress-Snappy SUBDIR += p5-Compress-Zstd SUBDIR += p5-Gzip-Faster SUBDIR += p5-IO-Compress SUBDIR += p5-IO-Compress-Brotli SUBDIR += p5-IO-Compress-Lzf SUBDIR += p5-IO-Compress-Lzma SUBDIR += p5-IO-Compress-Lzop SUBDIR += p5-IO-Zlib SUBDIR += p5-Mac-Macbinary SUBDIR += p5-POE-Filter-Bzip2 SUBDIR += p5-POE-Filter-LZF SUBDIR += p5-POE-Filter-LZO SUBDIR += p5-POE-Filter-LZW SUBDIR += p5-POE-Filter-Zlib SUBDIR += p5-PerlIO-gzip SUBDIR += p5-PerlIO-via-Bzip2 SUBDIR += packddir SUBDIR += paq SUBDIR += par SUBDIR += par2cmdline SUBDIR += par2cmdline-turbo SUBDIR += parchive SUBDIR += pbzip2 SUBDIR += pear-File_Archive SUBDIR += pear-Horde_Compress SUBDIR += pear-Horde_Compress_Fast SUBDIR += pear-Horde_Pack SUBDIR += pear-PHP_Archive SUBDIR += peazip SUBDIR += pecl-lzf SUBDIR += pecl-rar SUBDIR += php-brotli SUBDIR += php-horde_lz4 SUBDIR += php-lz4 SUBDIR += php-snappy SUBDIR += php-zstd SUBDIR += php81-bz2 SUBDIR += php81-phar SUBDIR += php81-zip SUBDIR += php81-zlib SUBDIR += php82-bz2 SUBDIR += php82-phar SUBDIR += php82-zip SUBDIR += php82-zlib SUBDIR += php83-bz2 SUBDIR += php83-phar SUBDIR += php83-zip SUBDIR += php83-zlib SUBDIR += pigz SUBDIR += pixz SUBDIR += plzip SUBDIR += ppmd SUBDIR += ppunpack SUBDIR += pxz SUBDIR += py-acefile + SUBDIR += py-bitshuffle SUBDIR += py-blosc2 SUBDIR += py-borgbackup SUBDIR += py-borgbackup11 SUBDIR += py-brotli SUBDIR += py-brotlicffi SUBDIR += py-brotlipy SUBDIR += py-bup SUBDIR += py-bz2file SUBDIR += py-compressed-rtf SUBDIR += py-cramjam SUBDIR += py-laszip SUBDIR += py-libarchive-c SUBDIR += py-lz4 SUBDIR += py-lzma SUBDIR += py-lzstring SUBDIR += py-patool SUBDIR += py-pyminizip SUBDIR += py-python-lhafile SUBDIR += py-python-lzo SUBDIR += py-python-rpm-packaging SUBDIR += py-python-snappy SUBDIR += py-pyunpack SUBDIR += py-rarfile SUBDIR += py-rcssmin SUBDIR += py-rjsmin SUBDIR += py-sozipfile SUBDIR += py-warctools SUBDIR += py-xopen SUBDIR += py-zipstream-ng SUBDIR += py-zlib-ng SUBDIR += py-zopfli SUBDIR += py-zstandard SUBDIR += py-zstd SUBDIR += qpress SUBDIR += quazip SUBDIR += rar SUBDIR += rpm2cpio SUBDIR += rpm4 SUBDIR += rubygem-archive-tar-minitar SUBDIR += rubygem-archive-zip SUBDIR += rubygem-bzip2-ffi SUBDIR += rubygem-bzip2-ruby SUBDIR += rubygem-fpm SUBDIR += rubygem-libarchive SUBDIR += rubygem-minitar SUBDIR += rubygem-minitar-cli SUBDIR += rubygem-ruby-xz SUBDIR += rubygem-rubyzip SUBDIR += rubygem-rubyzip13 SUBDIR += rubygem-rubyzip2 SUBDIR += rubygem-rubyzip20 SUBDIR += rubygem-snappy SUBDIR += rvm SUBDIR += rzip SUBDIR += sectar SUBDIR += sharutils SUBDIR += snappy SUBDIR += snappy-java SUBDIR += snzip SUBDIR += squsq SUBDIR += star SUBDIR += stormlib SUBDIR += streamvbyte SUBDIR += stuffit SUBDIR += szip SUBDIR += tar-stream-chunker SUBDIR += tardy SUBDIR += tartest SUBDIR += thunar-archive-plugin SUBDIR += torrentzip SUBDIR += ucl SUBDIR += unace SUBDIR += unadf SUBDIR += unalz SUBDIR += unarchiver SUBDIR += unarj SUBDIR += unarr SUBDIR += undms SUBDIR += unfoo SUBDIR += unlzx SUBDIR += unmakeself SUBDIR += unmass SUBDIR += unrar SUBDIR += unrar-iconv SUBDIR += unrpa SUBDIR += unshield SUBDIR += unzip SUBDIR += unzoo SUBDIR += upx SUBDIR += urbackup-client SUBDIR += urbackup-server SUBDIR += v1541commander SUBDIR += vbz-compression SUBDIR += xar SUBDIR += xarchive SUBDIR += xarchiver SUBDIR += xdms SUBDIR += xmill SUBDIR += xpk SUBDIR += zchunk SUBDIR += zip SUBDIR += zipmix SUBDIR += zipper SUBDIR += zlib-ng SUBDIR += zoo SUBDIR += zopfli SUBDIR += zpaqfranz SUBDIR += zstd SUBDIR += zstr SUBDIR += zutils .include diff --git a/archivers/py-bitshuffle/Makefile b/archivers/py-bitshuffle/Makefile new file mode 100644 index 000000000000..5d89c913325e --- /dev/null +++ b/archivers/py-bitshuffle/Makefile @@ -0,0 +1,28 @@ +PORTNAME= bitshuffle +PORTVERSION= 0.5.1 +CATEGORIES= archivers python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Bitshuffle filter for improving typed data compression +WWW= https://github.com/kiyo-masui/bitshuffle + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h5py>=2.4.0:science/py-h5py@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=0,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0.7:devel/py-setuptools@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}h5py>=2.4.0:science/py-h5py@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}numpy>=1.6.1,1:math/py-numpy@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}setuptools>=0.7:devel/py-setuptools@${PY_FLAVOR} + +USES= pkgconfig python +USE_PYTHON= autoplist concurrent cython pep517 + +post-install: + ${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} + + +.include diff --git a/archivers/py-bitshuffle/distinfo b/archivers/py-bitshuffle/distinfo new file mode 100644 index 000000000000..c8a2e59bc658 --- /dev/null +++ b/archivers/py-bitshuffle/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1710712300 +SHA256 (bitshuffle-0.5.1.tar.gz) = 988f224739aa6858475a4c59172968c7b51cc657d2249580c8f96848708fbae3 +SIZE (bitshuffle-0.5.1.tar.gz) = 229441 diff --git a/archivers/py-bitshuffle/files/patch-lzf-lzf_filter.c b/archivers/py-bitshuffle/files/patch-lzf-lzf_filter.c new file mode 100644 index 000000000000..2b15f0ebac8c --- /dev/null +++ b/archivers/py-bitshuffle/files/patch-lzf-lzf_filter.c @@ -0,0 +1,14 @@ +--- lzf/lzf_filter.c.orig 2022-11-26 00:17:16 UTC ++++ lzf/lzf_filter.c +@@ -51,11 +51,7 @@ + macro H5_USE_16_API is set + */ + +-#if H5_VERS_MAJOR == 1 && H5_VERS_MINOR == 8 && (H5_VERS_RELEASE < 3 || !H5_USE_16_API) + #define H5PY_H5Z_NEWCLS 1 +-#else +-#define H5PY_H5Z_NEWCLS 0 +-#endif + + size_t lzf_filter(unsigned flags, size_t cd_nelmts, + const unsigned cd_values[], size_t nbytes, diff --git a/archivers/py-bitshuffle/files/patch-pyproject.toml b/archivers/py-bitshuffle/files/patch-pyproject.toml new file mode 100644 index 000000000000..620e4c320914 --- /dev/null +++ b/archivers/py-bitshuffle/files/patch-pyproject.toml @@ -0,0 +1,11 @@ +--- pyproject.toml.orig 2022-11-26 00:17:16 UTC ++++ pyproject.toml +@@ -3,7 +3,7 @@ requires = [ + requires = [ + "setuptools>=0.7", + "Cython>=0.19", +- "oldest-supported-numpy", ++ "numpy", + "h5py>=2.4.0", + ] + diff --git a/archivers/py-bitshuffle/files/patch-setup.py b/archivers/py-bitshuffle/files/patch-setup.py new file mode 100644 index 000000000000..f96dcdf556d3 --- /dev/null +++ b/archivers/py-bitshuffle/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2022-11-26 00:17:16 UTC ++++ setup.py +@@ -371,7 +371,7 @@ class build_ext(build_ext_): + else: + openmpflag = "-fopenmp" + archi = platform.machine() +- if archi in ("i386", "x86_64"): ++ if archi in ("amd64", "i386", "x86_64"): + compileflags = COMPILE_FLAGS + ["-march=%s" % self.march] + else: + compileflags = COMPILE_FLAGS + ["-mcpu=%s" % self.march] diff --git a/archivers/py-bitshuffle/pkg-descr b/archivers/py-bitshuffle/pkg-descr new file mode 100644 index 000000000000..e54c4df001da --- /dev/null +++ b/archivers/py-bitshuffle/pkg-descr @@ -0,0 +1,23 @@ +Bitshuffle is an algorithm that rearranges typed, binary data for improving +compression, as well as a python/C package that implements this algorithm within +the Numpy framework. + +The library can be used along side HDF5 to compress and decompress datasets and +is integrated through the dynamically loaded filters framework. Bitshuffle is +HDF5 filter number 32008. + +Algorithmically, Bitshuffle is closely related to HDF5's Shuffle filter except +it operates at the bit level instead of the byte level. Arranging a typed data +array in to a matrix with the elements as the rows and the bits within the +elements as the columns, Bitshuffle "transposes" the matrix, such that all the +least-significant-bits are in a row, etc. + +This does not in itself compress data, only rearranges it for more efficient +compression. To perform the actual compression you will need a compression +library. Bitshuffle has been designed to be well matched to Marc Lehmann's LZF +as well as LZ4 and ZSTD. Note that because Bitshuffle modifies the data at the +bit level, sophisticated entropy reducing compression libraries such as GZIP and +BZIP are unlikely to achieve significantly better compression than simpler and +faster duplicate-string-elimination algorithms such as LZF, LZ4 and ZSTD. +Bitshuffle thus includes routines (and HDF5 filter options) to apply LZ4 and +ZSTD compression to each block after shuffling.