aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python31/Makefile
diff options
context:
space:
mode:
authorlwhsu <lwhsu@FreeBSD.org>2009-07-14 17:29:03 +0800
committerlwhsu <lwhsu@FreeBSD.org>2009-07-14 17:29:03 +0800
commitb2d633c8b15e60793d42807c27c36ce8d5f6f350 (patch)
tree63a8e4e920158ba8bfcdef7ea4cedd5b38ec60c6 /lang/python31/Makefile
parent0f2dc71f6a774d010910fdee4612b9bcbe55cf11 (diff)
downloadfreebsd-ports-gnome-b2d633c8b15e60793d42807c27c36ce8d5f6f350.tar.gz
freebsd-ports-gnome-b2d633c8b15e60793d42807c27c36ce8d5f6f350.tar.zst
freebsd-ports-gnome-b2d633c8b15e60793d42807c27c36ce8d5f6f350.zip
- 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
Diffstat (limited to 'lang/python31/Makefile')
-rw-r--r--lang/python31/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/python31/Makefile b/lang/python31/Makefile
index 8c9cef4ecbfd..92fe74d1a1c0 100644
--- a/lang/python31/Makefile
+++ b/lang/python31/Makefile
@@ -6,7 +6,7 @@
PORTNAME= python31
PORTVERSION= 3.1
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= lang python ipv6
MASTER_SITES= ${PYTHON_MASTER_SITES}
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
@@ -57,7 +57,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
@@ -202,7 +202,7 @@ post-install:
${INSTALL_MAN} ${PYTHON_WRKSRC}/Misc/python.man \
${MANPREFIX}/man/man1/${PYTHON_VERSION}.1
-.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION}
+.if ${PYTHON_VERSION} == ${PYTHON_DEFAULT_VERSION} || !exists(${LOCALBASE}/bin/python)
for f in ${BIN_FILES}; do \
TARGET=`${ECHO_CMD} $$f | ${SED} -E ${BINLINKS_SUB}`; \
cd ${PREFIX}/bin && ${LN} -f $$TARGET $$f; \