<pre style='margin:0'>
Perry E. Metzger (pmetzger) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/02235a4fb9ab4203982c331f2fe18b1307b9febf">https://github.com/macports/macports-ports/commit/02235a4fb9ab4203982c331f2fe18b1307b9febf</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 02235a4fb9ab4203982c331f2fe18b1307b9febf
</span>Author: reneeotten <reneeotten@users.noreply.github.com>
AuthorDate: Tue Jul 24 20:17:32 2018 -0400
<span style='display:block; white-space:pre;color:#404040;'> py-pysvn: add support for python 3.7
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> - patch by josephsacco
</span>---
python/py-pysvn/Portfile | 6 ++++--
python/py-pysvn/files/patch-IndirectPythonInterface.cxx.diff | 11 +++++++++++
python/py-pysvn/files/patch-Source_setup_configure.py.diff | 12 ++++++------
3 files changed, 21 insertions(+), 8 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-pysvn/Portfile b/python/py-pysvn/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index d090ef0..fffd24c 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-pysvn/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-pysvn/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,7 +22,7 @@ checksums rmd160 b4bf58b682408c79e01b50d3f6902dba17814117 \
</span> sha256 1508f63e66fc9d1303f8fd0f49547b59492f6977be4434914c38bc29dc82b2d6 \
size 515394
<span style='display:block; white-space:pre;background:#ffe0e0;'>-python.versions 27 36
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions 27 36 37
</span>
set cxx_stdlibflags {}
if {[string match *clang* ${configure.cxx}]} {
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -33,7 +33,9 @@ if {${name} ne ${subport}} {
</span> depends_lib-append \
port:subversion
<span style='display:block; white-space:pre;background:#ffe0e0;'>- patchfiles patch-Source_setup_configure.py.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch.dir ${worksrcpath}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patchfiles patch-Source_setup_configure.py.diff \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ patch-IndirectPythonInterface.cxx.diff
</span>
worksrcdir ${worksrcdir}/Source
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-pysvn/files/patch-IndirectPythonInterface.cxx.diff b/python/py-pysvn/files/patch-IndirectPythonInterface.cxx.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..f4d22d1
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-pysvn/files/patch-IndirectPythonInterface.cxx.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Import/pycxx-7.0.3/Src/IndirectPythonInterface.cxx.orig 2018-07-24 16:44:03.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Import/pycxx-7.0.3/Src/IndirectPythonInterface.cxx 2018-07-24 16:44:28.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -468,7 +468,7 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int &_Py_OptimizeFlag() { return Py_OptimizeFlag; }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int &_Py_NoSiteFlag() { return Py_NoSiteFlag; }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ int &_Py_VerboseFlag() { return Py_VerboseFlag; }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-char *__Py_PackageContext() { return _Py_PackageContext; }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++char *__Py_PackageContext() { return (char *)(_Py_PackageContext); }
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ //
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ // Needed to keep the abstactions for delayload interface
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-pysvn/files/patch-Source_setup_configure.py.diff b/python/py-pysvn/files/patch-Source_setup_configure.py.diff
</span><span style='display:block; white-space:pre;color:#808080;'>index bca8ac4..b3fb501 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/python/py-pysvn/files/patch-Source_setup_configure.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/python/py-pysvn/files/patch-Source_setup_configure.py.diff
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,18 +1,18 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>---- setup_configure.py.orig 2018-06-29 11:47:16.000000000 -0400
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-+++ setup_configure.py 2018-06-29 11:48:44.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- Source/setup_configure.py.orig 2018-06-29 11:47:16.000000000 -0400
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ Source/setup_configure.py 2018-06-29 11:48:44.000000000 -0400
</span> @@ -568,8 +568,8 @@
raise last_exception
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> # if we are using the Fink SVN then remember this
- self.is_mac_os_x_fink = folder.startswith( '/sw/' )
- self.is_mac_os_x_darwin_ports = folder.startswith( '/opt/local/' )
+ self.is_mac_os_x_fink = False
+ self.is_mac_os_x_darwin_ports = False
return folder
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> def find_apr_inc( self ):
@@ -1103,7 +1103,7 @@
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> def setupUtilities( self ):
self._addVar( 'CCCFLAGS',
- '-g '
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -22,7 +22,7 @@
</span> '-D%(DEBUG)s' )
@@ -1131,7 +1131,7 @@
self._addVar( 'PYTHON_INC', distutils.sysconfig.get_python_inc() )
<span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span> py_cflags_list = [
- '-g',
+ '-g -O2 ',
</pre><pre style='margin:0'>
</pre>