| @@ -1,33 +1,33 @@ | | | @@ -1,33 +1,33 @@ |
1 | # $NetBSD: Makefile,v 1.6 2019/05/02 09:27:09 adam Exp $ | | 1 | # $NetBSD: Makefile,v 1.7 2019/12/18 04:49:47 minskim Exp $ |
2 | | | 2 | |
3 | DISTNAME= line_profiler-2.1.2 | | 3 | DISTNAME= line_profiler-2.1.2 |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} |
5 | CATEGORIES= devel python | | 5 | CATEGORIES= devel python |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=l/line_profiler/} | | 6 | MASTER_SITES= ${MASTER_SITE_PYPI:=l/line_profiler/} |
7 | | | 7 | |
8 | MAINTAINER= minskim@NetBSD.org | | 8 | MAINTAINER= minskim@NetBSD.org |
9 | HOMEPAGE= https://github.com/rkern/line_profiler | | 9 | HOMEPAGE= https://github.com/rkern/line_profiler |
10 | COMMENT= Python line-by-line profiler | | 10 | COMMENT= Python line-by-line profiler |
11 | LICENSE= modified-bsd | | 11 | LICENSE= modified-bsd |
12 | | | 12 | |
13 | USE_LANGUAGES= c | | 13 | USE_LANGUAGES= c |
14 | | | 14 | |
15 | post-install: | | 15 | post-install: |
16 | cd ${DESTDIR}${PREFIX}/bin && \ | | 16 | cd ${DESTDIR}${PREFIX}/bin && \ |
17 | ${MV} kernprof kernprof${PYVERSSUFFIX} || ${TRUE} | | 17 | ${MV} kernprof kernprof${PYVERSSUFFIX} || ${TRUE} |
18 | | | 18 | |
19 | PYTHON_VERSIONED_DEPENDENCIES= ipython | | 19 | PYTHON_VERSIONED_DEPENDENCIES= ipython |
20 | | | 20 | |
21 | .include "../../lang/python/pyversion.mk" | | 21 | .include "../../lang/python/pyversion.mk" |
22 | .if ${_PYTHON_VERSION} == 37 | | 22 | .if ${_PYTHON_VERSION} >= 37 |
23 | # Regenerate _line_profiler.c with recent cython | | 23 | # Regenerate _line_profiler.c with recent cython |
24 | BUILDLINK_DEPMETHOD.py-cython= build | | 24 | BUILDLINK_DEPMETHOD.py-cython= build |
25 | .include "../../devel/py-cython/buildlink3.mk" | | 25 | .include "../../devel/py-cython/buildlink3.mk" |
26 | | | 26 | |
27 | pre-configure: | | 27 | pre-configure: |
28 | ${RM} -f ${WRKSRC}/_line_profiler.c | | 28 | ${RM} -f ${WRKSRC}/_line_profiler.c |
29 | .endif | | 29 | .endif |
30 | | | 30 | |
31 | .include "../../lang/python/egg.mk" | | 31 | .include "../../lang/python/egg.mk" |
32 | .include "../../lang/python/versioned_dependencies.mk" | | 32 | .include "../../lang/python/versioned_dependencies.mk" |
33 | .include "../../mk/bsd.pkg.mk" | | 33 | .include "../../mk/bsd.pkg.mk" |