aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJose Alonso Cardenas Marquez <acm@FreeBSD.org>2023-04-29 23:42:10 +0000
committerJose Alonso Cardenas Marquez <acm@FreeBSD.org>2023-04-29 23:44:43 +0000
commitbacdef05a8dd44886cc915cccdd02a01be8938f1 (patch)
tree7c92686c5b11037e796f1d8b6e0fc25c68ae62ff
parenta2265575984b02c8c49747ddcd85739791899ff6 (diff)
downloadports-bacdef05a8dd44886cc915cccdd02a01be8938f1.tar.gz
ports-bacdef05a8dd44886cc915cccdd02a01be8938f1.zip
archivers/py-pyunpack: New port: unpack archive files in Python
unpack archive files in Python Features: - unpack archive files - support passwords - very simple interface - command line interface and library back-ends: - zipfile: included in Python - patool: It relies on helper applications to handle those archive formats (for example bzip2 for BZIP2 archives). Supported formats: 7z (.7z), ACE (.ace), ALZIP (.alz), AR (.a), ARC (.arc), ARJ (.arj), BZIP2 (.bz2), CAB (.cab), compress (.Z), CPIO (.cpio), DEB (.deb), DMS (.dms), GZIP (.gz), LRZIP (.lrz), LZH (.lha, .lzh), LZIP (.lz), LZMA (.lzma), LZOP (.lzo), RPM (.rpm), RAR (.rar), RZIP (.rz), TAR (.tar), XZ (.xz), ZIP (.zip, .jar) and ZOO (.zoo)
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/py-pyunpack/Makefile21
-rw-r--r--archivers/py-pyunpack/distinfo3
-rw-r--r--archivers/py-pyunpack/pkg-descr18
4 files changed, 43 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index ef2e719950ba..37852e243017 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -196,6 +196,7 @@
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
diff --git a/archivers/py-pyunpack/Makefile b/archivers/py-pyunpack/Makefile
new file mode 100644
index 000000000000..c1f2aff69194
--- /dev/null
+++ b/archivers/py-pyunpack/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= pyunpack
+PORTVERSION= 0.3
+CATEGORIES= archivers python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= acm@FreeBSD.org
+COMMENT= unpack archive files in Python
+WWW= https://github.com/ponty/pyunpack
+
+LICENSE= BSD2CLAUSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}easyprocess>0:devel/py-easyprocess@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}entrypoint2>0:devel/py-entrypoint2@${PY_FLAVOR}
+
+USES= python:3.6+
+USE_PYTHON= autoplist distutils
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/archivers/py-pyunpack/distinfo b/archivers/py-pyunpack/distinfo
new file mode 100644
index 000000000000..5ab778d2e7a4
--- /dev/null
+++ b/archivers/py-pyunpack/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1680277713
+SHA256 (pyunpack-0.3.tar.gz) = b9192665c3aa28eaeb2b01198a2f2f985d9a3ecce55f266a657b31cd337d3f12
+SIZE (pyunpack-0.3.tar.gz) = 6420
diff --git a/archivers/py-pyunpack/pkg-descr b/archivers/py-pyunpack/pkg-descr
new file mode 100644
index 000000000000..cceeb96bca0f
--- /dev/null
+++ b/archivers/py-pyunpack/pkg-descr
@@ -0,0 +1,18 @@
+unpack archive files in Python
+
+Features:
+
+- unpack archive files
+- support passwords
+- very simple interface
+- command line interface and library
+
+back-ends:
+
+- zipfile: included in Python
+- patool: It relies on helper applications to handle those archive formats (for
+ example bzip2 for BZIP2 archives). Supported formats: 7z (.7z), ACE (.ace),
+ ALZIP (.alz), AR (.a), ARC (.arc), ARJ (.arj), BZIP2 (.bz2), CAB (.cab),
+ compress (.Z), CPIO (.cpio), DEB (.deb), DMS (.dms), GZIP (.gz), LRZIP (.lrz),
+ LZH (.lha, .lzh), LZIP (.lz), LZMA (.lzma), LZOP (.lzo), RPM (.rpm),
+ RAR (.rar), RZIP (.rz), TAR (.tar), XZ (.xz), ZIP (.zip, .jar) and ZOO (.zoo)