lang/python31: Fix CFLAGS in python-config where cc = clang

- Temporarily override OPT:Olimit using CONFIGURE_ENV (ports/182952) [1]
- QA: Clean up and group related USE_*, WRKSRC and CONFIGURE entries
- QA: Whitespace alignment
- QA: Clarify DEPRECATED message

[1] Python removed OPT:Olimit in 3.2+, requested backport or
    alternative upstream patch: http://bugs.python.org/issue877121

PR:		ports/182952
Submitted by:	pawel
Reviewed by:	antoine
This commit is contained in:
Kubilay Kocak 2013-11-24 14:05:30 +00:00
parent c72565fa71
commit 30196d0e48
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=334728

View file

@ -2,7 +2,7 @@
PORTNAME= python31
PORTVERSION= 3.1.5
PORTREVISION= 4
PORTREVISION= 5
CATEGORIES= lang python ipv6
MASTER_SITES= PYTHON
MASTER_SITE_SUBDIR= ${PYTHON_MASTER_SITE_SUBDIR}
@ -11,26 +11,28 @@ DISTFILES= ${PYTHON_DISTFILE}
MAINTAINER= python@FreeBSD.org
COMMENT= Interpreted object-oriented programming language
DEPRECATED= This port will reach it's EoL upstream soon, please migrate to lang/python33
DEPRECATED= Python 3.1 will be end-of-life soon, please migrate to lang/python33
EXPIRATION_DATE=2014-06-01
DIST_SUBDIR= python
WRKSRC= ${PYTHON_WRKSRC}/portbld.static
PATCH_WRKSRC= ${PYTHON_WRKSRC}
GNU_CONFIGURE= yes
CONFIGURE_SCRIPT= ../configure # must be relative
CONFIGURE_ENV= OPT="" SVNVERSION="echo freebsd"
CONFIGURE_ENV= OPT="" SVNVERSION="echo freebsd" ac_cv_opt_olimit_ok=no
MAKE_ENV= VPATH="${PYTHON_WRKSRC}"
USE_LDCONFIG= yes
INSTALL_TARGET= altinstall
MAN1= ${PYTHON_VERSION}.1
USE_LDCONFIG= yes
USE_PYTHON= yes
USE_XZ= yes
PYTHON_VERSION= python3.1
PYTHON_NO_DEPENDS= yes
WRKSRC= ${PYTHON_WRKSRC}/portbld.static
SHARED_WRKSRC= ${PYTHON_WRKSRC}/portbld.shared
PATCH_WRKSRC= ${PYTHON_WRKSRC}
PLIST= ${WRKDIR}/PLIST
PLIST_TEMPLATE?=${PKGDIR}/pkg-plist
PLIST_SUB= PYVER=${PYTHON_VERSION:S/python//} \