pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/py-line_profiler



Module Name:    pkgsrc
Committed By:   minskim
Date:           Tue Aug  7 16:45:10 UTC 2018

Modified Files:
        pkgsrc/devel/py-line_profiler: Makefile

Log Message:
devel/py-line_profiler: Rerun cython for python37 compatibility


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 pkgsrc/devel/py-line_profiler/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-line_profiler/Makefile
diff -u pkgsrc/devel/py-line_profiler/Makefile:1.4 pkgsrc/devel/py-line_profiler/Makefile:1.5
--- pkgsrc/devel/py-line_profiler/Makefile:1.4  Wed Jan 31 13:42:32 2018
+++ pkgsrc/devel/py-line_profiler/Makefile      Tue Aug  7 16:45:10 2018
@@ -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_VARS+= py35
 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