1995-08-09 00:09:07 +02:00
|
|
|
# New ports collection makefile for: python
|
|
|
|
# Date created: 08 August 1995
|
|
|
|
# Whom: jkh
|
|
|
|
#
|
1999-08-25 08:35:40 +02:00
|
|
|
# $FreeBSD$
|
1995-08-09 00:09:07 +02:00
|
|
|
#
|
|
|
|
|
2000-04-12 08:21:15 +02:00
|
|
|
PORTNAME= python
|
2006-10-13 09:16:45 +02:00
|
|
|
PORTVERSION= 2.4.3
|
|
|
|
PORTEPOCH= 1
|
2002-04-02 13:55:20 +02:00
|
|
|
CATEGORIES= lang python ipv6
|
2006-10-09 16:29:18 +02:00
|
|
|
MASTER_SITES= # empty
|
|
|
|
DISTFILES= # empty
|
|
|
|
EXTRACT_ONLY= # empty
|
1998-04-08 11:23:59 +02:00
|
|
|
|
2006-10-09 16:29:18 +02:00
|
|
|
MAINTAINER= python@FreeBSD.org
|
|
|
|
COMMENT= The "meta-port" for the stable version of Python interpreter
|
1995-08-09 00:09:07 +02:00
|
|
|
|
2006-10-09 17:51:28 +02:00
|
|
|
USE_PYTHON_RUN= yes
|
2006-10-13 09:16:45 +02:00
|
|
|
PYTHON_VERSION= python2.4
|
2006-10-09 16:29:18 +02:00
|
|
|
NO_BUILD= yes
|
1995-08-09 03:30:00 +02:00
|
|
|
|
2006-10-09 16:29:18 +02:00
|
|
|
do-install: # empty
|
2003-09-26 06:24:56 +02:00
|
|
|
|
2006-10-09 16:29:18 +02:00
|
|
|
# Major upgrade support
|
2004-12-06 06:28:34 +01:00
|
|
|
PORTUPGRADE?= ${LOCALBASE}/sbin/portupgrade
|
|
|
|
PKG_WHICH?= ${LOCALBASE}/sbin/pkg_which
|
|
|
|
upgrade-site-packages:
|
|
|
|
@if [ -x ${PORTUPGRADE} ]; then \
|
2006-10-13 09:16:45 +02:00
|
|
|
for ver in 2.1 2.2 2.3 2.5; do \
|
2004-12-06 06:28:34 +01:00
|
|
|
if [ -d ${PREFIX}/lib/python$$ver ]; then \
|
|
|
|
UPD=`${FIND} ${PREFIX}/lib/python$$ver \
|
|
|
|
-type f -print0 | \
|
|
|
|
${XARGS} -0 ${PKG_WHICH} | \
|
|
|
|
${GREP} -Fv '?' | \
|
2006-10-13 09:16:45 +02:00
|
|
|
${EGREP} -v '^python2?[0-5]?-2' | \
|
2004-12-06 06:28:34 +01:00
|
|
|
${SORT} -u`; \
|
|
|
|
if [ "$$UPD" ]; then \
|
|
|
|
${PORTUPGRADE} -f $$UPD; \
|
|
|
|
fi; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
|
|
|
else \
|
|
|
|
${ECHO_MSG} "Please install sysutils/portupgrade."; \
|
|
|
|
${FALSE}; \
|
|
|
|
fi
|
|
|
|
|
2006-10-09 16:29:18 +02:00
|
|
|
.include <bsd.port.mk>
|