diff options
author | lukem <lukem@pkgsrc.org> | 2004-02-06 08:37:22 +0000 |
---|---|---|
committer | lukem <lukem@pkgsrc.org> | 2004-02-06 08:37:22 +0000 |
commit | dcea7098b598c4e4586aecad028378f7cfb7657e (patch) | |
tree | d6e3c70e2bd372465c1b3202fd1ebfcdd29a5fb0 /lang/python | |
parent | 67b8f7b41149bfadf9bd604471a524cb8498a301 (diff) | |
download | pkgsrc-dcea7098b598c4e4586aecad028378f7cfb7657e.tar.gz |
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 (limited to 'lang/python')
-rw-r--r-- | lang/python/DESCR | 19 | ||||
-rw-r--r-- | lang/python/Makefile | 29 | ||||
-rw-r--r-- | lang/python/PLIST | 2 |
3 files changed, 50 insertions, 0 deletions
diff --git a/lang/python/DESCR b/lang/python/DESCR new file mode 100644 index 00000000000..07fd9635e78 --- /dev/null +++ b/lang/python/DESCR @@ -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 --git a/lang/python/Makefile b/lang/python/Makefile new file mode 100644 index 00000000000..c0729133aa2 --- /dev/null +++ b/lang/python/Makefile @@ -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 +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 --git a/lang/python/PLIST b/lang/python/PLIST new file mode 100644 index 00000000000..2503ce122c7 --- /dev/null +++ b/lang/python/PLIST @@ -0,0 +1,2 @@ +@comment $NetBSD: PLIST,v 1.1 2004/02/06 08:37:22 lukem Exp $ +bin/python |