Lines 2-8
Link Here
|
2 |
|
2 |
|
3 |
PORTNAME= python |
3 |
PORTNAME= python |
4 |
PORTVERSION= ${PYTHON_PORTVERSION} |
4 |
PORTVERSION= ${PYTHON_PORTVERSION} |
5 |
PORTREVISION= 1 |
5 |
PORTREVISION= 2 |
6 |
CATEGORIES= lang python ipv6 |
6 |
CATEGORIES= lang python ipv6 |
7 |
MASTER_SITES= PYTHON/ftp/python/${PORTVERSION} |
7 |
MASTER_SITES= PYTHON/ftp/python/${PORTVERSION} |
8 |
PKGNAMESUFFIX= 27 |
8 |
PKGNAMESUFFIX= 27 |
Lines 14-25
Link Here
|
14 |
|
14 |
|
15 |
LICENSE= PSFL |
15 |
LICENSE= PSFL |
16 |
|
16 |
|
|
|
17 |
# lang/python* ports use CPPFLAGS over CFLAGS due to multiple complex |
18 |
# *FLAGS and include ordering bugs/issues in the Python build, that cause |
19 |
# modules such as elementtree and pyexpat to fail to build, among other |
20 |
# difficult to isolate issues. Do not add to or modify global variables |
21 |
# unless the implications and pitfalls are completely understood. |
22 |
# See: https://bugs.python.org/issue6299#msg210189 |
23 |
|
17 |
USES= cpe ncurses pathfix pkgconfig readline:port shebangfix ssl tar:xz |
24 |
USES= cpe ncurses pathfix pkgconfig readline:port shebangfix ssl tar:xz |
18 |
PATHFIX_MAKEFILEIN= Makefile.pre.in |
25 |
PATHFIX_MAKEFILEIN= Makefile.pre.in |
19 |
USE_LDCONFIG= yes |
26 |
USE_LDCONFIG= yes |
20 |
CFLAGS+= -I${OPENSSLINC} |
|
|
21 |
GNU_CONFIGURE= yes |
27 |
GNU_CONFIGURE= yes |
22 |
LIBS+= -L${OPENSSLLIB} |
28 |
|
|
|
29 |
CPPFLAGS+= -I${OPENSSLINC} |
30 |
LDFLAGS+= -L${OPENSSLLIB} |
31 |
|
23 |
python_CMD= ${PREFIX}/bin/python${PYTHON_PORTVERSION:R} |
32 |
python_CMD= ${PREFIX}/bin/python${PYTHON_PORTVERSION:R} |
24 |
SHEBANG_FILES= Lib/lib2to3/pgen2/*.py Lib/lib2to3/tests/*.py Lib/lib2to3/tests/data/*.py \ |
33 |
SHEBANG_FILES= Lib/lib2to3/pgen2/*.py Lib/lib2to3/tests/*.py Lib/lib2to3/tests/data/*.py \ |
25 |
Lib/idlelib/*.py Lib/encodings/*.py Lib/test/*.py Lib/UserString.py \ |
34 |
Lib/idlelib/*.py Lib/encodings/*.py Lib/test/*.py Lib/UserString.py \ |
Lines 60-68
Link Here
|
60 |
LIBFFI_CONFIGURE_ON= --with-system-ffi |
69 |
LIBFFI_CONFIGURE_ON= --with-system-ffi |
61 |
LIBFFI_LIB_DEPENDS= libffi.so:devel/libffi |
70 |
LIBFFI_LIB_DEPENDS= libffi.so:devel/libffi |
62 |
|
71 |
|
63 |
# Use CPPFLAGS over CFLAGS due to -I ordering, causing elementtree and pyexpat |
|
|
64 |
# to break in Python 2.7, or preprocessor complaints in Python >= 3.3 |
65 |
# Upstream Issue: https://bugs.python.org/issue6299 |
66 |
NLS_USES= gettext |
72 |
NLS_USES= gettext |
67 |
NLS_CPPFLAGS= -I${LOCALBASE}/include |
73 |
NLS_CPPFLAGS= -I${LOCALBASE}/include |
68 |
NLS_LIBS= -L${LOCALBASE}/lib -lintl |
74 |
NLS_LIBS= -L${LOCALBASE}/lib -lintl |