pkgsrc/cad/py-MyHDL/Makefile
wiz 8a9cb53cf6 *: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
2022-01-04 20:52:30 +00:00

28 lines
759 B
Makefile

# $NetBSD: Makefile,v 1.29 2022/01/04 20:52:35 wiz Exp $
.include "Makefile.common"
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/myhdl/MyHDL/}
PKGREVISION= 3
MAINTAINER= pkgsrc-users@NetBSD.org
COMMENT= Hardware description in Python
PYTHON_VERSIONED_DEPENDENCIES= test:test
.include "../../lang/python/pyversion.mk"
# Python 2.x only -- subprocess is part of Python 3.x
.if ${_PYTHON_VERSION} < 32
BUILD_DEPENDS+= ${PYPKGPREFIX}-subprocess32-[0-9]*:../../devel/py-subprocess32
.endif
do-test:
${RUN} cd ${WRKSRC}/myhdl/test/core && \
${SETENV} ${TEST_ENV} \
PYTHONPATH=${DESTDIR}${PREFIX}/${PYSITELIB} \
py.test-${PYVERSSUFFIX}
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"