pkgsrc/www/py-werkzeug-docs/Makefile
adam 345b8a0514 Version 0.12.2
--------------
- Fix regression: Pull request ``892`` prevented Werkzeug from correctly
  logging the IP of a remote client behind a reverse proxy, even when using
  `ProxyFix`.
- Fix a bug in `safe_join` on Windows.
2017-05-31 08:24:38 +00:00

30 lines
922 B
Makefile

# $NetBSD: Makefile,v 1.9 2017/05/31 08:24:38 adam Exp $
PKGNAME= ${PYPKGPREFIX}-werkzeug-docs-${DISTNAME:C/[^-]*-//}
COMMENT= Python WSGI Utility Library (HTML documentation)
NO_CONFIGURE= yes
BUILD_TARGET= documentation
INSTALLATION_DIRS+= ${DOCDIR}/html
DOCDIR= share/doc/${PYPKGPREFIX}-${DISTNAME:tl:C/-[^-]*$//}
PLIST_SUBST+= DOCDIR=${DOCDIR}
PLIST_SRC+= ${WRKDIR}/PLIST
.include "../../www/py-werkzeug/Makefile.common"
do-install:
cd ${WRKSRC}/docs/_build/html \
&& pax -rwppm . ${DESTDIR}${PREFIX}/${DOCDIR}/html
${RM} -f ${DESTDIR}${PREFIX}/${DOCDIR}/html/.buildinfo
cd ${DESTDIR}${PREFIX} \
&& ${FIND} ${DOCDIR}/html -type f -print > ${WRKDIR}/PLIST
PYTHON_FOR_BUILD_ONLY= yes
BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx>=1.2.3nb1:../../textproc/py-sphinx
MAKE_FLAGS+= SPHINXBUILD=${PREFIX}/bin/sphinx-build${PYVERSSUFFIX}
.include "../../lang/python/pyversion.mk"
.include "../../mk/bsd.pkg.mk"