freebsd-ports/devel/py-python-dtrace/Makefile
Alex Richardson 81f3562e82 devel/py-python-dtrace: Update to 0.0.13
This can now be built without the source tree present since
dtrace.h is now installed for FreeBSD13+.

Test Plan:	builds on my RPI4 without /usr/src now.
Reviewed By:	lwhsu
Differential Revision: https://reviews.freebsd.org/D29127
2021-04-21 13:14:48 +01:00

34 lines
1,019 B
Makefile

PORTNAME= python-dtrace
PORTVERSION= 0.0.13
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= gcj21@cl.cam.ac.uk
COMMENT= DTrace consumer for Python based on libdtrace
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist distutils cython cython_run
.include <bsd.port.pre.mk>
# We need to pass the path to the source for older FreeBSD versions that
# don't install dtrace.h to /usr/include.
.if !exists(/usr/include/dtrace.h)
.if !exists(${SRC_BASE}/sys/cddl/contrib/opensolaris/uts/common/sys/dtrace.h)
IGNORE= requires kernel source files in SRC_BASE=${SRC_BASE}
.endif
MAKE_ENV+= FREEBSD_SRC_DIR=${SRC_BASE}
.endif
# Tests not included in the release tarball, uncomment if this changes.
# TEST_DEPENDS=→${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
#do-test:
# @cd ${WRKSRC} && ${PYTHON_CMD} -m pytest -rs -v
.include <bsd.port.post.mk>