aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-04-05 17:07:21 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2023-04-05 17:29:38 +0000
commit5383d075cbfda5e0f3fa22b3ee76d0883c88dfce (patch)
treededa8d54059425b7a4994200db1cb775a3c6fbad
parentd8e4c49f2e6a628a16f3e7697ffa9c06e09997da (diff)
downloadports-5383d075cbfda5e0f3fa22b3ee76d0883c88dfce.tar.gz
ports-5383d075cbfda5e0f3fa22b3ee76d0883c88dfce.zip
archivers/py-sozipfile: Add py-sozipfile 0.2.0
sozipfile is a fork of Python zipfile module, from its implementation in CPython 3.11, which implements the SOZip optimization, when writing deflate compressed files whose size exceeds the chunk size (defaults to 32768 bytes).
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/py-sozipfile/Makefile22
-rw-r--r--archivers/py-sozipfile/distinfo3
-rw-r--r--archivers/py-sozipfile/pkg-descr3
4 files changed, 29 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index f4cfd4434faa..ae92d67f934b 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -196,6 +196,7 @@
SUBDIR += py-rarfile
SUBDIR += py-rcssmin
SUBDIR += py-rjsmin
+ SUBDIR += py-sozipfile
SUBDIR += py-warctools
SUBDIR += py-xopen
SUBDIR += py-zopfli
diff --git a/archivers/py-sozipfile/Makefile b/archivers/py-sozipfile/Makefile
new file mode 100644
index 000000000000..a60e427d90b9
--- /dev/null
+++ b/archivers/py-sozipfile/Makefile
@@ -0,0 +1,22 @@
+PORTNAME= sozipfile
+PORTVERSION= 0.2.0
+CATEGORIES= archivers python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Fork of Python zipfile module, adding generation of sozip optimization
+WWW= https://github.com/sozip/sozipfile
+
+LICENSE= PSFL
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES= python:3.8+
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/archivers/py-sozipfile/distinfo b/archivers/py-sozipfile/distinfo
new file mode 100644
index 000000000000..b6e375b7340e
--- /dev/null
+++ b/archivers/py-sozipfile/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1679498486
+SHA256 (sozipfile-0.2.0.tar.gz) = efa65a1a2872c03858a0df8a6694b1862803f99e09c4a4fe7f9284b2f6685623
+SIZE (sozipfile-0.2.0.tar.gz) = 30765
diff --git a/archivers/py-sozipfile/pkg-descr b/archivers/py-sozipfile/pkg-descr
new file mode 100644
index 000000000000..edbc8c8fb15f
--- /dev/null
+++ b/archivers/py-sozipfile/pkg-descr
@@ -0,0 +1,3 @@
+sozipfile is a fork of Python zipfile module, from its implementation in CPython
+3.11, which implements the SOZip optimization, when writing deflate compressed
+files whose size exceeds the chunk size (defaults to 32768 bytes).