jasper d554090a7e be sure to use the correctly named sphinx-build. in case of the python3
flavor it tried to use sphinx-build instead of sphinx-build-3.

spotted by naddy@
2016-06-01 14:28:34 +00:00

42 lines
888 B
Makefile

# $OpenBSD: Makefile,v 1.8 2016/06/01 14:28:34 jasper Exp $
COMMENT= flexible forms validation and rendering library
MODPY_EGG_VERSION=1.0.5
DISTNAME= WTForms-${MODPY_EGG_VERSION}
PKGNAME= py-${DISTNAME:L}
CATEGORIES= www
REVISION = 3
HOMEPAGE= http://wtforms.simplecodes.com/
# BSD
PERMIT_PACKAGE_CDROM= Yes
MODULES= lang/python
MODPY_PI = Yes
EXTRACT_SUFX= .zip
FLAVORS = python3
FLAVOR ?=
BUILD_DEPENDS= ${RUN_DEPENDS} \
textproc/py-sphinx${MODPY_FLAVOR}
RUN_DEPENDS= devel/py-dateutil${MODPY_FLAVOR}
MODPY_SETUPTOOLS= Yes
USE_GMAKE= Yes
post-build:
@cd ${WRKSRC}/docs && \
${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} SPHINXBUILD=sphinx-build${MODPY_BIN_SUFFIX} html
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/${MODPY_PY_PREFIX}wtforms
cd ${WRKSRC}/docs/_build/html && \
pax -rw * ${PREFIX}/share/doc/${MODPY_PY_PREFIX}wtforms
.include <bsd.port.mk>