summaryrefslogtreecommitdiff
path: root/lang/python21
diff options
context:
space:
mode:
authorjmmv <jmmv@pkgsrc.org>2005-01-30 12:44:39 +0000
committerjmmv <jmmv@pkgsrc.org>2005-01-30 12:44:39 +0000
commitdf333169fb9216f66002b04441324ea1e8d0de5d (patch)
tree95988a887fefe421c99733881b7056fc145466ab /lang/python21
parent8d1e3803647a0ec497b78baaebbb5cd1cb270cd1 (diff)
downloadpkgsrc-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/python21')
-rw-r--r--lang/python21/ALTERNATIVES1
-rw-r--r--lang/python21/Makefile6
2 files changed, 5 insertions, 2 deletions
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