pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python Moved the BUILD_DEFS code a bit so that it...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8a29992390eb
branches:  trunk
changeset: 518386:8a29992390eb
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Sep 07 22:12:15 2006 +0000

description:
Moved the BUILD_DEFS code a bit so that it only gets executed when the
PYTHON_VERSION_DEFAULT can really change things. Thanks to joerg for
noticing it.

diffstat:

 lang/python/pyversion.mk |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 59465572fd42 -r 8a29992390eb lang/python/pyversion.mk
--- a/lang/python/pyversion.mk  Thu Sep 07 21:27:30 2006 +0000
+++ b/lang/python/pyversion.mk  Thu Sep 07 22:12:15 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: pyversion.mk,v 1.44 2006/09/07 16:22:54 rillig Exp $
+# $NetBSD: pyversion.mk,v 1.45 2006/09/07 22:12:15 rillig Exp $
 
 # This file determines which Python version is used as a dependency for
 # a package.
@@ -39,8 +39,6 @@
 
 .include "../../mk/bsd.prefs.mk"
 
-BUILD_DEFS+=                           PYTHON_VERSION_DEFAULT
-
 PYTHON_VERSION_DEFAULT?=               24
 .if ${OPSYS} == "Darwin"
 PYTHON_VERSIONS_INCOMPATIBLE+=         22 21 20 15
@@ -75,6 +73,7 @@
 .else
 # if the default is accepted, it is first choice
 . if !defined(_PYTHON_VERSION)
+BUILD_DEFS+=           PYTHON_VERSION_DEFAULT
 . if defined(_PYTHON_VERSION_${PYTHON_VERSION_DEFAULT}_OK)
 _PYTHON_VERSION=       ${PYTHON_VERSION_DEFAULT}
 . endif



Home | Main Index | Thread Index | Old Index