- Ask the first Python installed to install the bin/python link,

and be the default Python version

PR:		ports/109550
Submitted by:	David Yeske <dyeske AT yahoo.com>
Obtained from:	tmclaugh
This commit is contained in:
Li-Wen Hsu
2009-07-14 09:29:03 +00:00
parent 1be0ee9179
commit 2b97db48a6
8 changed files with 24 additions and 21 deletions

View File

@@ -7,7 +7,7 @@
PORTNAME= python24
PORTVERSION= 2.4.5
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= lang python ipv6
MASTER_SITES= ${PYTHON_MASTER_SITES}
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
@@ -51,7 +51,7 @@ OPTIONS= THREADS "Enable thread support" on \
.include <bsd.port.pre.mk>
.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION}
.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION} || !exists(${LOCALBASE}/bin/python)
MLINKS= ${PYTHON_VERSION}.1 python.1
PLIST_SUB+= IF_DEFAULT=""
.else
@@ -192,7 +192,7 @@ post-install:
${INSTALL_SCRIPT} ${WRKDIR}/pydoc2.4 ${WRKDIR}/idle2.4 \
${WRKDIR}/smtpd2.4.py ${PREFIX}/bin
.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION}
.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION} || !exists(${LOCALBASE}/bin/python)
for f in ${BIN_SCRIPTS}; do \
TARGET=`${ECHO_CMD} $$f | ${SED} -E ${BINLINKS_SUB}`; \
cd ${PREFIX}/bin && ${LN} -f $$TARGET $$f; \