# $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"