daniel 7437f9d093 update py-sphinx to 4.0.2 and regen PLISTs for affected consumers
all consumers were packaged and installed on amd64 by me; all python2
syntax in consumers appears to have been updated at this point making
it possible to move to the 4.x series.

lang/ghc bits look ok to gnezdo@

ok sthen@ on the rest
2021-07-06 16:55:32 +00:00

43 lines
875 B
Makefile

# $OpenBSD: Makefile,v 1.20 2021/07/06 16:55:33 daniel Exp $
COMMENT = test utilities working with files and commands
MODPY_EGG_VERSION = 0.4.2
DISTNAME = testpath-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
REVISION = 4
CATEGORIES = devel
HOMEPAGE = https://github.com/jupyter/testpath
# MIT
PERMIT_PACKAGE = Yes
MODULES = lang/python
MODPY_PI = Yes
MODPY_SETUPTOOLS = Yes
MODPY_PYTEST = Yes
FLAVORS = python3
FLAVOR ?=
BUILD_DEPENDS = textproc/py-sphinx,python3>=4.0.2
.if !${FLAVOR:Mpython3}
RUN_DEPENDS = devel/py-pathlib
.endif
post-build:
cd ${WRKSRC}/doc && PYTHONPATH=${WRKSRC} \
${LOCALBASE}/bin/sphinx-build -N . _build/html
DOCDIR = ${PREFIX}/share/doc/${MODPY_PY_PREFIX}testpath
post-install:
cp -r ${WRKBUILD}/doc/_build/html ${DOCDIR}
rm ${DOCDIR}/.buildinfo
chown -R ${SHAREOWN}:${SHAREGRP} ${DOCDIR}
.include <bsd.port.mk>