[150872] trunk/dports/lang/python31
ionic at macports.org
ionic at macports.org
Sun Jul 31 23:43:51 PDT 2016
Revision: 150872
https://trac.macports.org/changeset/150872
Author: ionic at macports.org
Date: 2016-07-31 23:43:50 -0700 (Sun, 31 Jul 2016)
Log Message:
-----------
python31: refresh patches, rename a few with "wrong" names.
Modified Paths:
--------------
trunk/dports/lang/python31/Portfile
trunk/dports/lang/python31/files/patch-Lib-distutils-dist.py.diff
trunk/dports/lang/python31/files/patch-libedit.diff
trunk/dports/lang/python31/files/patch-setup.py.diff
Added Paths:
-----------
trunk/dports/lang/python31/files/patch-Lib-distutils-util.py_Mac-BuildScript-build-installer.py-yosemite_python_fixes.diff
trunk/dports/lang/python31/files/patch-Lib-site.py-omit_local_site_packages.diff
trunk/dports/lang/python31/files/patch-configure_configure.ac-yosemite_configure_fixes.diff
Removed Paths:
-------------
trunk/dports/lang/python31/files/omit-local-site-packages.patch
trunk/dports/lang/python31/files/yosemite-configure-fixes.patch
trunk/dports/lang/python31/files/yosemite-python-fixes.patch
Modified: trunk/dports/lang/python31/Portfile
===================================================================
--- trunk/dports/lang/python31/Portfile 2016-08-01 05:35:52 UTC (rev 150871)
+++ trunk/dports/lang/python31/Portfile 2016-08-01 06:43:50 UTC (rev 150872)
@@ -35,11 +35,11 @@
patch-Lib-distutils-dist.py.diff \
patch-setup.py-disabled_modules.diff \
patch-libedit.diff \
- omit-local-site-packages.patch
+ patch-Lib-site.py-omit_local_site_packages.diff
# http://bugs.python.org/issue21811
-patchfiles-append yosemite-configure-fixes.patch \
- yosemite-python-fixes.patch
+patchfiles-append patch-configure_configure.ac-yosemite_configure_fixes.diff \
+ patch-Lib-distutils-util.py_Mac-BuildScript-build-installer.py-yosemite_python_fixes.diff
depends_lib port:zlib path:lib/libssl.dylib:openssl \
port:sqlite3 port:ncurses \
Deleted: trunk/dports/lang/python31/files/omit-local-site-packages.patch
===================================================================
--- trunk/dports/lang/python31/files/omit-local-site-packages.patch 2016-08-01 05:35:52 UTC (rev 150871)
+++ trunk/dports/lang/python31/files/omit-local-site-packages.patch 2016-08-01 06:43:50 UTC (rev 150872)
@@ -1,23 +0,0 @@
-Index: Lib/site.py
-===================================================================
---- Lib/site.py.orig
-+++ Lib/site.py
-@@ -280,18 +280,6 @@ def addsitepackages(known_paths):
- sitedirs.append(prefix)
- sitedirs.append(os.path.join(prefix, "lib", "site-packages"))
-
-- if sys.platform == "darwin":
-- # for framework builds *only* we add the standard Apple
-- # locations.
-- if 'Python.framework' in prefix:
-- sitedirs.append(
-- os.path.expanduser(
-- os.path.join("~", "Library", "Python",
-- sys.version[:3], "site-packages")))
-- sitedirs.append(
-- os.path.join("/Library", "Python",
-- sys.version[:3], "site-packages"))
--
- for sitedir in sitedirs:
- if os.path.isdir(sitedir):
- addsitedir(sitedir, known_paths)
Modified: trunk/dports/lang/python31/files/patch-Lib-distutils-dist.py.diff
===================================================================
--- trunk/dports/lang/python31/files/patch-Lib-distutils-dist.py.diff 2016-08-01 05:35:52 UTC (rev 150871)
+++ trunk/dports/lang/python31/files/patch-Lib-distutils-dist.py.diff 2016-08-01 06:43:50 UTC (rev 150872)
@@ -1,6 +1,6 @@
---- Lib/distutils/dist.py.orig 2008-07-26 16:09:45.000000000 -0400
-+++ Lib/distutils/dist.py 2009-01-31 11:37:17.000000000 -0500
-@@ -54,6 +54,7 @@
+--- Lib/distutils/dist.py.old 2012-04-10 01:25:34.000000000 +0200
++++ Lib/distutils/dist.py 2016-08-01 05:35:16.000000000 +0200
+@@ -53,6 +53,7 @@
('quiet', 'q', "run quietly (turns verbosity off)"),
('dry-run', 'n', "don't actually do anything"),
('help', 'h', "show detailed help message"),
@@ -21,7 +21,7 @@
self.finalize_options()
def get_option_dict(self, command):
-@@ -315,6 +322,9 @@
+@@ -312,6 +319,9 @@
Distutils __inst__.py file lives), a file in the user's home
directory named .pydistutils.cfg on Unix and pydistutils.cfg
on Windows/Mac, and setup.cfg in the current directory.
@@ -31,7 +31,7 @@
"""
files = []
check_environ()
-@@ -335,7 +345,7 @@
+@@ -332,7 +342,7 @@
# And look for the user config file
user_file = os.path.join(os.path.expanduser('~'), user_filename)
@@ -40,7 +40,7 @@
files.append(user_file)
# All platforms support local setup.cfg
-@@ -343,6 +353,8 @@
+@@ -340,6 +350,8 @@
if os.path.isfile(local_file):
files.append(local_file)
Copied: trunk/dports/lang/python31/files/patch-Lib-distutils-util.py_Mac-BuildScript-build-installer.py-yosemite_python_fixes.diff (from rev 150871, trunk/dports/lang/python31/files/yosemite-python-fixes.patch)
===================================================================
--- trunk/dports/lang/python31/files/patch-Lib-distutils-util.py_Mac-BuildScript-build-installer.py-yosemite_python_fixes.diff (rev 0)
+++ trunk/dports/lang/python31/files/patch-Lib-distutils-util.py_Mac-BuildScript-build-installer.py-yosemite_python_fixes.diff 2016-08-01 06:43:50 UTC (rev 150872)
@@ -0,0 +1,76 @@
+Index: Lib/distutils/util.py
+===================================================================
+--- Lib/distutils/util.py.orig
++++ Lib/distutils/util.py
+@@ -133,7 +133,16 @@ def get_platform ():
+ release = macver
+ osname = "macosx"
+
+- if (macrelease + '.') >= '10.4.' and \
++ if macrelease:
++ try:
++ macrelease = tuple(int(i) for i in macrelease.split('.')[0:2])
++ except ValueError:
++ macrelease = (10, 0)
++ else:
++ # assume no universal support
++ macrelease = (10, 0)
++
++ if (macrelease >= (10, 4)) and \
+ '-arch' in get_config_vars().get('CFLAGS', '').strip():
+ # The universal build will build fat binaries, but not on
+ # systems before 10.4
+Index: Mac/BuildScript/build-installer.py
+===================================================================
+--- Mac/BuildScript/build-installer.py.orig
++++ Mac/BuildScript/build-installer.py
+@@ -108,14 +108,19 @@ SRCDIR = os.path.dirname(
+ # $MACOSX_DEPLOYMENT_TARGET -> minimum OS X level
+ DEPTARGET = '10.3'
+
+-target_cc_map = {
++def getDeptargetTuple():
++ return tuple([int(n) for n in DEPTARGET.split('.')[0:2]])
++
++def getTargetCompiler():
++ target_cc_map = {
+ '10.3': 'gcc-4.0',
+ '10.4': 'gcc-4.0',
+ '10.5': 'gcc-4.0',
+ '10.6': 'gcc-4.2',
+-}
++ }
++ return target_cc_map.get(DEPTARGET, 'clang')
+
+-CC = target_cc_map[DEPTARGET]
++CC = getTargetCompiler()
+
+ PYTHON_3 = getVersionTuple() >= (3, 0)
+
+@@ -141,7 +146,7 @@ USAGE = textwrap.dedent("""\
+ def library_recipes():
+ result = []
+
+- if DEPTARGET < '10.5':
++ if getDeptargetTuple() < (10, 5):
+ result.extend([
+ dict(
+ name="Bzip2 1.0.5",
+@@ -318,7 +323,7 @@ def pkg_recipes():
+ ),
+ ]
+
+- if DEPTARGET < '10.4':
++ if getDeptargetTuple() < (10, 4):
+ result.append(
+ dict(
+ name="PythonSystemFixes",
+@@ -509,7 +514,7 @@ def parseOptions(args=None):
+ SDKPATH=os.path.abspath(SDKPATH)
+ DEPSRC=os.path.abspath(DEPSRC)
+
+- CC=target_cc_map[DEPTARGET]
++ CC=getTargetCompiler()
+
+ print "Settings:"
+ print " * Source directory:", SRCDIR
Copied: trunk/dports/lang/python31/files/patch-Lib-site.py-omit_local_site_packages.diff (from rev 150871, trunk/dports/lang/python31/files/omit-local-site-packages.patch)
===================================================================
--- trunk/dports/lang/python31/files/patch-Lib-site.py-omit_local_site_packages.diff (rev 0)
+++ trunk/dports/lang/python31/files/patch-Lib-site.py-omit_local_site_packages.diff 2016-08-01 06:43:50 UTC (rev 150872)
@@ -0,0 +1,23 @@
+Index: Lib/site.py
+===================================================================
+--- Lib/site.py.orig
++++ Lib/site.py
+@@ -280,18 +280,6 @@ def addsitepackages(known_paths):
+ sitedirs.append(prefix)
+ sitedirs.append(os.path.join(prefix, "lib", "site-packages"))
+
+- if sys.platform == "darwin":
+- # for framework builds *only* we add the standard Apple
+- # locations.
+- if 'Python.framework' in prefix:
+- sitedirs.append(
+- os.path.expanduser(
+- os.path.join("~", "Library", "Python",
+- sys.version[:3], "site-packages")))
+- sitedirs.append(
+- os.path.join("/Library", "Python",
+- sys.version[:3], "site-packages"))
+-
+ for sitedir in sitedirs:
+ if os.path.isdir(sitedir):
+ addsitedir(sitedir, known_paths)
Copied: trunk/dports/lang/python31/files/patch-configure_configure.ac-yosemite_configure_fixes.diff (from rev 150871, trunk/dports/lang/python31/files/yosemite-configure-fixes.patch)
===================================================================
--- trunk/dports/lang/python31/files/patch-configure_configure.ac-yosemite_configure_fixes.diff (rev 0)
+++ trunk/dports/lang/python31/files/patch-configure_configure.ac-yosemite_configure_fixes.diff 2016-08-01 06:43:50 UTC (rev 150872)
@@ -0,0 +1,118 @@
+Index: configure
+===================================================================
+--- configure.orig
++++ configure
+@@ -5522,8 +5522,16 @@ $as_echo "$CC" >&6; }
+
+ # Calculate the right deployment target for this build.
+ #
+- cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
+- if test ${cur_target} '>' 10.2; then
++ cur_target_major=`sw_vers -productVersion | \
++ sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
++ cur_target_minor=`sw_vers -productVersion | \
++ sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
++ cur_target="${cur_target_major}.${cur_target_minor}"
++ if test ${cur_target_major} -eq 10 && \
++ test ${cur_target_minor} -ge 3 && \
++ test ${cur_target_minor} -le 5
++ then
++ # OS X 10.3 through 10.5
+ cur_target=10.3
+ if test ${enable_universalsdk}; then
+ if test "${UNIVERSAL_ARCHS}" = "all"; then
+@@ -7585,14 +7593,14 @@ then
+ # Use -undefined dynamic_lookup whenever possible (10.3 and later).
+ # This allows an extension to be used in any Python
+
+- if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
++ dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
++ sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
++ dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
++ sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
++ if test ${dep_target_major} -eq 10 && \
++ test ${dep_target_minor} -le 2
+ then
+- if test "${enable_universalsdk}"; then
+- LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
+- fi
+- LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
+- BLDSHARED="$LDSHARED"
+- else
++ # building for OS X 10.0 through 10.2
+ LDSHARED='$(CC) $(LDFLAGS) -bundle'
+ if test "$enable_framework" ; then
+ # Link against the framework. All externals should be defined.
+@@ -7603,6 +7611,13 @@ then
+ BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
+ LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
+ fi
++ else
++ # building for OS X 10.3 and later
++ if test "${enable_universalsdk}"; then
++ LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
++ fi
++ LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
++ BLDSHARED="$LDSHARED"
+ fi
+ ;;
+ Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
+Index: configure.ac
+===================================================================
+--- configure.ac.orig
++++ configure.ac
+@@ -1010,8 +1010,16 @@ yes)
+
+ # Calculate the right deployment target for this build.
+ #
+- cur_target=`sw_vers -productVersion | sed 's/\(10\.[[0-9]]*\).*/\1/'`
+- if test ${cur_target} '>' 10.2; then
++ cur_target_major=`sw_vers -productVersion | \
++ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
++ cur_target_minor=`sw_vers -productVersion | \
++ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
++ cur_target="${cur_target_major}.${cur_target_minor}"
++ if test ${cur_target_major} -eq 10 && \
++ test ${cur_target_minor} -ge 3 && \
++ test ${cur_target_minor} -le 5
++ then
++ # OS X 10.3 through 10.5
+ cur_target=10.3
+ if test ${enable_universalsdk}; then
+ if test "${UNIVERSAL_ARCHS}" = "all"; then
+@@ -1792,14 +1800,14 @@ then
+ # Use -undefined dynamic_lookup whenever possible (10.3 and later).
+ # This allows an extension to be used in any Python
+
+- if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
++ dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
++ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
++ dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
++ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
++ if test ${dep_target_major} -eq 10 && \
++ test ${dep_target_minor} -le 2
+ then
+- if test "${enable_universalsdk}"; then
+- LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
+- fi
+- LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
+- BLDSHARED="$LDSHARED"
+- else
++ # building for OS X 10.0 through 10.2
+ LDSHARED='$(CC) $(LDFLAGS) -bundle'
+ if test "$enable_framework" ; then
+ # Link against the framework. All externals should be defined.
+@@ -1810,6 +1818,13 @@ then
+ BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
+ LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
+ fi
++ else
++ # building for OS X 10.3 and later
++ if test "${enable_universalsdk}"; then
++ LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
++ fi
++ LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
++ BLDSHARED="$LDSHARED"
+ fi
+ ;;
+ Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
Modified: trunk/dports/lang/python31/files/patch-libedit.diff
===================================================================
--- trunk/dports/lang/python31/files/patch-libedit.diff 2016-08-01 05:35:52 UTC (rev 150871)
+++ trunk/dports/lang/python31/files/patch-libedit.diff 2016-08-01 06:43:50 UTC (rev 150872)
@@ -1,6 +1,26 @@
---- configure.orig 2011-06-12 01:48:52.000000000 +1000
-+++ configure 2011-10-31 15:28:14.000000000 +1100
-@@ -12494,9 +12494,9 @@
+--- Modules/readline.c.old 2012-04-10 01:25:36.000000000 +0200
++++ Modules/readline.c 2016-08-01 05:36:43.000000000 +0200
+@@ -28,8 +28,7 @@
+
+ /* GNU readline definitions */
+ #undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
+-#include <readline/readline.h>
+-#include <readline/history.h>
++#include <editline/readline.h>
+
+ #ifdef HAVE_RL_COMPLETION_MATCHES
+ #define completion_matches(x, y) \
+@@ -919,7 +918,6 @@
+ PyEval_SaveThread();
+ #endif
+ if (s < 0) {
+- rl_free_line_state();
+ rl_cleanup_after_signal();
+ rl_callback_handler_remove();
+ *signal = 1;
+--- configure.old 2012-04-10 01:25:37.000000000 +0200
++++ configure 2016-08-01 05:36:43.000000000 +0200
+@@ -12493,9 +12493,9 @@
$as_echo_n "checking how to link readline libs... " >&6; }
for py_libtermcap in "" ncursesw ncurses curses termcap; do
if test -z "$py_libtermcap"; then
@@ -12,7 +32,7 @@
fi
LIBS="$READLINE_LIBS $LIBS_no_readline"
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-@@ -12540,13 +12540,13 @@
+@@ -12539,13 +12539,13 @@
fi
# check for readline 2.1
@@ -29,7 +49,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -12586,7 +12586,7 @@
+@@ -12585,7 +12585,7 @@
# check for readline 2.2
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -38,7 +58,7 @@
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
have_readline=yes
-@@ -12598,7 +12598,7 @@
+@@ -12597,7 +12597,7 @@
then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -47,7 +67,7 @@
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-@@ -12611,7 +12611,7 @@
+@@ -12610,7 +12610,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -56,7 +76,7 @@
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-@@ -12625,13 +12625,13 @@
+@@ -12624,13 +12624,13 @@
fi
# check for readline 4.0
@@ -73,7 +93,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -12669,13 +12669,13 @@
+@@ -12668,13 +12668,13 @@
# also in 4.0
@@ -90,7 +110,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -12713,13 +12713,13 @@
+@@ -12712,13 +12712,13 @@
# check for readline 4.2
@@ -107,7 +127,7 @@
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
-@@ -12759,7 +12759,7 @@
+@@ -12758,7 +12758,7 @@
# also in readline 4.2
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -116,7 +136,7 @@
_ACEOF
if ac_fn_c_try_cpp "$LINENO"; then :
have_readline=yes
-@@ -12771,7 +12771,7 @@
+@@ -12770,7 +12770,7 @@
then
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
@@ -125,8 +145,8 @@
_ACEOF
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
---- setup.py.orig 2011-10-31 15:26:25.000000000 +1100
-+++ setup.py 2011-10-31 15:29:39.000000000 +1100
+--- setup.py.old 2016-08-01 05:36:10.000000000 +0200
++++ setup.py 2016-08-01 05:36:43.000000000 +0200
@@ -570,7 +570,7 @@
exts.append( Extension('audioop', ['audioop.c']) )
@@ -145,23 +165,3 @@
if readline_termcap_library:
pass # Issue 7384: Already linked against curses or tinfo.
elif curses_library:
---- Modules/readline.c.orig 2011-06-12 01:48:52.000000000 +1000
-+++ Modules/readline.c 2011-10-31 15:34:23.000000000 +1100
-@@ -28,8 +28,7 @@
-
- /* GNU readline definitions */
- #undef HAVE_CONFIG_H /* Else readline/chardefs.h includes strings.h */
--#include <readline/readline.h>
--#include <readline/history.h>
-+#include <editline/readline.h>
-
- #ifdef HAVE_RL_COMPLETION_MATCHES
- #define completion_matches(x, y) \
-@@ -919,7 +918,6 @@ readline_until_enter_or_signal(char *pro
- PyEval_SaveThread();
- #endif
- if (s < 0) {
-- rl_free_line_state();
- rl_cleanup_after_signal();
- rl_callback_handler_remove();
- *signal = 1;
Modified: trunk/dports/lang/python31/files/patch-setup.py.diff
===================================================================
--- trunk/dports/lang/python31/files/patch-setup.py.diff 2016-08-01 05:35:52 UTC (rev 150871)
+++ trunk/dports/lang/python31/files/patch-setup.py.diff 2016-08-01 06:43:50 UTC (rev 150872)
@@ -1,6 +1,6 @@
---- setup.py.orig 2009-05-24 03:13:14.000000000 +1000
-+++ setup.py 2009-09-03 13:51:47.000000000 +1000
-@@ -1265,7 +1265,7 @@
+--- setup.py.old 2012-04-10 01:25:37.000000000 +0200
++++ setup.py 2016-08-01 05:32:33.000000000 +0200
+@@ -1420,7 +1420,7 @@
# For 8.4a2, the X11 headers are not included. Rather than include a
# complicated search, this is a hard-coded path. It could bail out
# if X11 libs are not found...
@@ -9,7 +9,7 @@
frameworks = ['-framework', 'Tcl', '-framework', 'Tk']
# All existing framework builds of Tcl/Tk don't support 64-bit
-@@ -1300,13 +1300,7 @@
+@@ -1466,13 +1466,7 @@
def detect_tkinter(self, inc_dirs, lib_dirs):
# The _tkinter module.
@@ -23,7 +23,7 @@
# Assume we haven't found any of the libraries or include files
# The versions with dots are used on Unix, and the versions without
-@@ -1354,17 +1348,17 @@
+@@ -1520,17 +1514,17 @@
if platform == 'sunos5':
include_dirs.append('/usr/openwin/include')
added_lib_dirs.append('/usr/openwin/lib')
Deleted: trunk/dports/lang/python31/files/yosemite-configure-fixes.patch
===================================================================
--- trunk/dports/lang/python31/files/yosemite-configure-fixes.patch 2016-08-01 05:35:52 UTC (rev 150871)
+++ trunk/dports/lang/python31/files/yosemite-configure-fixes.patch 2016-08-01 06:43:50 UTC (rev 150872)
@@ -1,118 +0,0 @@
-Index: configure
-===================================================================
---- configure.orig
-+++ configure
-@@ -5522,8 +5522,16 @@ $as_echo "$CC" >&6; }
-
- # Calculate the right deployment target for this build.
- #
-- cur_target=`sw_vers -productVersion | sed 's/\(10\.[0-9]*\).*/\1/'`
-- if test ${cur_target} '>' 10.2; then
-+ cur_target_major=`sw_vers -productVersion | \
-+ sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
-+ cur_target_minor=`sw_vers -productVersion | \
-+ sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
-+ cur_target="${cur_target_major}.${cur_target_minor}"
-+ if test ${cur_target_major} -eq 10 && \
-+ test ${cur_target_minor} -ge 3 && \
-+ test ${cur_target_minor} -le 5
-+ then
-+ # OS X 10.3 through 10.5
- cur_target=10.3
- if test ${enable_universalsdk}; then
- if test "${UNIVERSAL_ARCHS}" = "all"; then
-@@ -7585,14 +7593,14 @@ then
- # Use -undefined dynamic_lookup whenever possible (10.3 and later).
- # This allows an extension to be used in any Python
-
-- if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
-+ dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
-+ sed 's/\([0-9]*\)\.\([0-9]*\).*/\1/'`
-+ dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
-+ sed 's/\([0-9]*\)\.\([0-9]*\).*/\2/'`
-+ if test ${dep_target_major} -eq 10 && \
-+ test ${dep_target_minor} -le 2
- then
-- if test "${enable_universalsdk}"; then
-- LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
-- fi
-- LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
-- BLDSHARED="$LDSHARED"
-- else
-+ # building for OS X 10.0 through 10.2
- LDSHARED='$(CC) $(LDFLAGS) -bundle'
- if test "$enable_framework" ; then
- # Link against the framework. All externals should be defined.
-@@ -7603,6 +7611,13 @@ then
- BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
- LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
- fi
-+ else
-+ # building for OS X 10.3 and later
-+ if test "${enable_universalsdk}"; then
-+ LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
-+ fi
-+ LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
-+ BLDSHARED="$LDSHARED"
- fi
- ;;
- Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
-Index: configure.ac
-===================================================================
---- configure.ac.orig
-+++ configure.ac
-@@ -1010,8 +1010,16 @@ yes)
-
- # Calculate the right deployment target for this build.
- #
-- cur_target=`sw_vers -productVersion | sed 's/\(10\.[[0-9]]*\).*/\1/'`
-- if test ${cur_target} '>' 10.2; then
-+ cur_target_major=`sw_vers -productVersion | \
-+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
-+ cur_target_minor=`sw_vers -productVersion | \
-+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
-+ cur_target="${cur_target_major}.${cur_target_minor}"
-+ if test ${cur_target_major} -eq 10 && \
-+ test ${cur_target_minor} -ge 3 && \
-+ test ${cur_target_minor} -le 5
-+ then
-+ # OS X 10.3 through 10.5
- cur_target=10.3
- if test ${enable_universalsdk}; then
- if test "${UNIVERSAL_ARCHS}" = "all"; then
-@@ -1792,14 +1800,14 @@ then
- # Use -undefined dynamic_lookup whenever possible (10.3 and later).
- # This allows an extension to be used in any Python
-
-- if test ${MACOSX_DEPLOYMENT_TARGET} '>' 10.2
-+ dep_target_major=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
-+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
-+ dep_target_minor=`echo ${MACOSX_DEPLOYMENT_TARGET} | \
-+ sed 's/\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
-+ if test ${dep_target_major} -eq 10 && \
-+ test ${dep_target_minor} -le 2
- then
-- if test "${enable_universalsdk}"; then
-- LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
-- fi
-- LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
-- BLDSHARED="$LDSHARED"
-- else
-+ # building for OS X 10.0 through 10.2
- LDSHARED='$(CC) $(LDFLAGS) -bundle'
- if test "$enable_framework" ; then
- # Link against the framework. All externals should be defined.
-@@ -1810,6 +1818,13 @@ then
- BLDSHARED="$LDSHARED "'-bundle_loader $(BUILDPYTHON)'
- LDSHARED="$LDSHARED "'-bundle_loader $(BINDIR)/python$(VERSION)$(EXE)'
- fi
-+ else
-+ # building for OS X 10.3 and later
-+ if test "${enable_universalsdk}"; then
-+ LDFLAGS="${UNIVERSAL_ARCH_FLAGS} -isysroot ${UNIVERSALSDK} ${LDFLAGS}"
-+ fi
-+ LDSHARED='$(CC) $(LDFLAGS) -bundle -undefined dynamic_lookup'
-+ BLDSHARED="$LDSHARED"
- fi
- ;;
- Linux*|GNU*|QNX*) LDSHARED='$(CC) -shared';;
Deleted: trunk/dports/lang/python31/files/yosemite-python-fixes.patch
===================================================================
--- trunk/dports/lang/python31/files/yosemite-python-fixes.patch 2016-08-01 05:35:52 UTC (rev 150871)
+++ trunk/dports/lang/python31/files/yosemite-python-fixes.patch 2016-08-01 06:43:50 UTC (rev 150872)
@@ -1,76 +0,0 @@
-Index: Lib/distutils/util.py
-===================================================================
---- Lib/distutils/util.py.orig
-+++ Lib/distutils/util.py
-@@ -133,7 +133,16 @@ def get_platform ():
- release = macver
- osname = "macosx"
-
-- if (macrelease + '.') >= '10.4.' and \
-+ if macrelease:
-+ try:
-+ macrelease = tuple(int(i) for i in macrelease.split('.')[0:2])
-+ except ValueError:
-+ macrelease = (10, 0)
-+ else:
-+ # assume no universal support
-+ macrelease = (10, 0)
-+
-+ if (macrelease >= (10, 4)) and \
- '-arch' in get_config_vars().get('CFLAGS', '').strip():
- # The universal build will build fat binaries, but not on
- # systems before 10.4
-Index: Mac/BuildScript/build-installer.py
-===================================================================
---- Mac/BuildScript/build-installer.py.orig
-+++ Mac/BuildScript/build-installer.py
-@@ -108,14 +108,19 @@ SRCDIR = os.path.dirname(
- # $MACOSX_DEPLOYMENT_TARGET -> minimum OS X level
- DEPTARGET = '10.3'
-
--target_cc_map = {
-+def getDeptargetTuple():
-+ return tuple([int(n) for n in DEPTARGET.split('.')[0:2]])
-+
-+def getTargetCompiler():
-+ target_cc_map = {
- '10.3': 'gcc-4.0',
- '10.4': 'gcc-4.0',
- '10.5': 'gcc-4.0',
- '10.6': 'gcc-4.2',
--}
-+ }
-+ return target_cc_map.get(DEPTARGET, 'clang')
-
--CC = target_cc_map[DEPTARGET]
-+CC = getTargetCompiler()
-
- PYTHON_3 = getVersionTuple() >= (3, 0)
-
-@@ -141,7 +146,7 @@ USAGE = textwrap.dedent("""\
- def library_recipes():
- result = []
-
-- if DEPTARGET < '10.5':
-+ if getDeptargetTuple() < (10, 5):
- result.extend([
- dict(
- name="Bzip2 1.0.5",
-@@ -318,7 +323,7 @@ def pkg_recipes():
- ),
- ]
-
-- if DEPTARGET < '10.4':
-+ if getDeptargetTuple() < (10, 4):
- result.append(
- dict(
- name="PythonSystemFixes",
-@@ -509,7 +514,7 @@ def parseOptions(args=None):
- SDKPATH=os.path.abspath(SDKPATH)
- DEPSRC=os.path.abspath(DEPSRC)
-
-- CC=target_cc_map[DEPTARGET]
-+ CC=getTargetCompiler()
-
- print "Settings:"
- print " * Source directory:", SRCDIR
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160731/f6919d60/attachment-0001.html>
More information about the macports-changes
mailing list