mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-26 09:46:09 +00:00
450824254f
Changes: https://github.com/mikf/gallery-dl/releases/tag/v1.15.1 Reported by: GitHub (watch releases) MFH: 2020Q4 (bug fixes, new features are minor/site-related)
37 lines
948 B
Makefile
37 lines
948 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= gallery-dl
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 1.15.1
|
|
CATEGORIES= www
|
|
|
|
# Implicit approval to commit trivial version updates.
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= Command-line program to download image galleries and collections
|
|
|
|
LICENSE= GPLv2
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR}
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}requests>=2.11.0:www/py-requests@${PY_FLAVOR}
|
|
|
|
NO_ARCH= yes
|
|
USES= python:3.4+
|
|
USE_GITHUB= yes
|
|
USE_PYTHON= autoplist distutils
|
|
GH_ACCOUNT= mikf
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's,/etc,${PREFIX}&,' \
|
|
${WRKSRC}/gallery_dl/config.py \
|
|
${WRKSRC}/scripts/man.py
|
|
|
|
post-build:
|
|
# USE_GITHUB archive doesn't have generated files
|
|
@${DO_MAKE_BUILD} -C ${BUILD_WRKSRC} PYTHON="${PYTHON_CMD}" man completion
|
|
|
|
do-test:
|
|
@${PYTHON_CMD} -m unittest discover -vs ${TEST_WRKSRC}
|
|
|
|
.include <bsd.port.mk>
|