aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Wener <matthew@wener.org>2024-11-21 21:15:20 +0000
committerDries Michiels <driesm@FreeBSD.org>2024-11-22 06:43:02 +0000
commit24298a939e924449c2ae88749a9c6a152b9badd9 (patch)
treec02ee99d5a462bcd7273fbd78796ff73a8ec5fd7
parent2c3a0c3e1a92a05e828de38160367656f31c746f (diff)
archivers/py-py7zr: add new port
Pure python 7-zip library. PR: 282838
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/py-py7zr/Makefile44
-rw-r--r--archivers/py-py7zr/distinfo3
-rw-r--r--archivers/py-py7zr/pkg-descr3
4 files changed, 51 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index 72f206ed39ca..b30c5e9fa620 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -204,6 +204,7 @@
SUBDIR += py-lzstring
SUBDIR += py-multivolumefile
SUBDIR += py-patool
+ SUBDIR += py-py7zr
SUBDIR += py-pybcj
SUBDIR += py-pyminizip
SUBDIR += py-pyppmd
diff --git a/archivers/py-py7zr/Makefile b/archivers/py-py7zr/Makefile
new file mode 100644
index 000000000000..7b55d2cded8b
--- /dev/null
+++ b/archivers/py-py7zr/Makefile
@@ -0,0 +1,44 @@
+PORTNAME= py7zr
+PORTVERSION= 0.22.0
+CATEGORIES= archivers python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= matthew@wener.org
+COMMENT= Pure python 7-zip library
+WWW= https://py7zr.readthedocs.io/
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}brotli>=0:archivers/py-brotli@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}brotlicffi>=0:archivers/py-brotlicffi@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}inflate64>=0:archivers/py-inflate64@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}multivolumefile>=0:archivers/py-multivolumefile@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}psutil>=0:sysutils/py-psutil@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pybcj>=0:archivers/py-pybcj@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pycryptodomex>=0:security/py-pycryptodomex@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyppmd>=0:archivers/py-pyppmd@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyzstd>=0:archivers/py-pyzstd@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}texttable>=0:textproc/py-texttable@${PY_FLAVOR}
+TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}py-cpuinfo>=0:sysutils/py-py-cpuinfo@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-benchmark>=0:devel/py-pytest-benchmark@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-remotedata>=0:devel/py-pytest-remotedata@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytest-timeout>=0:devel/py-pytest-timeout@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist pep517 pytest
+
+TEST_ENV= ${MAKE_ENV} \
+ PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+NO_ARCH= yes
+
+do-test:
+ @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v
+
+.include <bsd.port.mk>
diff --git a/archivers/py-py7zr/distinfo b/archivers/py-py7zr/distinfo
new file mode 100644
index 000000000000..310db97ebf71
--- /dev/null
+++ b/archivers/py-py7zr/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1724809518
+SHA256 (py7zr-0.22.0.tar.gz) = c6c7aea5913535184003b73938490f9a4d8418598e533f9ca991d3b8e45a139e
+SIZE (py7zr-0.22.0.tar.gz) = 4992926
diff --git a/archivers/py-py7zr/pkg-descr b/archivers/py-py7zr/pkg-descr
new file mode 100644
index 000000000000..43c9766990c8
--- /dev/null
+++ b/archivers/py-py7zr/pkg-descr
@@ -0,0 +1,3 @@
+py7zr is a library and utility to support 7zip archive
+compression, decompression, encryption and decryption
+written by Python programming language.