aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Wener <matthew@wener.org>2024-11-21 20:47:15 +0000
committerDries Michiels <driesm@FreeBSD.org>2024-11-21 20:47:15 +0000
commitd384b09d91ad09d259309cdf37a82fdc1d0dc938 (patch)
tree3864898d9894c1b02a024eefd01a2581cb500afb
parentd4d7ab886b737441e4f2ac4781f933dc31fe50b9 (diff)
archivers/py-inflate64: add new port
Deflate64 compression and decompression library. PR: 282834
-rw-r--r--archivers/Makefile1
-rw-r--r--archivers/py-inflate64/Makefile30
-rw-r--r--archivers/py-inflate64/distinfo3
-rw-r--r--archivers/py-inflate64/pkg-descr3
4 files changed, 37 insertions, 0 deletions
diff --git a/archivers/Makefile b/archivers/Makefile
index 9af78c8b65e3..def6c8192efd 100644
--- a/archivers/Makefile
+++ b/archivers/Makefile
@@ -196,6 +196,7 @@
SUBDIR += py-comicapi
SUBDIR += py-compressed-rtf
SUBDIR += py-cramjam
+ SUBDIR += py-inflate64
SUBDIR += py-laszip
SUBDIR += py-libarchive-c
SUBDIR += py-lz4
diff --git a/archivers/py-inflate64/Makefile b/archivers/py-inflate64/Makefile
new file mode 100644
index 000000000000..9a3f8aca4112
--- /dev/null
+++ b/archivers/py-inflate64/Makefile
@@ -0,0 +1,30 @@
+PORTNAME= inflate64
+PORTVERSION= 1.0.0
+CATEGORIES= archivers python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= matthew@wener.org
+COMMENT= Deflate64 compression/decompression library
+WWW= https://codeberg.org/miurahr/inflate64
+
+LICENSE= LGPL21+
+LICENSE_FILE= ${WRKSRC}/COPYING
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}setuptools-scm>=0:devel/py-setuptools-scm@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist pep517 pytest
+
+TEST_ENV= ${MAKE_ENV} \
+ PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/inflate64/_inflate64*.so
+
+do-test:
+ @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v
+
+.include <bsd.port.mk>
diff --git a/archivers/py-inflate64/distinfo b/archivers/py-inflate64/distinfo
new file mode 100644
index 000000000000..5b9f92520eb5
--- /dev/null
+++ b/archivers/py-inflate64/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1724809518
+SHA256 (inflate64-1.0.0.tar.gz) = 3278827b803cf006a1df251f3e13374c7d26db779e5a33329cc11789b804bc2d
+SIZE (inflate64-1.0.0.tar.gz) = 895853
diff --git a/archivers/py-inflate64/pkg-descr b/archivers/py-inflate64/pkg-descr
new file mode 100644
index 000000000000..6623a3b88797
--- /dev/null
+++ b/archivers/py-inflate64/pkg-descr
@@ -0,0 +1,3 @@
+The inflate64 is a python package to provide Deflater and
+Inflater class to compress and decompress with Enhanced
+Deflate compression algorithm.