32 lines
924 B
Makefile
32 lines
924 B
Makefile
# $NetBSD: Makefile,v 1.8 2017/01/01 14:44:06 wiz Exp $
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-werkzeug-docs-${DISTNAME:C/[^-]*-//}
|
|
|
|
COMMENT= Python WSGI Utility Library (HTML documentation)
|
|
|
|
NO_CONFIGURE= yes
|
|
BUILD_TARGET= documentation
|
|
|
|
USE_TOOLS+= pax
|
|
|
|
INSTALLATION_DIRS+= ${DOCDIR}/html
|
|
|
|
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
|
|
PYTHON_VERSIONS_INCOMPATIBLE= 34 35 36 # sphinx detection broken as of 0.9.4
|
|
.include "../../lang/python/pyversion.mk"
|
|
BUILD_DEPENDS+= ${PYPKGPREFIX}-sphinx>=1.2.3nb1:../../textproc/py-sphinx
|
|
|
|
MAKE_FLAGS+= SPHINXBUILD=${PREFIX}/bin/sphinx-build${PYVERSSUFFIX}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|