1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

- Remove everything related to USE_PYTHON and bsd.python.mk. This is a

preparatory step to convert bsd.python.mk into a USES file.
- Use NLS_LIBS instead of NLS_LDFLAGS as done for lang/python27 (r357486)
- Use buildbottest in the regression-test: target

Phabric:		D409
Reviewed by:	koobs, sbz
With hat:		python@
This commit is contained in:
Marcus von Appen 2014-08-01 15:52:42 +00:00
parent be637c3a5e
commit 91097651ff
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=363714
2 changed files with 5030 additions and 5034 deletions

View File

@ -3,11 +3,11 @@
PORTNAME= python34
PORTVERSION= 3.4.1
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES= lang python ipv6
MASTER_SITES= PYTHON
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
DISTNAME= ${PYTHON_DISTNAME}
MASTER_SITE_SUBDIR= ftp/python/${PORTVERSION}
DISTNAME= Python-${PORTVERSION}
DIST_SUBDIR= python
MAINTAINER= python@FreeBSD.org
@ -15,18 +15,14 @@ COMMENT= Interpreted object-oriented programming language
LICENSE= PSFL
USES= ncurses pkgconfig readline tar:xz cpe
USES= cpe ncurses pkgconfig readline tar:xz
USE_LDCONFIG= yes
USE_PYTHON= yes
GNU_CONFIGURE= yes
CPE_VENDOR= python
CPE_PRODUCT= ${CPE_VENDOR}
CPE_VERSION= ${PORTVERSION}
PYTHON_VERSION= python3.4
PYTHON_NO_DEPENDS= yes
DISABLED_EXTENSIONS= _sqlite3 _tkinter _gdbm
CONFIGURE_ARGS+= --enable-shared --without-ensurepip
CONFIGURE_ENV+= OPT="" DISABLED_EXTENSIONS="${DISABLED_EXTENSIONS}" # Null out OPT to respect user CFLAGS and remove optimizations
@ -36,7 +32,7 @@ SHAREMODE= 644 # Match upstream INSTALL_DATA=644, so we can STRIP shared
MAKE_ARGS+= INSTALL_SHARED="${INSTALL_LIB}" # Override read-only for libraries, so we can STRIP them
MAKE_ARGS+= LIBPC="${PREFIX}/libdata/pkgconfig" # Until pathfix gets support for files other than Makefile.in
PLIST_SUB= VER=${PYTHON_VER} ABI=${ABIFLAGS} XY=${PYTHON_SUFFIX} \
PLIST_SUB= ABI=${ABIFLAGS} \
OSMAJOR=${OSVERSION:C/([0-9]*)[0-9]{5}/\1/} # For plat-freebsd* in pkg-plist. http://bugs.python.org/issue19554
OPTIONS_DEFINE= DEBUG IPV6 NLS PYMALLOC THREADS TSC
@ -62,7 +58,7 @@ IPV6_CONFIGURE_ENABLE= ipv6
# to break in Python 2.7, or preprocessor complaints in Python >= 3.3
# Upstream Issue: http://bugs.python.org/issue6299
NLS_USES= gettext
NLS_LDFLAGS= -L${LOCALBASE}/lib
NLS_LIBS= -L${LOCALBASE}/lib -lintl
NLS_CPPFLAGS= -I${LOCALBASE}/include
NLS_CONFIGURE_ENV_OFF= ac_cv_lib_intl_textdomain=no ac_cv_header_libintl_h=no
@ -84,9 +80,9 @@ ABIFLAGS:= d${ABIFLAGS}
.endif
.if !empty(ABIFLAGS)
PLIST_FILES+= bin/python%%VER%%%%ABI%%
PLIST_FILES+= bin/python%%VER%%%%ABI%%-config
PLIST_FILES+= libdata/pkgconfig/python-%%VER%%%%ABI%%.pc
PLIST_FILES+= bin/python3.4%%ABI%%
PLIST_FILES+= bin/python3.4%%ABI%%-config
PLIST_FILES+= libdata/pkgconfig/python-3.4%%ABI%%.pc
.endif
.if ${ARCH} == sparc64
@ -110,6 +106,6 @@ post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libpython3.4${ABIFLAGS}.so.1 # Strip shared library
regression-test: build
@cd ${WRKSRC} && ${MAKE} TESTOPTS=-j${MAKE_JOBS_NUMBER} test
@cd ${WRKSRC} && ${MAKE} TESTOPTS=-j${MAKE_JOBS_NUMBER} buildbottest
.include <bsd.port.mk>

File diff suppressed because it is too large Load Diff