git: f99fa9aaa52d - main - archivers/py-comicapi: add new port
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 21 Nov 2024 19:58:54 UTC
The branch main has been updated by driesm: URL: https://cgit.FreeBSD.org/ports/commit/?id=f99fa9aaa52dc13b42d13d6bd63bacc924bb1683 commit f99fa9aaa52dc13b42d13d6bd63bacc924bb1683 Author: Matthew Wener <matthew@wener.org> AuthorDate: 2024-11-21 15:29:05 +0000 Commit: Dries Michiels <driesm@FreeBSD.org> CommitDate: 2024-11-21 19:58:30 +0000 archivers/py-comicapi: add new port Comic archive (cbr/cbz) and metadata utilities. PR: 282841 --- archivers/Makefile | 1 + archivers/py-comicapi/Makefile | 49 +++++++++++++++++++++++++++++++++++++++++ archivers/py-comicapi/distinfo | 3 +++ archivers/py-comicapi/pkg-descr | 2 ++ 4 files changed, 55 insertions(+) diff --git a/archivers/Makefile b/archivers/Makefile index 755d5fb7dc95..9dc3c5ed3c0f 100644 --- a/archivers/Makefile +++ b/archivers/Makefile @@ -193,6 +193,7 @@ SUBDIR += py-brotlipy SUBDIR += py-bup SUBDIR += py-bz2file + SUBDIR += py-comicapi SUBDIR += py-compressed-rtf SUBDIR += py-cramjam SUBDIR += py-laszip diff --git a/archivers/py-comicapi/Makefile b/archivers/py-comicapi/Makefile new file mode 100644 index 000000000000..9a6e88ded594 --- /dev/null +++ b/archivers/py-comicapi/Makefile @@ -0,0 +1,49 @@ +PORTNAME= comicapi +PORTVERSION= 3.2.0 +CATEGORIES= archivers python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= matthew@wener.org +COMMENT= Comic archive (cbr/cbz) and metadata utilities +WWW= https://github.com/comictagger/comicapi + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}natsort>=0:devel/py-natsort@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pycountry>=0:textproc/py-pycountry@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}rapidfuzz>=0:devel/py-rapidfuzz@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}text2digits>=0:textproc/py-text2digits@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wordninja>=0:textproc/py-wordninja@${PY_FLAVOR} + +USES= python + +USE_GITHUB= yes +GH_ACCOUNT= comictagger +GH_TAGNAME= 2bf8332 +USE_PYTHON= autoplist distutils pytest + +TEST_ENV= ${MAKE_ENV} \ + PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +NO_ARCH= yes + +OPTIONS_DEFINE= 7Z CBR ICU +OPTIONS_DEFAULT= ICU + +7Z_DESC= 7-Zip +CBR_DESC= CBR +ICU_DESC= ICU + +7Z_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}py7zr>=0:archivers/py-py7zr@${PY_FLAVOR} +CBR_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}rarfile>=0:archivers/py-rarfile@${PY_FLAVOR} \ + unrar>=0:archivers/unrar +ICU_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyicu>=0:devel/py-pyicu@${PY_FLAVOR} + +# The two sorting tests may fail based on system locale +do-test: + @cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v + +.include <bsd.port.mk> diff --git a/archivers/py-comicapi/distinfo b/archivers/py-comicapi/distinfo new file mode 100644 index 000000000000..781ecf7d8b70 --- /dev/null +++ b/archivers/py-comicapi/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1724809518 +SHA256 (comictagger-comicapi-3.2.0-2bf8332_GH0.tar.gz) = a96a0cdca8f5efc3337fe194f59b86e369e23d12e0fcec81e3c34b9e652c1f18 +SIZE (comictagger-comicapi-3.2.0-2bf8332_GH0.tar.gz) = 17401837 diff --git a/archivers/py-comicapi/pkg-descr b/archivers/py-comicapi/pkg-descr new file mode 100644 index 000000000000..a570852122c8 --- /dev/null +++ b/archivers/py-comicapi/pkg-descr @@ -0,0 +1,2 @@ +Comic archive (cbr/cbz) and metadata utilities. +Extracted from the comictagger project.