* Updated to 2.4.1

* Fixed dependencies to match setup.py
* Added options for supported --server(s)
* Added test target with depends to test 3.7, which succeeded.
* Sorted Makefile for portlint

Only cheroot is default on for the new options which
is the default in wsgidav.

PR:		235423
Reported by:	Keith Gaughan <k@ster^.me>
This commit is contained in:
Richard Gallamore 2019-03-09 08:40:04 +00:00
parent 9444597d5c
commit 47e1e06808
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=495108
2 changed files with 43 additions and 14 deletions

View file

@ -1,7 +1,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= WsgiDAV PORTNAME= WsgiDAV
PORTVERSION= 2.1.0 DISTVERSION= 2.4.1
CATEGORIES= www python CATEGORIES= www python
MASTER_SITES= CHEESESHOP MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@ -11,19 +11,48 @@ COMMENT= WSGI based WebDAV server for sharing resources
LICENSE= MIT LICENSE= MIT
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}defusedxml>=0:devel/py-defusedxml@${PY_FLAVOR} BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}defusedxml>=0.5:devel/py-defusedxml@${PY_FLAVOR} \
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cherrypy>=0:www/py-cherrypy@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jsmin>=2.2:devel/py-jsmin@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}yaml>=3.2:devel/py-yaml@${PY_FLAVOR}
${PYTHON_PKGNAMEPREFIX}cov-core>=0:devel/py-cov-core@${PY_FLAVOR} \ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}defusedxml>=0.5:devel/py-defusedxml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}WebTest>=0:www/py-WebTest@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}jsmin>=2.2:devel/py-jsmin@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>=3.2:devel/py-yaml@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheroot>=6.0:www/py-cheroot@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}flake8>=3.5:devel/py-flake8@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}flake8-quotes>=1.0:devel/py-flake8-quotes@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=2.7:devel/py-pytest@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-cov>=1.8:devel/py-pytest-cov@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \ ${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}defusedxml>=0:devel/py-defusedxml@${PY_FLAVOR} ${PYTHON_PKGNAMEPREFIX}tox>=2.0:devel/py-tox@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}WebTest>=2.0:www/py-WebTest@${PY_FLAVOR}
NO_ARCH= yes USES= python
USES= python zip
USE_PYTHON= distutils autoplist USE_PYTHON= distutils autoplist
post-extract: NO_ARCH= yes
${RM} -r ${WRKSRC}/tests
OPTIONS_DEFINE= CHEROOT CHERRYPY FLUP PASTE WSGIUTILS
OPTIONS_DEFAULT= CHEROOT
CHEROOT_DESC= Cheroot server support
CHERRYPY_DESC= Cherrypy server support
FLUP_DESC= Flup server support
PASTE_DESC= Paste server support
WSGIUTILS_DESC= Wsgiutils server support
CHEROOT_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cheroot>=0:www/py-cheroot@${PY_FLAVOR}
CHERRYPY_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cherrypy>=0:www/py-cherrypy@${PY_FLAVOR}
FLUP_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flup6>=0:www/py-flup6@${PY_FLAVOR}
PASTE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Paste>=0:www/py-paste@${PY_FLAVOR}
WSGIUTILS_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}wsgiutils>=0:devel/py-wsgiutils@${PY_FLAVOR}
# In order to run tests, need to switch to the GitHub
# repo, else will succeed with 0 test runs.
do-test:
(cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test)
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1479250314 TIMESTAMP = 1551944665
SHA256 (WsgiDAV-2.1.0.zip) = 29d840dc9b98febca9c2ea881da2f9e6ea8879afad0e2468e371ad119228725d SHA256 (WsgiDAV-2.4.1.tar.gz) = d95014d71f595ae08062cb8608742adb4c1d7aece029e22ebe7de010359cb8f5
SIZE (WsgiDAV-2.1.0.zip) = 142108 SIZE (WsgiDAV-2.4.1.tar.gz) = 118808