diff options
| author | Tuukka Pasanen <tuukka.pasanen@ilmi.fi> | 2025-05-12 14:59:11 +0000 |
|---|---|---|
| committer | Muhammad Moinur Rahman <bofh@FreeBSD.org> | 2025-07-16 14:53:22 +0000 |
| commit | 7175c53e1dc5ec9c96e2107985d80ca067e423fc (patch) | |
| tree | 1636865f2fdb35f52a0f96786eecb65a1da8aee3 | |
| parent | 57204d328c2e01494f6962f45b0ce25d1ec5f808 (diff) | |
archivers/py-extractcode: New port
A mostly universal archive extractor using 7zip, libarchive and
the Python standard library for reliable archive extraction.
WWW: https://github.com/aboutcode-org/extractcode
PR: 287496
Sponsored by: The FreeBSD Foundation
| -rw-r--r-- | archivers/Makefile | 1 | ||||
| -rw-r--r-- | archivers/py-extractcode/Makefile | 30 | ||||
| -rw-r--r-- | archivers/py-extractcode/distinfo | 3 | ||||
| -rw-r--r-- | archivers/py-extractcode/pkg-descr | 3 |
4 files changed, 37 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile index d1b937bd3eb8..759464313a16 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -199,6 +199,7 @@ SUBDIR += py-comicapi SUBDIR += py-compressed-rtf SUBDIR += py-cramjam + SUBDIR += py-extractcode SUBDIR += py-inflate64 SUBDIR += py-laszip SUBDIR += py-libarchive-c diff --git a/archivers/py-extractcode/Makefile b/archivers/py-extractcode/Makefile new file mode 100644 index 000000000000..90109b60b07b --- /dev/null +++ b/archivers/py-extractcode/Makefile @@ -0,0 +1,30 @@ +PORTNAME= extractcode +DISTVERSION= 31.0.0 +CATEGORIES= archivers python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= tuukka.pasanen@ilmi.fi +COMMENT= Universal file extraction library and CLI tool to extract almost any archive +WWW= https://github.com/aboutcode-org/extractcode + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/apache-2.0.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} \ + libarchive>13:archivers/libarchive +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>18:devel/py-attrs@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}commoncode>=30.2.0:devel/py-commoncode@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}plugincode>=21.1.21:devel/py-plugincode@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typecode>=21.1.21:devel/py-typecode@${PY_FLAVOR} \ + libarchive>13:archivers/libarchive + +USES= python +USE_PYTHON= autoplist concurrent pep517 pytest + +NO_ARCH= yes + +.include <bsd.port.mk> diff --git a/archivers/py-extractcode/distinfo b/archivers/py-extractcode/distinfo new file mode 100644 index 000000000000..77ba3f9cbfb9 --- /dev/null +++ b/archivers/py-extractcode/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1747040872 +SHA256 (extractcode-31.0.0.tar.gz) = 80819392e9bcf8129f74d8904fe8a98c0dfed2782356842737282c0283113d88 +SIZE (extractcode-31.0.0.tar.gz) = 11305241 diff --git a/archivers/py-extractcode/pkg-descr b/archivers/py-extractcode/pkg-descr new file mode 100644 index 000000000000..886501c3fe8b --- /dev/null +++ b/archivers/py-extractcode/pkg-descr @@ -0,0 +1,3 @@ +A python library to parse Debian deb822-style control and copyright files and +all related Debian, Ubuntu and Debian-derivative manifest and metadata files, +an alternative approach to python-debian. |
