aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python/Makefile
diff options
context:
space:
mode:
authoralexbl <alexbl@FreeBSD.org>2007-07-30 17:42:28 +0800
committeralexbl <alexbl@FreeBSD.org>2007-07-30 17:42:28 +0800
commit7d749db4cf14f30613e9a53a08ffa3d3b4575146 (patch)
treead9062005432bbf28f5cce4ad3a1cd32a59dba69 /lang/python/Makefile
parent8e2da239f74a82ad1c98b69bd27abb3f4e40ecf3 (diff)
downloadfreebsd-ports-gnome-7d749db4cf14f30613e9a53a08ffa3d3b4575146.tar.gz
freebsd-ports-gnome-7d749db4cf14f30613e9a53a08ffa3d3b4575146.tar.zst
freebsd-ports-gnome-7d749db4cf14f30613e9a53a08ffa3d3b4575146.zip
- Make Python 2.5.1 the default Python version
- Add significantly better support in bsd.python.mk for working with Python Eggs and the easy_install system Tested by: pointyhat runs Approved by: pav (portmgr) Most work by: perky Thanks to: pav
Diffstat (limited to 'lang/python/Makefile')
-rw-r--r--lang/python/Makefile41
1 files changed, 21 insertions, 20 deletions
diff --git a/lang/python/Makefile b/lang/python/Makefile
index fc1b1a72cc79..3b3a59fc5dd3 100644
--- a/lang/python/Makefile
+++ b/lang/python/Makefile
@@ -6,43 +6,44 @@
#
PORTNAME= python
-PORTVERSION= 2.4.4
-PORTEPOCH= 1
+PORTVERSION= ${PYTHON_VER}
+PORTEPOCH= 2
CATEGORIES= lang python ipv6
MASTER_SITES= # empty
DISTFILES= # empty
EXTRACT_ONLY= # empty
MAINTAINER= python@FreeBSD.org
-COMMENT= The "meta-port" for the stable version of Python interpreter
+COMMENT= The "meta-port" for the default version of Python interpreter
USE_PYTHON_RUN= yes
-PYTHON_VERSION= python2.4
+PYTHON_VERSION= ${PYTHON_DEFAULT_VERSION}
NO_BUILD= yes
-do-install: # empty
+do-install:
+ @${DO_NADA}
# Major upgrade support
PORTUPGRADE?= ${LOCALBASE}/sbin/portupgrade
PKG_WHICH?= ${LOCALBASE}/sbin/pkg_which
upgrade-site-packages:
- @if [ -x ${PORTUPGRADE} ]; then \
- for ver in 2.1 2.2 2.3 2.5; do \
- if [ -d ${PREFIX}/lib/python$$ver ]; then \
- UPD=`${FIND} ${PREFIX}/lib/python$$ver \
- -type f -print0 | \
- ${XARGS} -0 ${PKG_WHICH} | \
- ${GREP} -Fv '?' | \
- ${EGREP} -v '^python2?[0-5]?-2' | \
- ${SORT} -u`; \
- if [ "$$UPD" ]; then \
- ${PORTUPGRADE} -f $$UPD; \
- fi; \
- fi; \
- done; \
- else \
+ @if [ ! -x ${PORTUPGRADE} ]; then \
${ECHO_MSG} "Please install ports-mgmt/portupgrade."; \
${FALSE}; \
fi
+ @for ver in `echo ${_PYTHON_ALLBRANCHES}|${SED} 's/${PYTHON_VER}//'`; do \
+ if [ -d ${PREFIX}/lib/python$$ver ]; then \
+ UPD=`${FIND} ${PREFIX}/lib/python$$ver \
+ -type f -print0 | \
+ ${XARGS} -0 ${PKG_WHICH} | \
+ ${GREP} -Fv '?' | \
+ ${EGREP} -v '^python2?[0-5]?-2' | \
+ ${SORT} -u`; \
+ if [ "$$UPD" ]; then \
+ ${PORTUPGRADE} -f $$UPD; \
+ fi; \
+ fi; \
+ done \
+
.include <bsd.port.mk>