pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-line_profiler devel/py-line_profiler: Rerun c...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ba9037c6bf86
branches:  trunk
changeset: 383687:ba9037c6bf86
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Tue Aug 07 16:45:10 2018 +0000

description:
devel/py-line_profiler: Rerun cython for python37 compatibility

diffstat:

 devel/py-line_profiler/Makefile |  11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diffs (25 lines):

diff -r d36371519bf1 -r ba9037c6bf86 devel/py-line_profiler/Makefile
--- a/devel/py-line_profiler/Makefile   Tue Aug 07 16:44:26 2018 +0000
+++ b/devel/py-line_profiler/Makefile   Tue Aug 07 16:45:10 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2018/01/31 13:42:32 adam Exp $
+# $NetBSD: Makefile,v 1.5 2018/08/07 16:45:10 minskim Exp $
 
 DISTNAME=      line_profiler-2.1.2
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
@@ -25,6 +25,15 @@
 PLIST.py35=    yes
 .endif
 
+.if "${PYPKGPREFIX}" == "py37"
+# 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"



Home | Main Index | Thread Index | Old Index