Wed Dec 18 04:49:47 2019 UTC ()
devel/py-line_profiler: Fix build with python38

Regenerate .c files with recent Cython.


(minskim)
diff -r1.6 -r1.7 pkgsrc/devel/py-line_profiler/Makefile

cvs diff -r1.6 -r1.7 pkgsrc/devel/py-line_profiler/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-line_profiler/Makefile 2019/05/02 09:27:09 1.6
+++ pkgsrc/devel/py-line_profiler/Makefile 2019/12/18 04:49:47 1.7
@@ -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
3DISTNAME= line_profiler-2.1.2 3DISTNAME= line_profiler-2.1.2
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=l/line_profiler/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=l/line_profiler/}
7 7
8MAINTAINER= minskim@NetBSD.org 8MAINTAINER= minskim@NetBSD.org
9HOMEPAGE= https://github.com/rkern/line_profiler 9HOMEPAGE= https://github.com/rkern/line_profiler
10COMMENT= Python line-by-line profiler 10COMMENT= Python line-by-line profiler
11LICENSE= modified-bsd 11LICENSE= modified-bsd
12 12
13USE_LANGUAGES= c 13USE_LANGUAGES= c
14 14
15post-install: 15post-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
19PYTHON_VERSIONED_DEPENDENCIES= ipython 19PYTHON_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
24BUILDLINK_DEPMETHOD.py-cython= build 24BUILDLINK_DEPMETHOD.py-cython= build
25.include "../../devel/py-cython/buildlink3.mk" 25.include "../../devel/py-cython/buildlink3.mk"
26 26
27pre-configure: 27pre-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"