pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python Recognize python3 as interpreter for repla...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3dfc07426a3b
branches:  trunk
changeset: 364706:3dfc07426a3b
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Mon Jul 03 18:13:43 2017 +0000

description:
Recognize python3 as interpreter for replacement.

diffstat:

 lang/python/application.mk |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e3ad7bf4fd5d -r 3dfc07426a3b lang/python/application.mk
--- a/lang/python/application.mk        Mon Jul 03 18:11:27 2017 +0000
+++ b/lang/python/application.mk        Mon Jul 03 18:13:43 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: application.mk,v 1.11 2014/01/25 10:45:50 wiz Exp $
+# $NetBSD: application.mk,v 1.12 2017/07/03 18:13:43 joerg Exp $
 #
 # Replace the #! interpreter for Python scripts.
 #
@@ -19,7 +19,7 @@
 
 .if defined(REPLACE_PYTHON)
 REPLACE_INTERPRETER+=  python
-REPLACE.python.old=    .*python[^ ]*
+REPLACE.python.old=    .*python3\{0,1\}[^ ]*
 REPLACE.python.new=    ${PYTHONBIN}
 REPLACE_FILES.python=  ${REPLACE_PYTHON}
 .endif



Home | Main Index | Thread Index | Old Index