1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-28 01:06:17 +00:00

- Enable stagedir support

This commit is contained in:
Marcus von Appen 2014-01-25 08:46:11 +00:00
parent 8fbbe23332
commit 8fd329e5db
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340996
3 changed files with 38 additions and 22 deletions

View File

@ -25,7 +25,6 @@ PLIST_FILES= bin/2to3 \
bin/python-shared \
bin/python-shared-config
NO_STAGE= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_MAJOR_VER} == 2
@ -37,21 +36,28 @@ RUN_DEPENDS+= python3:${PORTSDIR}/lang/python3
do-install:
.for file in python python-shared
${LN} -sf ${PREFIX}/bin/${file}${PYTHON_MAJOR_VER} ${PREFIX}/bin/${file}
${LN} -sf ${PREFIX}/bin/${file}${PYTHON_MAJOR_VER} \
${STAGEDIR}${PREFIX}/bin/${file}
.endfor
${LN} -sf ${PREFIX}/bin/2to3-${PYTHON_MAJOR_VER} ${PREFIX}/bin/2to3
${LN} -sf ${PREFIX}/bin/2to3-${PYTHON_MAJOR_VER} \
${STAGEDIR}${PREFIX}/bin/2to3
.if ${PYTHON_MAJOR_VER} == 2
${LN} -sf ${PREFIX}/bin/smtpd${PYTHON_MAJOR_VER}.py ${PREFIX}/bin/smtpd.py
${LN} -sf ${PREFIX}/bin/smtpd${PYTHON_MAJOR_VER}.py \
${STAGEDIR}${PREFIX}/bin/smtpd.py
.for file in idle pydoc
${LN} -sf ${PREFIX}/bin/${file}${PYTHON_MAJOR_VER} ${PREFIX}/bin/${file}
${LN} -sf ${PREFIX}/bin/${file}${PYTHON_MAJOR_VER} \
${STAGEDIR}${PREFIX}/bin/${file}
.endfor
.elif ${PYTHON_MAJOR_VER} == 3
.for file in idle pydoc
${LN} -sf ${PREFIX}/bin/${file}${PYTHON_MAJOR_VER}-${PYTHON_VER} ${PREFIX}/bin/${file}
${LN} -sf ${PREFIX}/bin/${file}${PYTHON_MAJOR_VER}-${PYTHON_VER} \
${STAGEDIR}${PREFIX}/bin/${file}
.endfor
.endif
${LN} -sf ${PREFIX}/bin/python${PYTHON_MAJOR_VER}-config ${PREFIX}/bin/python-config
${LN} -sf ${PREFIX}/bin/python-shared${PYTHON_MAJOR_VER}-config ${PREFIX}/bin/python-shared-config
${LN} -sf ${PREFIX}/bin/python${PYTHON_MAJOR_VER}-config \
${STAGEDIR}${PREFIX}/bin/python-config
${LN} -sf ${PREFIX}/bin/python-shared${PYTHON_MAJOR_VER}-config \
${STAGEDIR}${PREFIX}/bin/python-shared-config
# Major upgrade support
PORTUPGRADE_CMD= ${LOCALBASE}/sbin/portupgrade

View File

@ -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

View File

@ -25,22 +25,27 @@ PLIST_FILES= bin/2to3-${PYTHON_MAJOR_VER} \
bin/python-shared${PYTHON_MAJOR_VER}-config \
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 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/2to3-${PYTHON_VER} \
${STAGEDIR}${PREFIX}/bin/2to3-${PYTHON_MAJOR_VER}
.for file in idle pydoc
${LN} -sf ${PREFIX}/bin/${file}${PYTHON_MAJOR_VER}-${PYTHON_VER} ${PREFIX}/bin/${file}${PYTHON_MAJOR_VER}
${LN} -sf ${PREFIX}/bin/${file}${PYTHON_MAJOR_VER}-${PYTHON_VER} \
${STAGEDIR}${PREFIX}/bin/${file}${PYTHON_MAJOR_VER}
.endfor
${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/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