<pre style='margin:0'>
Rainer Müller (raimue) pushed a commit to branch master
in repository macports-ports.

</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b5b644ee4ae92eab09344a3f4f7e77aeee769acc">https://github.com/macports/macports-ports/commit/b5b644ee4ae92eab09344a3f4f7e77aeee769acc</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'>     new b5b644e  python2*, python3*: fix flags in LINKFORSHARED
</span>b5b644e is described below

<span style='display:block; white-space:pre;color:#808000;'>commit b5b644ee4ae92eab09344a3f4f7e77aeee769acc
</span>Author: Rainer Müller <raimue@macports.org>
AuthorDate: Sat Jul 8 13:53:05 2017 +0200

<span style='display:block; white-space:pre;color:#404040;'>    python2*, python3*: fix flags in LINKFORSHARED
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    Other ports are unable to link against libpython as the value does not
</span><span style='display:block; white-space:pre;color:#404040;'>    properly reference Python.framework.
</span><span style='display:block; white-space:pre;color:#404040;'>    
</span><span style='display:block; white-space:pre;color:#404040;'>    See: https://lists.macosforge.org/pipermail/macports-dev/2016-September/033712.html
</span><span style='display:block; white-space:pre;color:#404040;'>    See: https://trac.macports.org/ticket/39223
</span>---
 lang/python24/Portfile | 10 +++++-----
 lang/python25/Portfile | 10 +++++-----
 lang/python26/Portfile | 12 ++++++------
 lang/python27/Portfile | 10 +++++++++-
 lang/python31/Portfile | 10 +++++-----
 lang/python32/Portfile | 10 +++++-----
 lang/python33/Portfile | 12 ++++++------
 lang/python34/Portfile | 11 ++++++-----
 lang/python35/Portfile | 11 ++++++-----
 lang/python36/Portfile | 11 ++++++-----
 10 files changed, 59 insertions(+), 48 deletions(-)

