pkgsrc/devel/py-line_profiler/Makefile
minskim 4017e4a517 devel/py-line_profiler: Fix build with python38
Regenerate .c files with recent Cython.
2019-12-18 04:49:47 +00:00

33 lines
891 B
Makefile

# $NetBSD: Makefile,v 1.7 2019/12/18 04:49:47 minskim Exp $
DISTNAME= line_profiler-2.1.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=l/line_profiler/}
MAINTAINER= minskim@NetBSD.org
HOMEPAGE= https://github.com/rkern/line_profiler
COMMENT= Python line-by-line profiler
LICENSE= modified-bsd
USE_LANGUAGES= c
post-install:
cd ${DESTDIR}${PREFIX}/bin && \
${MV} kernprof kernprof${PYVERSSUFFIX} || ${TRUE}
PYTHON_VERSIONED_DEPENDENCIES= ipython
.include "../../lang/python/pyversion.mk"
.if ${_PYTHON_VERSION} >= 37
# Regenerate _line_profiler.c with recent cython
BUILDLINK_DEPMETHOD.py-cython= build
.include "../../devel/py-cython/buildlink3.mk"
pre-configure:
${RM} -f ${WRKSRC}/_line_profiler.c
.endif
.include "../../lang/python/egg.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"