Modernize port

- Use PORTVERSION
- Use BROKEN_SSL
- Fix indent
- Update WWW
This commit is contained in:
Sunpoet Po-Chuan Hsieh
2017-04-16 11:08:39 +00:00
parent be33cc43f0
commit 760faa0fd3
2 changed files with 6 additions and 11 deletions

View File

@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= python
DISTVERSION= ${PYTHON_PORTVERSION}
PORTVERSION= ${PYTHON_PORTVERSION}
PORTREVISION= 1
CATEGORIES= lang python ipv6
MASTER_SITES= PYTHON/ftp/python/${PYTHON_PORTVERSION}
@@ -15,6 +15,8 @@ COMMENT= Interpreted object-oriented programming language
LICENSE= PSFL
BROKEN_SSL= openssl-devel
USES= cpe ncurses pathfix pkgconfig readline ssl tar:xz shebangfix
PATHFIX_MAKEFILEIN= Makefile.pre.in
USE_LDCONFIG= yes
@@ -77,7 +79,6 @@ LIBFFI_LIB_DEPENDS= libffi.so:devel/libffi
# Use CPPFLAGS over CFLAGS due to -I ordering, causing elementtree and pyexpat
# to break in Python 2.7, or preprocessor complaints in Python >= 3.3
# Upstream Issue: http://bugs.python.org/issue6299
NLS_USES= gettext
NLS_CPPFLAGS= -I${LOCALBASE}/include
NLS_LIBS= -L${LOCALBASE}/lib -lintl
@@ -110,7 +111,7 @@ PLIST_FILES+= libdata/pkgconfig/python-%%XYDOT%%%%ABI%%.pc
# http://bugs.python.org/issue22521
# http://bugs.python.org/issue23042
.if ${ARCH} == i386 && !${PORT_OPTIONS:MLIBFFI}
BROKEN= You must use libffi from ports on i386. Enable the LIBFFI option
BROKEN= You must use libffi from ports on i386. Enable the LIBFFI option
.endif
.if ${ARCH} == sparc64
@@ -136,10 +137,4 @@ post-install:
for i in ${STAGEDIR}${PREFIX}/lib/python${PYTHON_VER}/lib-dynload/*.so; do \
${STRIP_CMD} $$i; done # Strip shared extensions
.include <bsd.port.pre.mk>
.if ${SSL_DEFAULT:Mopenssl-devel}
BROKEN= Does not build with openssl-devel
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>