diff options
author | jmmv <jmmv@pkgsrc.org> | 2005-01-30 12:44:39 +0000 |
---|---|---|
committer | jmmv <jmmv@pkgsrc.org> | 2005-01-30 12:44:39 +0000 |
commit | df333169fb9216f66002b04441324ea1e8d0de5d (patch) | |
tree | 95988a887fefe421c99733881b7056fc145466ab /lang | |
parent | 8d1e3803647a0ec497b78baaebbb5cd1cb270cd1 (diff) | |
download | pkgsrc-df333169fb9216f66002b04441324ea1e8d0de5d.tar.gz |
Convert the python packages to use the alternatives system to install a
bin/python wrapper. Bump their PKGREVISION to 1.
Also remove the python package. In order to preserve a similar behavior to
this one using the new framework, start by installing pkg_alternatives.
Then just open its manpage, scroll down to the EXAMPLES section, Applying
filters subsection, and follow the (rather short) directions given there.
Diffstat (limited to 'lang')
-rw-r--r-- | lang/python/DESCR | 19 | ||||
-rw-r--r-- | lang/python/Makefile | 29 | ||||
-rw-r--r-- | lang/python/PLIST | 2 | ||||
-rw-r--r-- | lang/python15/ALTERNATIVES | 1 | ||||
-rw-r--r-- | lang/python15/Makefile | 6 | ||||
-rw-r--r-- | lang/python20/ALTERNATIVES | 1 | ||||
-rw-r--r-- | lang/python20/Makefile | 5 | ||||
-rw-r--r-- | lang/python21/ALTERNATIVES | 1 | ||||
-rw-r--r-- | lang/python21/Makefile | 6 | ||||
-rw-r--r-- | lang/python22/ALTERNATIVES | 1 | ||||
-rw-r--r-- | lang/python22/Makefile | 6 | ||||
-rw-r--r-- | lang/python23-nth/ALTERNATIVES | 1 | ||||
-rw-r--r-- | lang/python23-nth/Makefile | 5 | ||||
-rw-r--r-- | lang/python23/ALTERNATIVES | 1 | ||||
-rw-r--r-- | lang/python23/Makefile | 6 | ||||
-rw-r--r-- | lang/python24/ALTERNATIVES | 1 | ||||
-rw-r--r-- | lang/python24/Makefile | 6 |
17 files changed, 34 insertions, 63 deletions
diff --git a/lang/python/DESCR b/lang/python/DESCR deleted file mode 100644 index 07fd9635e78..00000000000 --- a/lang/python/DESCR +++ /dev/null @@ -1,19 +0,0 @@ -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 deleted file mode 100644 index 7b02f73a4ae..00000000000 --- a/lang/python/Makefile +++ /dev/null @@ -1,29 +0,0 @@ -# $NetBSD: Makefile,v 1.28 2004/07/22 09:16:03 recht Exp $ -# - -DISTNAME= python -PKGNAME= python-${PYVERSSUFFIX} -CATEGORIES= lang python -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 deleted file mode 100644 index 2503ce122c7..00000000000 --- a/lang/python/PLIST +++ /dev/null @@ -1,2 +0,0 @@ -@comment $NetBSD: PLIST,v 1.1 2004/02/06 08:37:22 lukem Exp $ -bin/python diff --git a/lang/python15/ALTERNATIVES b/lang/python15/ALTERNATIVES new file mode 100644 index 00000000000..c871aa63a66 --- /dev/null +++ b/lang/python15/ALTERNATIVES @@ -0,0 +1 @@ +bin/python @PREFIX@/bin/python1.5 diff --git a/lang/python15/Makefile b/lang/python15/Makefile index 465c5ecbfed..0ce2d22be0e 100644 --- a/lang/python15/Makefile +++ b/lang/python15/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.11 2004/10/04 00:49:26 jschauma Exp $ +# $NetBSD: Makefile,v 1.12 2005/01/30 12:44:39 jmmv Exp $ # DISTNAME= py152 PKGNAME= python15-1.5.2 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= lang python MASTER_SITES= http://www.python.org/ftp/python/src/ EXTRACT_SUFX= .tgz @@ -12,6 +12,8 @@ MAINTAINER= tech-pkg@NetBSD.org HOMEPAGE= http://www.python.org/ COMMENT= Interpreted, interactive, object-oriented programming language +CONFLICTS+= python-[0-9]* + WRKSRC= ${WRKDIR}/Python-1.5.2 GNU_CONFIGURE= YES CONFIGURE_ARGS+= --without-thread diff --git a/lang/python20/ALTERNATIVES b/lang/python20/ALTERNATIVES new file mode 100644 index 00000000000..53e68f84033 --- /dev/null +++ b/lang/python20/ALTERNATIVES @@ -0,0 +1 @@ +bin/python @PREFIX@/bin/python2.0 diff --git a/lang/python20/Makefile b/lang/python20/Makefile index a5b9ac1ec44..36ad5eb01c4 100644 --- a/lang/python20/Makefile +++ b/lang/python20/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.25 2004/12/19 05:34:07 grant Exp $ +# $NetBSD: Makefile,v 1.26 2005/01/30 12:44:39 jmmv Exp $ # DISTNAME= Python-2.0.1 PKGNAME= python20-2.0.1 -PKGREVISION= 9 +PKGREVISION= 10 CATEGORIES= lang python MASTER_SITES= ftp://ftp.python.org/pub/python/2.0.1/ EXTRACT_SUFX= .tgz @@ -12,6 +12,7 @@ MAINTAINER= tsarna@NetBSD.org HOMEPAGE= http://www.python.org/ COMMENT= Interpreted, interactive, object-oriented programming language +CONFLICTS+= python-[0-9]* CONFLICTS+= python-2.0.* PLIST_SRC= ${WRKDIR}/.PLIST_SRC diff --git a/lang/python21/ALTERNATIVES b/lang/python21/ALTERNATIVES new file mode 100644 index 00000000000..c1ac40806db --- /dev/null +++ b/lang/python21/ALTERNATIVES @@ -0,0 +1 @@ +bin/python @PREFIX@/bin/python2.1 diff --git a/lang/python21/Makefile b/lang/python21/Makefile index d41d3a925f2..0c69c90a385 100644 --- a/lang/python21/Makefile +++ b/lang/python21/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.17 2005/01/23 20:41:46 recht Exp $ +# $NetBSD: Makefile,v 1.18 2005/01/30 12:44:39 jmmv Exp $ # DISTNAME= Python-2.1.3 PKGNAME= python21-2.1.3 -PKGREVISION= 5 +PKGREVISION= 6 CATEGORIES= lang python MASTER_SITES= ftp://ftp.python.org/pub/python/2.1.3/ EXTRACT_SUFX= .tgz @@ -12,6 +12,8 @@ MAINTAINER= tech-pkg@NetBSD.org HOMEPAGE= http://www.python.org/ COMMENT= Interpreted, interactive, object-oriented programming language +CONFLICTS+= python-[0-9]* + USE_LANGUAGES= c c++ USE_BUILDLINK3= YES GNU_CONFIGURE= YES diff --git a/lang/python22/ALTERNATIVES b/lang/python22/ALTERNATIVES new file mode 100644 index 00000000000..bcd5932a1f8 --- /dev/null +++ b/lang/python22/ALTERNATIVES @@ -0,0 +1 @@ +bin/python @PREFIX@/bin/python2.2 diff --git a/lang/python22/Makefile b/lang/python22/Makefile index 4a9052af522..7900d25c9eb 100644 --- a/lang/python22/Makefile +++ b/lang/python22/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.24 2005/01/25 13:09:03 tv Exp $ +# $NetBSD: Makefile,v 1.25 2005/01/30 12:44:39 jmmv Exp $ # DISTNAME= Python-2.2.3 PKGNAME= python22-2.2.3 -PKGREVISION= 3 +PKGREVISION= 4 CATEGORIES= lang python MASTER_SITES= ftp://ftp.python.org/pub/python/2.2.3/ EXTRACT_SUFX= .tgz @@ -12,6 +12,8 @@ MAINTAINER= tech-pkg@NetBSD.org HOMEPAGE= http://www.python.org/ COMMENT= Interpreted, interactive, object-oriented programming language +CONFLICTS+= python-[0-9]* + USE_LANGUAGES= c c++ USE_BUILDLINK3= YES GNU_CONFIGURE= YES diff --git a/lang/python23-nth/ALTERNATIVES b/lang/python23-nth/ALTERNATIVES new file mode 100644 index 00000000000..715373349de --- /dev/null +++ b/lang/python23-nth/ALTERNATIVES @@ -0,0 +1 @@ +bin/python @PREFIX@/bin/python2n3 diff --git a/lang/python23-nth/Makefile b/lang/python23-nth/Makefile index 2218af646db..94cffe6baec 100644 --- a/lang/python23-nth/Makefile +++ b/lang/python23-nth/Makefile @@ -1,7 +1,10 @@ -# $NetBSD: Makefile,v 1.1.1.1 2005/01/23 22:57:19 recht Exp $ +# $NetBSD: Makefile,v 1.2 2005/01/30 12:44:40 jmmv Exp $ # PKGNAME= python23-nth-2.3.4 +PKGREVISION= 1 + +CONFLICTS+= python-[0-9]* CONFIGURE_ARGS+= --without-threads diff --git a/lang/python23/ALTERNATIVES b/lang/python23/ALTERNATIVES new file mode 100644 index 00000000000..cb4cf330e28 --- /dev/null +++ b/lang/python23/ALTERNATIVES @@ -0,0 +1 @@ +bin/python @PREFIX@/bin/python2.3 diff --git a/lang/python23/Makefile b/lang/python23/Makefile index 81619cc7011..2359bb926eb 100644 --- a/lang/python23/Makefile +++ b/lang/python23/Makefile @@ -1,8 +1,10 @@ -# $NetBSD: Makefile,v 1.24 2005/01/24 19:50:43 recht Exp $ +# $NetBSD: Makefile,v 1.25 2005/01/30 12:44:40 jmmv Exp $ # PKGNAME= python23-2.3.4 -PKGREVISION= 5 +PKGREVISION= 6 + +CONFLICTS+= python-[0-9]* #PKG_INSTALLATION_TYPES= overwrite pkgviews diff --git a/lang/python24/ALTERNATIVES b/lang/python24/ALTERNATIVES new file mode 100644 index 00000000000..4207fa1e29c --- /dev/null +++ b/lang/python24/ALTERNATIVES @@ -0,0 +1 @@ +bin/python @PREFIX@/bin/python2.4 diff --git a/lang/python24/Makefile b/lang/python24/Makefile index 2d8ebcc9710..6395b62fa5a 100644 --- a/lang/python24/Makefile +++ b/lang/python24/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.2 2005/01/23 20:41:47 recht Exp $ +# $NetBSD: Makefile,v 1.3 2005/01/30 12:44:40 jmmv Exp $ # DISTNAME= Python-2.4 PKGNAME= python24-2.4 -PKGREVISION= 2 +PKGREVISION= 3 CATEGORIES= lang python MASTER_SITES= ftp://ftp.python.org/pub/python/2.4/ EXTRACT_SUFX= .tar.bz2 @@ -12,6 +12,8 @@ MAINTAINER= recht@NetBSD.org HOMEPAGE= http://www.python.org/ COMMENT= Interpreted, interactive, object-oriented programming language +CONFLICTS+= python-[0-9]* + USE_LANGUAGES= c c++ USE_BUILDLINK3= yes GNU_CONFIGURE= yes |