pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python Added the usual documentation.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fb45c6334c66
branches:  trunk
changeset: 518377:fb45c6334c66
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Sep 07 16:22:54 2006 +0000

description:
Added the usual documentation.

Whenever this file is used, PYTHON_VERSION_DEFAULT is added to
BUILD_DEFS to inform the user that the Python version is configurable.

diffstat:

 lang/python/pyversion.mk |  38 +++++++++++++++++++++++++++++++++++++-
 1 files changed, 37 insertions(+), 1 deletions(-)

diffs (51 lines):

diff -r 23a9826f5619 -r fb45c6334c66 lang/python/pyversion.mk
--- a/lang/python/pyversion.mk  Thu Sep 07 16:14:16 2006 +0000
+++ b/lang/python/pyversion.mk  Thu Sep 07 16:22:54 2006 +0000
@@ -1,10 +1,46 @@
-# $NetBSD: pyversion.mk,v 1.43 2006/08/08 09:49:57 drochner Exp $
+# $NetBSD: pyversion.mk,v 1.44 2006/09/07 16:22:54 rillig Exp $
+
+# This file determines which Python version is used as a dependency for
+# a package.
+#
+# The following variables may be set by the pkgsrc user in mk.conf:
+#
+# PYTHON_VERSION_DEFAULT
+#      The preferred Python version to use.
+#
+#      Possible values: 15 20 21 22 23 24
+#      Default: 24
+#
+# The following variables may be set by a package before including this
+# file:
+#
+# PYTHON_VERSIONS_ACCEPTED
+#      The Python versions that are acceptable for the package. The
+#      order of the entries matters.
+#
+#      Possible values: 24 23 22 21 20 15
+#      Default: (all)
+#
+# PYTHON_VERSIONS_INCOMPATIBLE
+#      The Python versions that are NOT acceptable for the package.
+#
+#      Possible values: 15 20 21 22 23 24
+#      Default: (depends on the platform)
+#
+# PYTHON_FOR_BUILD_ONLY
+#      Whether Python is needed only at build time or at run time.
+#
+#      Possible values: (defined) (undefined)
+#      Default: (undefined)
+#
 
 .if !defined(PYTHON_PYVERSION_MK)
 PYTHON_PYVERSION_MK=   defined
 
 .include "../../mk/bsd.prefs.mk"
 
+BUILD_DEFS+=                           PYTHON_VERSION_DEFAULT
+
 PYTHON_VERSION_DEFAULT?=               24
 .if ${OPSYS} == "Darwin"
 PYTHON_VERSIONS_INCOMPATIBLE+=         22 21 20 15



Home | Main Index | Thread Index | Old Index