git: 020dff9f9564 - main - www/py-urlwatch: update to v2.23, add DOCS
Matthias Andree
mandree at FreeBSD.org
Fri Jun 4 21:52:38 UTC 2021
The branch main has been updated by mandree:
URL: https://cgit.FreeBSD.org/ports/commit/?id=020dff9f9564604959680378f0d1eed19ff9be0a
commit 020dff9f9564604959680378f0d1eed19ff9be0a
Author: Matthias Andree <mandree at FreeBSD.org>
AuthorDate: 2021-05-22 11:01:55 +0000
Commit: Matthias Andree <mandree at FreeBSD.org>
CommitDate: 2021-06-04 21:50:58 +0000
www/py-urlwatch: update to v2.23, add DOCS
Add DOCS option (uses py-sphinx and GNU make) to build/install
html and text documentation.
Ensure build works for non-default Python flavors.
Update TEST_DEPENDS to list additional self-test requisites.
Changelog: https://github.com/thp/urlwatch/blob/2.23/CHANGELOG.md#223----2021-04-10
PR: 256085
Approved by: kai at FreeBSD.org
---
www/py-urlwatch/Makefile | 29 +++++++++++++++++++++++++----
www/py-urlwatch/distinfo | 6 +++---
2 files changed, 28 insertions(+), 7 deletions(-)
diff --git a/www/py-urlwatch/Makefile b/www/py-urlwatch/Makefile
index bd80137ebd02..c3a738aeae7f 100644
--- a/www/py-urlwatch/Makefile
+++ b/www/py-urlwatch/Makefile
@@ -1,5 +1,5 @@
PORTNAME= urlwatch
-DISTVERSION= 2.18
+DISTVERSION= 2.23
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -19,14 +19,35 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}minidb>0:databases/py-minidb@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}cssselect>0:www/py-cssselect@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
- ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR}
+ ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pdftotext>0:textproc/py-pdftotext@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}jq>0:textproc/py-jq@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pytesseract>0:graphics/py-pytesseract@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}docutils>0:textproc/py-docutils@${PY_FLAVOR}
-USES= python:3.3+
+USES= python:3.6+
+USE_LOCALE= en_US.UTF-8
USE_PYTHON= autoplist concurrent distutils
+BINARY_ALIAS= sphinx-build=sphinx-build-${PYTHON_VER}
NO_ARCH= yes
+OPTIONS_DEFINE= DOCS
+DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
+DOCS_PORTDOCS= html/* text/*
+DOCS_VARS= USES+=gmake
+
+post-build-DOCS-on:
+ cd ${WRKSRC}/docs && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} -j${MAKE_JOBS_NUMBER} html text
+
+post-install-DOCS-on:
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/html
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}/text
+ (cd ${WRKSRC}/docs/build && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR} "! -name .buildinfo")
+ (cd ${WRKSRC}/docs/build && ${COPYTREE_SHARE} text ${STAGEDIR}${DOCSDIR})
+
do-test:
- @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -v -rs
+ cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs
.include <bsd.port.mk>
diff --git a/www/py-urlwatch/distinfo b/www/py-urlwatch/distinfo
index 09ecc83338d8..fdf27ee6d99f 100644
--- a/www/py-urlwatch/distinfo
+++ b/www/py-urlwatch/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1588622178
-SHA256 (urlwatch-2.18.tar.gz) = b556d1176683f0b7058d7bd34cddfdadbc86ab9551fe5e674aaf55c89696bd9d
-SIZE (urlwatch-2.18.tar.gz) = 48268
+TIMESTAMP = 1621674523
+SHA256 (urlwatch-2.23.tar.gz) = 73a29efbef80c02bc8c285fca427793979c0e4bef40bc084df5de5436378b842
+SIZE (urlwatch-2.23.tar.gz) = 137917
More information about the dev-commits-ports-all
mailing list