aboutsummaryrefslogtreecommitdiffstats
path: root/lang/python2
diff options
context:
space:
mode:
authormva <mva@FreeBSD.org>2014-01-25 16:46:11 +0800
committermva <mva@FreeBSD.org>2014-01-25 16:46:11 +0800
commitbb5b3715b3f7bf1ce1a8cf386b170c3f4ceaa4c9 (patch)
tree4c5f7a333d8bb947f49033368a3b1ed14f58d0d9 /lang/python2
parente1dc6b9aefcc1525a59b86c4cae95b6592d26757 (diff)
downloadfreebsd-ports-gnome-bb5b3715b3f7bf1ce1a8cf386b170c3f4ceaa4c9.tar.gz
freebsd-ports-gnome-bb5b3715b3f7bf1ce1a8cf386b170c3f4ceaa4c9.tar.zst
freebsd-ports-gnome-bb5b3715b3f7bf1ce1a8cf386b170c3f4ceaa4c9.zip
- Enable stagedir support
Diffstat (limited to 'lang/python2')
-rw-r--r--lang/python2/Makefile19
1 files changed, 12 insertions, 7 deletions
diff --git a/lang/python2/Makefile b/lang/python2/Makefile
index dd4bb168e209..29b4c0e6306f 100644
--- a/lang/python2/Makefile
+++ b/lang/python2/Makefile
@@ -26,20 +26,25 @@ PLIST_FILES= bin/2to3-${PYTHON_MAJOR_VER} \
bin/smtpd${PYTHON_MAJOR_VER}.py \
libdata/pkgconfig/python${PYTHON_MAJOR_VER}.pc
-NO_STAGE= yes
.include <bsd.port.pre.mk>
RUN_DEPENDS+= ${PYTHON_CMD}:${PYTHON_PORTSDIR}
do-install:
.for file in idle pydoc python python-shared
- ${LN} -sf ${PREFIX}/bin/${file}${PYTHON_VER} ${PREFIX}/bin/${file}${PYTHON_MAJOR_VER}
+ ${LN} -sf ${PREFIX}/bin/${file}${PYTHON_VER} \
+ ${STAGEDIR}${PREFIX}/bin/${file}${PYTHON_MAJOR_VER}
.endfor
- ${LN} -sf ${PREFIX}/bin/2to3-${PYTHON_VER} ${PREFIX}/bin/2to3-${PYTHON_MAJOR_VER}
- ${LN} -sf ${PREFIX}/bin/smtpd${PYTHON_VER}.py ${PREFIX}/bin/smtpd${PYTHON_MAJOR_VER}.py
- ${LN} -sf ${PREFIX}/bin/python${PYTHON_VER}-config ${PREFIX}/bin/python${PYTHON_MAJOR_VER}-config
- ${LN} -sf ${PREFIX}/bin/python-shared${PYTHON_VER}-config ${PREFIX}/bin/python-shared${PYTHON_MAJOR_VER}-config
- ${LN} -sf ${PREFIX}/libdata/pkgconfig/python-${PYTHON_VER}.pc ${PREFIX}/libdata/pkgconfig/python${PYTHON_MAJOR_VER}.pc
+ ${LN} -sf ${PREFIX}/bin/2to3-${PYTHON_VER} \
+ ${STAGEDIR}${PREFIX}/bin/2to3-${PYTHON_MAJOR_VER}
+ ${LN} -sf ${PREFIX}/bin/smtpd${PYTHON_VER}.py \
+ ${STAGEDIR}${PREFIX}/bin/smtpd${PYTHON_MAJOR_VER}.py
+ ${LN} -sf ${PREFIX}/bin/python${PYTHON_VER}-config \
+ ${STAGEDIR}${PREFIX}/bin/python${PYTHON_MAJOR_VER}-config
+ ${LN} -sf ${PREFIX}/bin/python-shared${PYTHON_VER}-config \
+ ${STAGEDIR}${PREFIX}/bin/python-shared${PYTHON_MAJOR_VER}-config
+ ${LN} -sf ${PREFIX}/libdata/pkgconfig/python-${PYTHON_VER}.pc \
+ ${STAGEDIR}${PREFIX}/libdata/pkgconfig/python${PYTHON_MAJOR_VER}.pc
# Major upgrade support
PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portupgrade