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@
59 lines
1.6 KiB
Makefile
59 lines
1.6 KiB
Makefile
# $OpenBSD: Makefile,v 1.35 2020/12/10 02:20:30 daniel Exp $
|
|
|
|
COMMENT= pure Python Expect-like module
|
|
|
|
MODPY_EGG_VERSION= 4.7.0
|
|
DISTNAME= pexpect-${MODPY_EGG_VERSION}
|
|
PKGNAME= py-${DISTNAME}
|
|
CATEGORIES= devel
|
|
REVISION= 3
|
|
|
|
HOMEPAGE= https://pexpect.readthedocs.io/
|
|
|
|
# ISC
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
MODPY_PI = Yes
|
|
MODPY_PYTEST = Yes
|
|
|
|
MODULES= lang/python
|
|
|
|
RUN_DEPENDS = devel/py-ptyprocess${MODPY_FLAVOR}
|
|
BUILD_DEPENDS = ${RUN_DEPENDS} \
|
|
textproc/py-sphinx${MODPY_FLAVOR}>=1.5
|
|
TEST_DEPENDS = shells/bash
|
|
|
|
FLAVORS = python3
|
|
FLAVOR ?=
|
|
|
|
MODPY_ADJ_FILES = tests/fakessh/ssh
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/${MODPY_PY_PREFIX}pexpect
|
|
DOCDIR= ${PREFIX}/share/doc/${MODPY_PY_PREFIX}pexpect
|
|
|
|
MAKE_ENV += PYTHONPATH=${WRKSRC}
|
|
|
|
pre-build:
|
|
${SUBST_CMD} ${WRKSRC}/pexpect/replwrap.py
|
|
${SUBST_CMD} ${WRKSRC}/tests/test_ctrl_chars.py
|
|
${SUBST_CMD} ${WRKSRC}/tests/test_performance.py
|
|
${SUBST_CMD} ${WRKSRC}/tests/test_replwrap.py
|
|
${SUBST_CMD} ${WRKSRC}/tests/test_run.py
|
|
|
|
post-build:
|
|
cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE_PROGRAM} html \
|
|
SPHINXBUILD=${LOCALBASE}/bin/sphinx-build${MODPY_BIN_SUFFIX}
|
|
|
|
# py2: pexpect/_async.py doesn't compile on py2, however it is not used there
|
|
# either. upstream won't fix (https://github.com/pexpect/pexpect/issues/290)
|
|
# so MODPY_COMMENT is used in the PLIST to avoid installing this file (and
|
|
# especially the related pyc file which is not produced due to the failure).
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/examples/* ${EXAMPLESDIR}
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
cd ${WRKSRC}/doc/_build/html && pax -rw * ${DOCDIR}
|
|
|
|
.include <bsd.port.mk>
|