daniel ceb3a6300c update py-sphinx to 1.5.6
main changes are:
- add a new dep on py-requests
- undo the no longer needed iftex.sty workaround
- move MODPY variables to more standard location
- regen plist

Unfortunately py-sphinx changed the suffix from .txt to .rst.txt in the
1.5 series. This means we have to update PLISTs for about 20+ ports as
a result of this version update. Hopefully future updates of py-sphinx
won't be quite as involved.

ok sthen@
2020-12-10 02:20:29 +00:00

46 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.30 2020/12/10 02:20:30 daniel Exp $
COMMENT = virtual Python environment builder
MODPY_EGG_VERSION = 16.0.0
DISTNAME = virtualenv-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = devel
REVISION = 4
HOMEPAGE = http://www.virtualenv.org/
MAINTAINER = Daniel Jakots <obsd@chown.me>
# MIT
PERMIT_PACKAGE = Yes
MODPY_PI = Yes
MODULES = lang/python
BUILD_DEPENDS = textproc/py-sphinx${MODPY_FLAVOR}>=1.5 \
textproc/py-sphinx_rtd_theme${MODPY_FLAVOR}>=0.4.3
TEST_DEPENDS = devel/py-test${MODPY_FLAVOR} \
devel/py-mock${MODPY_FLAVOR}
MODPY_SETUPTOOLS = Yes
MODPY_PYTEST = Yes
MODPY_PYTEST_ARGS = tests
FLAVORS = python3
FLAVOR ?=
MAKE_ENV += PYTHONPATH=${WRKSRC} SPHINXBUILD=${LOCALBASE}/bin/sphinx-build${MODPY_BIN_SUFFIX}
DOCSRC = ${WRKSRC}/docs
post-build:
cd ${DOCSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} html
DOCS = ${PREFIX}/share/doc/${MODPY_PY_PREFIX}virtualenv
post-install:
${INSTALL_DATA_DIR} ${DOCS}
cd ${DOCSRC}/_build/html && pax -rw * ${DOCS}
mv ${PREFIX}/bin/virtualenv{,${MODPY_BIN_SUFFIX}}
.include <bsd.port.mk>