pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/python Add a python "meta package" to install a s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f40488723078
branches:  trunk
changeset: 467752:f40488723078
user:      lukem <lukem%pkgsrc.org@localhost>
date:      Fri Feb 06 08:37:22 2004 +0000

description:
Add a python "meta package" to install a symlink from ${PKGBASE}/bin/python
to the preferred version of python (as specified by PYTHON_VERSION_DEFAULT).
This means that cross-platform python scripts with "#!/usr/bin/env python"
actually function on pkgsrc systems without nasty hackery.
Approved by Alistair.

diffstat:

 lang/python/DESCR    |  19 +++++++++++++++++++
 lang/python/Makefile |  29 +++++++++++++++++++++++++++++
 lang/python/PLIST    |   2 ++
 3 files changed, 50 insertions(+), 0 deletions(-)

diffs (62 lines):

diff -r 39d337d4422b -r f40488723078 lang/python/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python/DESCR Fri Feb 06 08:37:22 2004 +0000
@@ -0,0 +1,19 @@
+Python is an interpreted, interactive, object-oriented
+programming language that combines remarkable power with
+very clear syntax. For an introduction to programming in
+Python you are referred to the Python Tutorial. The
+Python Library Reference documents built-in and standard
+types, constants, functions and modules. Finally, the
+Python Reference Manual describes the syntax and semantics
+of the core language in (perhaps too) much detail.
+
+Python's basic power can be extended with your own modules
+written in C or C++. On most systems such modules may be
+dynamically loaded. Python is also adaptable as an exten-
+sion language for existing applications. See the internal
+documentation for hints.
+
+This package provides easy installation of the preferred
+version of python (selected with PYTHON_VERSION_DEFAULT)
+and installs a symbolic link from ${PKGBASE}/bin/python
+to that version.
diff -r 39d337d4422b -r f40488723078 lang/python/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python/Makefile      Fri Feb 06 08:37:22 2004 +0000
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.27 2004/02/06 08:37:22 lukem Exp $
+#
+
+DISTNAME=      python
+PKGNAME=       python-${PYVERSSUFFIX}
+CATEGORIES=    lang
+MASTER_SITES=  # empty
+DISTFILES=     # empty
+
+MAINTAINER=    lukem%NetBSD.org@localhost
+HOMEPAGE=      http://www.python.org/
+COMMENT=       The "meta-package" for Python
+
+EXTRACT_ONLY=  # empty
+NO_CHECKSUM=   yes
+NO_CONFIGURE=  yes
+NO_BUILD=      yes
+
+# Ensure version of python the user asks for is selected, even
+# if it's not yet installed.
+_PYTHON_VERSION=${PYTHON_VERSION_DEFAULT}
+
+do-install:
+       @${ECHO} "Linking ${PREFIX}/bin/python to ${PYTHONBIN}"
+       @${RM} -f ${PREFIX}/bin/python
+       @${LN} -s ${PYTHONBIN} ${PREFIX}/bin/python
+
+.include "../../lang/python/pyversion.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 39d337d4422b -r f40488723078 lang/python/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/python/PLIST Fri Feb 06 08:37:22 2004 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2004/02/06 08:37:22 lukem Exp $
+bin/python



Home | Main Index | Thread Index | Old Index