diff --git a/lang/python27/Makefile b/lang/python27/Makefile index c01e00776a11..c14331f5b2dd 100644 --- a/lang/python27/Makefile +++ b/lang/python27/Makefile @@ -21,7 +21,6 @@ CONFIGURE_ENV= SVNVERSION="echo freebsd" ac_cv_opt_olimit_ok=no MAKE_ENV= VPATH="${PYTHON_WRKSRC}" INSTALL_TARGET= altinstall -MAN1= ${PYTHON_VERSION}.1 USE_LDCONFIG= yes USE_PYTHON= yes @@ -62,7 +61,6 @@ OPTIONS_SINGLE_UCS= UCS2 UCS4 NLS_DESC= Enable Gettext support for the locale module -NO_STAGE= yes .include .if ${PORT_OPTIONS:MNLS} @@ -93,8 +91,8 @@ PLIST_SUB+= THREADS="" .if ${PORT_OPTIONS:MPTH} CONFIGURE_ARGS+= --with-pth --with-system-ffi CONFIGURE_ENV+= ac_cv_pthread=no -LIB_DEPENDS+= pth:${PORTSDIR}/devel/pth \ - ffi:${PORTSDIR}/devel/libffi +LIB_DEPENDS+= libpth.so:${PORTSDIR}/devel/pth \ + libffi.so:${PORTSDIR}/devel/libffi _PTH_CPPFLAGS= "-I${LOCALBASE}/include/pth" _PTH_LDFLAGS= "-L${LOCALBASE}/lib/pth" CPPFLAGS:= ${_PTH_CPPFLAGS} ${CPPFLAGS} @@ -234,10 +232,10 @@ pre-build: pre-su-install: .for platform in ${PLATFORMS} - ${MKDIR} ${PYTHONPREFIX_LIBDIR}/${platform} + ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_LIBDIR}/${platform} .for file in IN.py regen ${INSTALL_DATA} ${WRKSRC}/Lib/${platform}/${file} \ - ${PYTHONPREFIX_LIBDIR}/${platform}/ + ${STAGEDIR}${PYTHONPREFIX_LIBDIR}/${platform}/ .endfor .endfor @@ -254,39 +252,37 @@ pre-install: post-install: @# install config providers - ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION}-config ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION:S/thon/thon-shared/}-config ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION}-config \ + ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION:S/thon/thon-shared/}-config \ + ${STAGEDIR}${PREFIX}/bin @# shared version of executable and library ${INSTALL_PROGRAM} ${SHARED_WRKSRC}/lib${PYTHON_VERSION}.so.1 \ - ${PREFIX}/lib - cd ${PREFIX}/lib; ${LN} -sf lib${PYTHON_VERSION}.so.1 \ - lib${PYTHON_VERSION}.so - ${LN} -sf ${PREFIX}/lib/lib${PYTHON_VERSION}.so ${PYTHONPREFIX_LIBDIR}/config + ${STAGEDIR}${PREFIX}/lib + (cd ${STAGEDIR}${PREFIX}/lib; ${LN} -sf lib${PYTHON_VERSION}.so.1 \ + lib${PYTHON_VERSION}.so) + ${LN} -sf lib${PYTHON_VERSION}.so \ + ${STAGEDIR}${PYTHONPREFIX_LIBDIR}/config ${INSTALL_PROGRAM} \ ${SHARED_WRKSRC}/${PYTHON_VERSION:S/thon/thon-shared/} \ - ${PREFIX}/bin + ${STAGEDIR}${PREFIX}/bin @# additional files installing by ports .for script in ${BIN_SCRIPTS} - ${INSTALL_SCRIPT} \ - ${WRKDIR}/`${ECHO_CMD} ${script} | ${SED} -E ${BINLINKS_SUB_PYTHON_VER}` \ - ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/`${ECHO_CMD} ${script} | ${SED} -E ${BINLINKS_SUB_PYTHON_VER}` \ + ${STAGEDIR}${PREFIX}/bin .endfor - @${MKDIR} ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${PYTHON_WRKSRC}/Misc/python.man \ - ${MANPREFIX}/man/man1/${PYTHON_VERSION}.1 + ${STAGEDIR}${MAN1PREFIX}/man/man1/${PYTHON_VERSION}.1 .if !defined(NOPORTDATA) - @${MKDIR} ${DATADIR} - @cd ${PYTHON_WRKSRC}; ${TAR} -cf - Tools | \ - (cd ${DATADIR}; ${TAR} --no-same-owner -xf -) -.endif -.if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} - @cd ${PYTHON_WRKSRC}/Demo; ${TAR} -cf - * | \ - (cd ${EXAMPLESDIR}; ${TAR} --no-same-owner -xf -) + @${MKDIR} ${STAGEDIR}${DATADIR} + @(cd ${PYTHON_WRKSRC}; ${TAR} -cf - Tools | (cd ${STAGEDIR}${DATADIR}; ${TAR} --no-same-owner -xf -)) .endif + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + @(cd ${PYTHON_WRKSRC}/Demo; ${TAR} -cf - * | \ + (cd ${STAGEDIR}${EXAMPLESDIR}; ${TAR} --no-same-owner -xf -)) @${CAT} ${PKGMESSAGE} diff --git a/lang/python27/pkg-plist b/lang/python27/pkg-plist index 0c538f3eb889..5617773250a7 100644 --- a/lang/python27/pkg-plist +++ b/lang/python27/pkg-plist @@ -1824,6 +1824,7 @@ lib/lib%%PYTHON_VERSION%%.so.1 %%PYTHON_LIBDIR%%/xmlrpclib.py %%PYTHON_LIBDIR%%/zipfile.py lib/libpython2.7.a +man/man1/python2.7.1.gz %%PORTEXAMPLES%%%%EXAMPLESDIR%%/README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/cgi/README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/cgi/cgi0.sh diff --git a/lang/python31/Makefile b/lang/python31/Makefile index 3fe646ca6261..82100dc47b91 100644 --- a/lang/python31/Makefile +++ b/lang/python31/Makefile @@ -26,7 +26,6 @@ CONFIGURE_ENV= OPT="" SVNVERSION="echo freebsd" ac_cv_opt_olimit_ok=no MAKE_ENV= VPATH="${PYTHON_WRKSRC}" INSTALL_TARGET= altinstall -MAN1= ${PYTHON_VERSION}.1 USE_LDCONFIG= yes USE_PYTHON= yes @@ -62,7 +61,6 @@ OPTIONS_DEFAULT= THREADS UCS4 PYMALLOC IPV6 NLS_DESC= Enable Gettext support for the locale module -NO_STAGE= yes .include .if ${PORT_OPTIONS:MNLS} @@ -179,10 +177,10 @@ pre-build: pre-su-install: .for platform in ${PLATFORMS} - ${MKDIR} ${PYTHONPREFIX_LIBDIR}/${platform} + ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_LIBDIR}/${platform} .for file in IN.py regen ${INSTALL_DATA} ${WRKSRC}/Lib/${platform}/${file} \ - ${PYTHONPREFIX_LIBDIR}/${platform}/ + ${STAGEDIR}${PYTHONPREFIX_LIBDIR}/${platform}/ .endfor .endfor @@ -199,39 +197,38 @@ pre-install: post-install: @# install config providers - ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION}-config ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION:S/thon/thon-shared/}-config ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION}-config \ + ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION:S/thon/thon-shared/}-config \ + ${STAGEDIR}${PREFIX}/bin @# shared version of executable and library ${INSTALL_PROGRAM} ${SHARED_WRKSRC}/lib${PYTHON_VERSION}.so.1 \ - ${PREFIX}/lib - cd ${PREFIX}/lib; ${LN} -sf lib${PYTHON_VERSION}.so.1 \ - lib${PYTHON_VERSION}.so - ${LN} -sf ${PREFIX}/lib/lib${PYTHON_VERSION}.so ${PYTHONPREFIX_LIBDIR}/config + ${STAGEDIR}${PREFIX}/lib + (cd ${STAGEDIR}${PREFIX}/lib; ${LN} -sf lib${PYTHON_VERSION}.so.1 \ + lib${PYTHON_VERSION}.so) + ${LN} -sf lib${PYTHON_VERSION}.so ${STAGEDIR}${PYTHONPREFIX_LIBDIR}/config ${INSTALL_PROGRAM} \ ${SHARED_WRKSRC}/${PYTHON_VERSION:S/thon/thon-shared/} \ - ${PREFIX}/bin + ${STAGEDIR}${PREFIX}/bin @# additional files installing by ports .for script in ${BIN_SCRIPTS} ${INSTALL_SCRIPT} \ ${WRKDIR}/`${ECHO_CMD} ${script} | ${SED} -E ${BINLINKS_SUB}` \ - ${PREFIX}/bin + ${STAGEDIR}${PREFIX}/bin .endfor - @${MKDIR} ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${PYTHON_WRKSRC}/Misc/python.man \ - ${MANPREFIX}/man/man1/${PYTHON_VERSION}.1 + ${STAGEDIR}${MAN1PREFIX}/man/man1/${PYTHON_VERSION}.1 .if !defined(NOPORTDATA) - @${MKDIR} ${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR} @cd ${PYTHON_WRKSRC}; ${TAR} -cf - Tools | \ - (cd ${DATADIR}; ${TAR} -xf -) + (cd ${STAGEDIR}${DATADIR}; ${TAR} -xf -) .endif -.if ${PORT_OPTIONS:MEXAMPLES} - @${MKDIR} ${EXAMPLESDIR} + @${MKDIR} ${STAGEDIR}${EXAMPLESDIR} @cd ${PYTHON_WRKSRC}/Demo; ${TAR} -cf - * | \ - (cd ${EXAMPLESDIR}; ${TAR} -xf -) -.endif + (cd ${STAGEDIR}${EXAMPLESDIR}; ${TAR} -xf -) @${CAT} ${PKGMESSAGE} diff --git a/lang/python31/pkg-plist b/lang/python31/pkg-plist index 8f268a9218f6..7ca5ffc0ca18 100644 --- a/lang/python31/pkg-plist +++ b/lang/python31/pkg-plist @@ -9,6 +9,7 @@ lib/lib%%PYTHON_VERSION%%.a lib/lib%%PYTHON_VERSION%%.so lib/lib%%PYTHON_VERSION%%.so.1 libdata/pkgconfig/python-3.1.pc +man/man1/python3.1.1.gz %%PYTHON_INCLUDEDIR%%/Python-ast.h %%PYTHON_INCLUDEDIR%%/Python.h %%PYTHON_INCLUDEDIR%%/abstract.h diff --git a/lang/python32/Makefile b/lang/python32/Makefile index 6ef9cd9818bf..909a45082fea 100644 --- a/lang/python32/Makefile +++ b/lang/python32/Makefile @@ -20,7 +20,6 @@ CONFIGURE_ENV= OPT="" SVNVERSION="echo freebsd" MAKE_ENV= VPATH="${PYTHON_WRKSRC}" INSTALL_TARGET= altinstall -MAN1= ${PYTHON_VERSION}.1 USE_LDCONFIG= yes USE_PYTHON= yes @@ -57,7 +56,6 @@ OPTIONS_DEFAULT= THREADS UCS4 PYMALLOC IPV6 NLS_DESC= Enable Gettext support for the locale module -NO_STAGE= yes .include .if ${PORT_OPTIONS:MNLS} @@ -181,42 +179,44 @@ pre-build: pre-su-install: .for platform in ${PLATFORMS} - ${MKDIR} ${PYTHONPREFIX_LIBDIR}/${platform} + ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_LIBDIR}/${platform} .for file in IN.py regen ${INSTALL_DATA} ${WRKSRC}/Lib/${platform}/${file} \ - ${PYTHONPREFIX_LIBDIR}/${platform}/ + ${STAGEDIR}${PYTHONPREFIX_LIBDIR}/${platform}/ .endfor .endfor post-install: @# install config providers - ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION}-config ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION:S/thon/thon-shared/}-config ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION}-config \ + ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION:S/thon/thon-shared/}-config \ + ${STAGEDIR}${PREFIX}/bin @# shared version of executable and library ${INSTALL_PROGRAM} ${SHARED_WRKSRC}/lib${PYTHON_VERSION}${PYABIVER}.so.1 \ - ${PREFIX}/lib - cd ${PREFIX}/lib; ${LN} -sf lib${PYTHON_VERSION}${PYABIVER}.so.1 \ - lib${PYTHON_VERSION}${PYABIVER}.so - ${LN} -sf ${PREFIX}/lib/lib${PYTHON_VERSION}${PYABIVER}.so ${PYTHONPREFIX_LIBDIR}/config + ${STAGEDIR}${PREFIX}/lib + (cd ${STAGEDIR}${PREFIX}/lib; ${LN} -sf lib${PYTHON_VERSION}${PYABIVER}.so.1 \ + lib${PYTHON_VERSION}${PYABIVER}.so) + ${LN} -sf lib${PYTHON_VERSION}${PYABIVER}.so \ + ${STAGEDIR}${PYTHONPREFIX_LIBDIR}/config ${INSTALL_PROGRAM} \ ${SHARED_WRKSRC}/${PYTHON_VERSION:S/thon/thon-shared/} \ - ${PREFIX}/bin + ${STAGEDIR}${PREFIX}/bin @# additional files installing by ports .for script in ${BIN_SCRIPTS} ${INSTALL_SCRIPT} \ ${WRKDIR}/`${ECHO_CMD} ${script} | ${SED} -E ${BINLINKS_SUB}` \ - ${PREFIX}/bin + ${STAGEDIR}${PREFIX}/bin .endfor - @${MKDIR} ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${PYTHON_WRKSRC}/Misc/python.man \ - ${MANPREFIX}/man/man1/${PYTHON_VERSION}.1 + ${STAGEDIR}${MAN1PREFIX}/man/man1/${PYTHON_VERSION}.1 .if !defined(NOPORTDATA) - @${MKDIR} ${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR} @cd ${PYTHON_WRKSRC}; ${TAR} -cf - Tools | \ - (cd ${DATADIR}; ${TAR} -xf -) + (cd ${STAGEDIR}${DATADIR}; ${TAR} -xf -) .endif @${CAT} ${PKGMESSAGE} diff --git a/lang/python32/pkg-plist b/lang/python32/pkg-plist index 1df4a8e2212b..85949e51a2ce 100644 --- a/lang/python32/pkg-plist +++ b/lang/python32/pkg-plist @@ -11,6 +11,7 @@ lib/lib%%PYTHON_VERSION%%%%PYABIVER%%.a lib/lib%%PYTHON_VERSION%%%%PYABIVER%%.so lib/lib%%PYTHON_VERSION%%%%PYABIVER%%.so.1 libdata/pkgconfig/python-3.2.pc +man/man1/python3.2.1.gz %%PYTHON_INCLUDEDIR%%%%PYABIVER%%/accu.h %%PYTHON_INCLUDEDIR%%%%PYABIVER%%/Python-ast.h %%PYTHON_INCLUDEDIR%%%%PYABIVER%%/Python.h diff --git a/lang/python33/Makefile b/lang/python33/Makefile index 0cc614a9dd28..ac6c5d75c2d9 100644 --- a/lang/python33/Makefile +++ b/lang/python33/Makefile @@ -20,7 +20,6 @@ CONFIGURE_ENV= OPT="" SVNVERSION="echo freebsd" MAKE_ENV= VPATH="${PYTHON_WRKSRC}" INSTALL_TARGET= altinstall -MAN1= ${PYTHON_VERSION}.1 USES= gmake USE_LDCONFIG= yes @@ -58,7 +57,6 @@ OPTIONS_DEFAULT= THREADS PYMALLOC IPV6 NLS_DESC= Enable Gettext support for the locale module -NO_STAGE= yes .include .if ${PORT_OPTIONS:MNLS} @@ -173,42 +171,44 @@ pre-build: pre-su-install: .for platform in ${PLATFORMS} - ${MKDIR} ${PYTHONPREFIX_LIBDIR}/${platform} + ${MKDIR} ${STAGEDIR}${PYTHONPREFIX_LIBDIR}/${platform} .for file in IN.py regen ${INSTALL_DATA} ${WRKSRC}/Lib/${platform}/${file} \ - ${PYTHONPREFIX_LIBDIR}/${platform}/ + ${STAGEDIR}${PYTHONPREFIX_LIBDIR}/${platform}/ .endfor .endfor post-install: @# install config providers - ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION}-config ${PREFIX}/bin - ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION:S/thon/thon-shared/}-config ${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION}-config \ + ${STAGEDIR}${PREFIX}/bin + ${INSTALL_SCRIPT} ${WRKDIR}/${PYTHON_VERSION:S/thon/thon-shared/}-config \ + ${STAGEDIR}${PREFIX}/bin @# shared version of executable and library ${INSTALL_PROGRAM} ${SHARED_WRKSRC}/lib${PYTHON_VERSION}${PYABIVER}.so.1 \ - ${PREFIX}/lib - cd ${PREFIX}/lib; ${LN} -sf lib${PYTHON_VERSION}${PYABIVER}.so.1 \ - lib${PYTHON_VERSION}${PYABIVER}.so - ${LN} -sf ${PREFIX}/lib/lib${PYTHON_VERSION}${PYABIVER}.so ${PYTHONPREFIX_LIBDIR}/config + ${STAGEDIR}${PREFIX}/lib + (cd ${STAGEDIR}${PREFIX}/lib; ${LN} -sf lib${PYTHON_VERSION}${PYABIVER}.so.1 \ + lib${PYTHON_VERSION}${PYABIVER}.so) + ${LN} -sf lib${PYTHON_VERSION}${PYABIVER}.so \ + ${STAGEDIR}${PYTHONPREFIX_LIBDIR}/config ${INSTALL_PROGRAM} \ ${SHARED_WRKSRC}/${PYTHON_VERSION:S/thon/thon-shared/} \ - ${PREFIX}/bin + ${STAGEDIR}${PREFIX}/bin @# additional files installing by ports .for script in ${BIN_SCRIPTS} ${INSTALL_SCRIPT} \ ${WRKDIR}/`${ECHO_CMD} ${script} | ${SED} -E ${BINLINKS_SUB}` \ - ${PREFIX}/bin + ${STAGEDIR}${PREFIX}/bin .endfor - @${MKDIR} ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${PYTHON_WRKSRC}/Misc/python.man \ - ${MANPREFIX}/man/man1/${PYTHON_VERSION}.1 + ${STAGEDIR}${MAN1PREFIX}/man/man1/${PYTHON_VERSION}.1 .if !defined(NOPORTDATA) - @${MKDIR} ${DATADIR} + @${MKDIR} ${STAGEDIR}${DATADIR} @cd ${PYTHON_WRKSRC}; ${TAR} -cf - Tools | \ - (cd ${DATADIR}; ${TAR} -xf -) + (cd ${STAGEDIR}${DATADIR}; ${TAR} -xf -) .endif @${CAT} ${PKGMESSAGE} diff --git a/lang/python33/pkg-plist b/lang/python33/pkg-plist index 0330b8b991cd..6884ae571f9c 100644 --- a/lang/python33/pkg-plist +++ b/lang/python33/pkg-plist @@ -11,6 +11,7 @@ lib/lib%%PYTHON_VERSION%%%%PYABIVER%%.a lib/lib%%PYTHON_VERSION%%%%PYABIVER%%.so lib/lib%%PYTHON_VERSION%%%%PYABIVER%%.so.1 libdata/pkgconfig/python-%%PYVER%%.pc +man/man1/python3.3.1.gz %%PYTHON_INCLUDEDIR%%%%PYABIVER%%/accu.h %%PYTHON_INCLUDEDIR%%%%PYABIVER%%/Python-ast.h %%PYTHON_INCLUDEDIR%%%%PYABIVER%%/Python.h