1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-31 10:46:16 +00:00
freebsd-ports/www/py-webob/Makefile
Nicola Vitale 96862160f0 - Update to 1.8.2
- Update URL in pkg-descr to avoid a redirection
- Add a patch and a post-extract-* target to fix a couple of Sphinx exceptions during the build
process:

1)

WARNING: autodoc: failed to import module u'webob.client'; the following exception was raised:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 658, in import_object
    __import__(self.modname)
ImportError: No module named webob.client

2)

Exception occurred:
  File "/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py", line 774, in resolve
    raise DistributionNotFound(req, requirers)
DistributionNotFound: The 'webob' distribution was not found and is required by the application
The full traceback has been saved in /tmp/sphinx-err-Kjn2DB.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!
*** Error code 1

Changes:	https://docs.pylonsproject.org/projects/webob/en/stable/changes.html
2018-08-14 16:35:34 +00:00

41 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= webob
PORTVERSION= 1.8.2
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= WebOb-${DISTVERSION}
MAINTAINER= nivit@FreeBSD.org
COMMENT= WSGI request and response Python object
LICENSE= MIT
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}coverage>=0:devel/py-coverage@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest-cov>=0:devel/py-pytest-cov@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR}
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pylons-sphinx-themes>=0:textproc/py-pylons-sphinx-themes@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sphinx>=1.3.1:textproc/py-sphinx@${PY_FLAVOR}
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
OPTIONS_DEFINE= DOCS
PORTDOCS= *
NO_ARCH= yes
USES= python
USE_PYTHON= distutils autoplist
post-extract-DOCS-on:
@(cd ${WRKSRC} && \
${LN} -s src/WebOb.egg-info .)
post-install-DOCS-on:
@(cd ${WRKSRC}/build/sphinx/html && \
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -name objectiv.inv")
.include <bsd.port.mk>