Changeset View
Changeset View
Standalone View
Standalone View
lang/python33/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= python33 | PORTNAME= python33 | ||||
PORTVERSION= 3.3.5 | PORTVERSION= 3.3.6 | ||||
PORTREVISION= 8 | |||||
CATEGORIES= lang python ipv6 | CATEGORIES= lang python ipv6 | ||||
MASTER_SITES= PYTHON/ftp/python/${PORTVERSION} | MASTER_SITES= PYTHON/ftp/python/${PORTVERSION} | ||||
DISTNAME= Python-${PORTVERSION} | DISTNAME= Python-${PORTVERSION} | ||||
DIST_SUBDIR= python | DIST_SUBDIR= python | ||||
MAINTAINER= python@FreeBSD.org | MAINTAINER= python@FreeBSD.org | ||||
COMMENT= Interpreted object-oriented programming language | COMMENT= Interpreted object-oriented programming language | ||||
LICENSE= PSFL | LICENSE= PSFL | ||||
DEPRECATED= Security updates will be released until Sept 2017 | |||||
koobs: No longer receives bug fixes, only security updates. Please update to Python 3.5 | |||||
EXPIRATION_DATE= 2017-09-01 | |||||
USES= cpe ncurses pkgconfig readline tar:xz | USES= cpe ncurses pkgconfig readline tar:xz | ||||
USE_OPENSSL= yes | USE_OPENSSL= yes | ||||
USE_LDCONFIG= yes | USE_LDCONFIG= yes | ||||
GNU_CONFIGURE= yes | GNU_CONFIGURE= yes | ||||
CPE_VENDOR= python | CPE_VENDOR= python | ||||
CPE_PRODUCT= ${CPE_VENDOR} | CPE_PRODUCT= ${CPE_VENDOR} | ||||
CPE_VERSION= ${PORTVERSION} | CPE_VERSION= ${PORTVERSION} | ||||
CONFIGURE_ARGS+= --enable-shared | CONFIGURE_ARGS+= --enable-shared | ||||
CONFIGURE_ENV+= OPT="" # Null out OPT to respect user CFLAGS and remove optimizations | CONFIGURE_ENV+= OPT="" # Null out OPT to respect user CFLAGS and remove optimizations | ||||
INSTALL_TARGET= altinstall # Don't want cloberring of unprefixed files | INSTALL_TARGET= altinstall # Don't want cloberring of unprefixed files | ||||
MAKE_ARGS+= INSTALL_SHARED="${INSTALL_LIB}" # Strip shared library | MAKE_ARGS+= INSTALL_SHARED="${INSTALL_LIB}" # Strip shared library | ||||
MAKE_ARGS+= LIBPC="${PREFIX}/libdata/pkgconfig" # Until pathfix gets support for files other than Makefile.in | MAKE_ARGS+= LIBPC="${PREFIX}/libdata/pkgconfig" # Until pathfix gets support for files other than Makefile.in | ||||
MAKE_JOBS_UNSAFE= yes # Parser/pgen build bug. See Issue: 200622, 201974 | MAKE_JOBS_UNSAFE= yes # Parser/pgen build bug. See Issue: 200622, 201974 | ||||
TEST_TARGET= buildbottest | |||||
TEST_ARGS= TESTOPTS=-j${MAKE_JOBS_NUMBER} | |||||
SUB_FILES= pkg-message | SUB_FILES= pkg-message | ||||
SUB_LIST= PYTHON_SUFFIX=${PORTVERSION:R:S/.//g} | SUB_LIST= PYTHON_SUFFIX=${PORTVERSION:R:S/.//g} | ||||
PLIST_SUB= ABI=${ABIFLAGS} \ | PLIST_SUB= ABI=${ABIFLAGS} \ | ||||
OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/} # For plat-freebsd* in pkg-plist. http://bugs.python.org/issue19554 | OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/} # For plat-freebsd* in pkg-plist. http://bugs.python.org/issue19554 | ||||
OPTIONS_DEFINE= DEBUG IPV6 LIBFFI NLS PYMALLOC THREADS TSC | OPTIONS_DEFINE= DEBUG IPV6 LIBFFI NLS PYMALLOC THREADS TSC | ||||
OPTIONS_DEFAULT= IPV6 LIBFFI NLS PYMALLOC THREADS | OPTIONS_DEFAULT= IPV6 LIBFFI NLS PYMALLOC THREADS | ||||
▲ Show 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | |||||
.endif | .endif | ||||
post-install: | post-install: | ||||
.if ! ${PORT_OPTIONS:MDEBUG} | .if ! ${PORT_OPTIONS:MDEBUG} | ||||
${RM} -f ${STAGEDIR}${PREFIX}/lib/libpython3.so # Upstream Issue: http://bugs.python.org/issue17975 | ${RM} -f ${STAGEDIR}${PREFIX}/lib/libpython3.so # Upstream Issue: http://bugs.python.org/issue17975 | ||||
.endif | .endif | ||||
for i in ${STAGEDIR}${PREFIX}/lib/python3.3/lib-dynload/*.so; do \ | for i in ${STAGEDIR}${PREFIX}/lib/python3.3/lib-dynload/*.so; do \ | ||||
${STRIP_CMD} $$i; done # Strip shared extensions | ${STRIP_CMD} $$i; done # Strip shared extensions | ||||
regression-test: build | |||||
@cd ${WRKSRC} && ${MAKE} TESTOPTS=-j${MAKE_JOBS_NUMBER} buildbottest | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> | ||||
Done Inline ActionsRemove build, its no longer needed in this case. miwi: Remove build, its no longer needed in this case. | |||||
Not Done Inline ActionsDone! brnrd: Done! | |||||
Done Inline ActionsThis can be converted to new test framework. Remove the target, and add TEST_TARGET=buildbottest Note that jobs don't work here anyway, because MAKE_JOBS_UNSAFE sets MAKE_JOBS_NUMBER to 1. I don't know an easy way to fix it without duplicating bsd.port.mk logic, so let's just drop jobs here. AMDmi3: This can be converted to new test framework. Remove the target, and add… | |||||
Done Inline ActionsId prefer to keep the MAKE_JOBS_NUMBER here, regardless of its value. Explicit > Implicit and when this port gets fixed for concurrent make jobs, it will just work without requiring changes koobs: Id prefer to keep the MAKE_JOBS_NUMBER here, regardless of its value. Explicit > Implicit and… | |||||
Done Inline ActionsOh, right. Then it should go to TEST_ARGS: TEST_ARGS= TESTOPTS=-j${MAKE_JOBS_NUMBER} AMDmi3: Oh, right. Then it should go to TEST_ARGS:
TEST_ARGS= TESTOPTS=-j${MAKE_JOBS_NUMBER} | |||||
Not Done Inline ActionsAdjusted as suggested to brnrd: Adjusted as suggested to
TEST_TARGET= buildbottest
TEST_ARGS= TESTOPTS=-j${MAKE_JOBS_NUMBER} |
No longer receives bug fixes, only security updates. Please update to Python 3.5