Added
Link Here
|
1 |
PORTNAME= comicapi |
2 |
PORTVERSION= 3.2.0 |
3 |
CATEGORIES= archivers python |
4 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
5 |
|
6 |
MAINTAINER= matthew@wener.org |
7 |
COMMENT= Comic archive (cbr/cbz) and metadata utilities |
8 |
WWW= https://github.com/comictagger/comicapi |
9 |
|
10 |
LICENSE= APACHE20 |
11 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
12 |
|
13 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}importlib-metadata>=0:devel/py-importlib-metadata@${PY_FLAVOR} \ |
14 |
${PYTHON_PKGNAMEPREFIX}natsort>=0:devel/py-natsort@${PY_FLAVOR} \ |
15 |
${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}pycountry>=0:textproc/py-pycountry@${PY_FLAVOR} \ |
17 |
${PYTHON_PKGNAMEPREFIX}rapidfuzz>=0:devel/py-rapidfuzz@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}text2digits>=0:textproc/py-text2digits@${PY_FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}wordninja>=0:textproc/py-wordninja@${PY_FLAVOR} |
20 |
|
21 |
USES= python |
22 |
USE_PYTHON= autoplist distutils pytest |
23 |
|
24 |
USE_GITHUB= yes |
25 |
GH_ACCOUNT= comictagger |
26 |
GH_TAGNAME= 2bf8332 |
27 |
|
28 |
NO_ARCH= yes |
29 |
|
30 |
OPTIONS_DEFINE= 7Z CBR ICU |
31 |
OPTIONS_DEFAUlT= ICU |
32 |
|
33 |
7Z_DESC= 7-Zip |
34 |
7Z_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}py7zr>=0:archivers/py-py7zr@${PY_FLAVOR} |
35 |
|
36 |
CBR_DESC= CBR |
37 |
CBR_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}rarfile>=0:archivers/py-rarfile@${PY_FLAVOR} \ |
38 |
unrar>=0:archivers/unrar |
39 |
|
40 |
ICU_DESC= ICU |
41 |
ICU_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyicu>=0:devel/py-pyicu@${PY_FLAVOR} |
42 |
|
43 |
TEST_ENV= ${MAKE_ENV} \ |
44 |
PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} |
45 |
|
46 |
# The two sorting tests may fail based on system locale |
47 |
do-test: |
48 |
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v |
49 |
|
50 |
.include <bsd.port.mk> |