<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python24/Portfile b/lang/python24/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 84c6db2..8b0e1dd 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python24/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python24/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -3,7 +3,7 @@ PortGroup select 1.0
</span> 
 name                    python24
 version                 2.4.6
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision                11
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision                12
</span> set major               [lindex [split $version .] 0]
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              lang
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -125,10 +125,10 @@ platform macosx {
</span>             # Without this, LINKFORSHARED is set to
             # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
             # (this becomes Python.framework/Versions/2.4/Python) which doesn't
<span style='display:block; white-space:pre;background:#ffe0e0;'>-            # quite work (see ticket #15099); instead specifically list the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            # full path to the proper Python framework file (which becomes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            # ${prefix}/Library/Frameworks/Python.framework/Versions/2.4/Python)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-            reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${prefix}/lib/python${branch}/config/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            # quite work (see ticket #15099); instead we mirror the behavior of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            # `python-config --ldflags` here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            reinplace {s|^\(LINKFORSHARED=\).*$|\1 -L$(LIBPL) -lpython$(VERSION) $(LIBS) $(SYSLIBS)|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+                ${destroot}${framewdir}/lib/python${branch}/config/Makefile
</span>         }
     } else {
         # 64-bit, can't build mac-specific stuff
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python25/Portfile b/lang/python25/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4ea2e46..185eaab 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python25/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python25/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -5,7 +5,7 @@ PortGroup select 1.0
</span> 
 name                    python25
 version                 2.5.6
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision                6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision                7
</span> 
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              lang
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -111,10 +111,10 @@ post-destroot {
</span>         # Without this, LINKFORSHARED is set to
         # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
         # (this becomes Python.framework/Versions/2.5/Python) which doesn't
<span style='display:block; white-space:pre;background:#ffe0e0;'>-        # quite work (see ticket #15099); instead specifically list the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        # full path to the proper Python framework file (which becomes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        # ${prefix}/Library/Frameworks/Python.framework/Versions/2.5/Python)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-        reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/config/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # quite work (see ticket #15099); instead we mirror the behavior of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        # `python-config --ldflags` here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        reinplace {s|^\(LINKFORSHARED=\).*$|\1 -L$(LIBPL) -lpython$(VERSION) $(LIBS) $(SYSLIBS)|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+            ${destroot}${framewdir}/lib/python${branch}/config/Makefile
</span> 
         foreach dir { lib include } {
             file rename ${destroot}${framewdir}/${dir}/python${branch} ${destroot}${prefix}/${dir}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python26/Portfile b/lang/python26/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 61905d4..2417bc7 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python26/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python26/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -6,7 +6,7 @@ PortGroup select 1.0
</span> name                    python26
 # Remember to keep py26-tkinter and py26-gdbm's versions sync'd with this
 version                 2.6.9
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision                5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision                6
</span> set major               [lindex [split $version .] 0]
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              lang
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -119,13 +119,13 @@ post-destroot {
</span>    ln -s ${framewdir}/Python ${destroot}${prefix}/lib/libpython${branch}.dylib
    ln -s ${framewdir}/bin/2to3 ${destroot}${prefix}/bin/2to3-${branch}
 
<span style='display:block; white-space:pre;background:#ffe0e0;'>-   # Without this, LINKFORSHARED is set to 
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   # Without this, LINKFORSHARED is set to
</span>    # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
    # (this becomes Python.framework/Versions/2.6/Python) which doesn't
<span style='display:block; white-space:pre;background:#ffe0e0;'>-   # quite work (see ticket #15099); instead specifically list the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   # full path to the proper Python framework file (which becomes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   # ${prefix}/Library/Frameworks/Python.framework/Versions/2.6/Python)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/config/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   # quite work (see ticket #15099); instead we mirror the behavior of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   # `python-config --ldflags` here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   reinplace {s|^\(LINKFORSHARED=\).*$|\1 -L$(LIBPL) -lpython$(VERSION) $(LIBS) $(SYSLIBS)|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+      ${destroot}${framewdir}/lib/python${branch}/config/Makefile
</span> 
    foreach unversionedFile {idle pydoc python python-config pythonw smtpd.py} {
       delete ${destroot}${prefix}/bin/${unversionedFile}
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python27/Portfile b/lang/python27/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 68d773a..16d4b15 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python27/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python27/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,7 +7,7 @@ name                python27
</span> epoch               2
 # Remember to keep py27-tkinter and py27-gdbm's versions sync'd with this
 version             2.7.13
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            2
</span> 
 set major           [lindex [split $version .] 0]
 set branch          [join [lrange [split ${version} .] 0 1] .]
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -109,6 +109,14 @@ post-destroot {
</span>     ln -s ${framewdir}/share/man/man1/python${branch}.1 ${destroot}${prefix}/share/man/man1/
     ln -s ${framewdir}/Python ${destroot}${prefix}/lib/libpython${branch}.dylib
 
<span style='display:block; white-space:pre;background:#e0ffe0;'>+    # Without this, LINKFORSHARED is set to
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # (this becomes Python.framework/Versions/2.7/Python) which doesn't
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # quite work (see ticket #15099); instead we mirror the behavior of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # `python-config --ldflags` here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace {s|^\(LINKFORSHARED=\).*$|\1 -L$(LIBPL) -lpython$(VERSION) $(LIBS) $(SYSLIBS)|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        ${destroot}${framewdir}/lib/python${branch}/config/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span>     foreach unversionedFile {2to3 2to3-2 idle idle2 pydoc pydoc2 python python2 python-config python2-config pythonw pythonw2 smtpd.py smtpd2.py} {
         delete ${destroot}${prefix}/bin/${unversionedFile}
     }
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python31/Portfile b/lang/python31/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 1eeacf9..54f4988 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python31/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python31/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,7 +7,7 @@ name                    python31
</span> epoch                   1
 # Remember to keep py31-tkinter and py31-gdbm's versions sync'd with this
 version                 3.1.5
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision                5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision                6
</span> set major               [lindex [split $version .] 0]
 set branch              [join [lrange [split ${version} .] 0 1] .]
 categories              lang
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -110,10 +110,10 @@ post-destroot {
</span>    # Without this, LINKFORSHARED is set to
    # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
    # (this becomes Python.framework/Versions/3.1/Python) which doesn't
<span style='display:block; white-space:pre;background:#ffe0e0;'>-   # quite work (see ticket #15099); instead specifically list the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   # full path to the proper Python framework file (which becomes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   # ${prefix}/Library/Frameworks/Python.framework/Versions/3.1/Python)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/config/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   # quite work (see ticket #15099); instead we mirror the behavior of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   # `python-config --ldflags` here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   reinplace {s|^\(LINKFORSHARED=\)$|\1 -L$(LIBPL) -lpython$(VERSION) $(LIBS) $(SYSLIBS)|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+      ${destroot}${framewdir}/lib/python${branch}/config/Makefile
</span> 
    # remove -arch flags from the config
    reinplace -E {s|-arch [a-z0-9_]+||g} \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python32/Portfile b/lang/python32/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index ef2e060..b15d126 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python32/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python32/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,7 +7,7 @@ name                    python32
</span> epoch                   20120412
 # Remember to keep py32-tkinter and py32-gdbm's versions sync'd with this
 version                 3.2.6
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision                5
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision                6
</span> 
 set major               [lindex [split $version .] 0]
 set branch              [join [lrange [split ${version} .] 0 1] .]
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -108,10 +108,10 @@ post-destroot {
</span>    # Without this, LINKFORSHARED is set to
    # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
    # (this becomes Python.framework/Versions/3.2/Python) which doesn't
<span style='display:block; white-space:pre;background:#ffe0e0;'>-   # quite work (see ticket #15099); instead specifically list the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   # full path to the proper Python framework file (which becomes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-   # ${prefix}/Library/Frameworks/Python.framework/Versions/3.2/Python)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/$confdir/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   # quite work (see ticket #15099); instead we mirror the behavior of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   # `python-config --ldflags` here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+   reinplace {s|^\(LINKFORSHARED=\).*$|\1 -L$(LIBPL) -lpython$(VERSION)$(ABIFLAGS) $(LIBS) $(SYSLIBS)|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+       ${destroot}${framewdir}/lib/python${branch}/config-3.2m/Makefile
</span> 
    # remove -arch flags from the config
     reinplace -E {s|-arch [a-z0-9_]+||g} \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python33/Portfile b/lang/python33/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 4ebcbf3..de20b19 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python33/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python33/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,7 +7,7 @@ name                python33
</span> 
 # Remember to keep py33-tkinter and py33-gdbm's versions sync'd with this
 version             3.3.6
<span style='display:block; white-space:pre;background:#ffe0e0;'>-revision            8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            9
</span> 
 epoch               20141012
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -118,11 +118,11 @@ post-destroot {
</span> 
     # Without this, LINKFORSHARED is set to
     # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    # (this becomes Python.framework/Versions/3.2/Python) which doesn't
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # quite work (see ticket #15099); instead specifically list the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # full path to the proper Python framework file (which becomes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # ${prefix}/Library/Frameworks/Python.framework/Versions/3.2/Python)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/$confdir/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # (this becomes Python.framework/Versions/3.3/Python) which doesn't
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # quite work (see ticket #15099); instead we mirror the behavior of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # `python-config --ldflags` here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace {s|^\(LINKFORSHARED=\).*$|\1 -L$(LIBPL) -lpython$(VERSION)$(ABIFLAGS) $(LIBS) $(SYSLIBS)|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        ${destroot}${framewdir}/lib/python${branch}/config-3.3m/Makefile
</span> 
     # remove -arch flags from the config
     reinplace -E {s|-arch [a-z0-9_]+||g} \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python34/Portfile b/lang/python34/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d10fadd..be89f9d 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python34/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python34/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,6 +7,7 @@ name                python34
</span> 
 # Remember to keep py34-tkinter and py34-gdbm's versions sync'd with this
 version             3.4.7
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> 
 epoch               20170810
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -113,11 +114,11 @@ post-destroot {
</span> 
     # Without this, LINKFORSHARED is set to
     # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    # (this becomes Python.framework/Versions/3.2/Python) which doesn't
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # quite work (see ticket #15099); instead specifically list the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # full path to the proper Python framework file (which becomes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # ${prefix}/Library/Frameworks/Python.framework/Versions/3.2/Python)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/$confdir/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # (this becomes Python.framework/Versions/3.4/Python) which doesn't
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # quite work (see ticket #15099); instead we mirror the behavior of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # `python-config --ldflags` here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace {s|^\(LINKFORSHARED=\).*$|\1 -L$(LIBPL) -lpython$(VERSION)$(ABIFLAGS) $(LIBS) $(SYSLIBS)|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        ${destroot}${framewdir}/lib/python${branch}/config-3.4m/Makefile
</span> 
     # remove -arch flags from the config
     reinplace -E {s|-arch [a-z0-9_]+||g} \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python35/Portfile b/lang/python35/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 52b9d3f..38468ef 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python35/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python35/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,6 +7,7 @@ name                python35
</span> 
 # Remember to keep py35-tkinter and py35-gdbm's versions sync'd with this
 version             3.5.4
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> 
 epoch               20170810
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -114,11 +115,11 @@ post-destroot {
</span> 
     # Without this, LINKFORSHARED is set to
     # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    # (this becomes Python.framework/Versions/3.2/Python) which doesn't
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # quite work (see ticket #15099); instead specifically list the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # full path to the proper Python framework file (which becomes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # ${prefix}/Library/Frameworks/Python.framework/Versions/3.2/Python)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/$confdir/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # (this becomes Python.framework/Versions/3.5/Python) which doesn't
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # quite work (see ticket #15099); instead we mirror the behavior of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # `python-config --ldflags` here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace {s|^\(LINKFORSHARED=\).*$|\1 -L$(LIBPL) -lpython$(VERSION)$(ABIFLAGS) $(LIBS) $(SYSLIBS)|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        ${destroot}${framewdir}/lib/python${branch}/config-3.5m/Makefile
</span> 
     # remove -arch flags from the config
     reinplace -E {s|-arch [a-z0-9_]+||g} \
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/lang/python36/Portfile b/lang/python36/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 8effd57..ef55ca2 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/lang/python36/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/lang/python36/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -7,6 +7,7 @@ name                python36
</span> 
 # Remember to keep py36-tkinter and py36-gdbm's versions sync'd with this
 version             3.6.2
<span style='display:block; white-space:pre;background:#e0ffe0;'>+revision            1
</span> 
 epoch               20170717
 
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -123,11 +124,11 @@ post-destroot {
</span> 
     # Without this, LINKFORSHARED is set to
     # ... $(PYTHONFRAMEWORKDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-    # (this becomes Python.framework/Versions/3.2/Python) which doesn't
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # quite work (see ticket #15099); instead specifically list the
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # full path to the proper Python framework file (which becomes
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    # ${prefix}/Library/Frameworks/Python.framework/Versions/3.2/Python)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-    reinplace {s|^\(LINKFORSHARED=.*\)$(PYTHONFRAMEWORKDIR).*$|\1 $(PYTHONFRAMEWORKINSTALLDIR)/Versions/$(VERSION)/$(PYTHONFRAMEWORK)|} ${destroot}${framewdir}/lib/python${branch}/$confdir/Makefile
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # (this becomes Python.framework/Versions/3.6/Python) which doesn't
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # quite work (see ticket #15099); instead we mirror the behavior of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    # `python-config --ldflags` here.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+    reinplace {s|^\(LINKFORSHARED=\).*$|\1 -L$(LIBPL) -lpython$(VERSION)$(ABIFLAGS) $(LIBS) $(SYSLIBS)|} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+        ${destroot}${framewdir}/lib/python${branch}/config-3.6m-darwin/Makefile
</span> 
     # remove -arch flags from the config
     reinplace -E {s|-arch [a-z0-9_]+||g} \
</pre><pre style='margin:0'>

</pre>