<pre style='margin:0'>
Vincent (Veence) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/e692db9fea78995702038c386b1ae1a0e90f6264">https://github.com/macports/macports-ports/commit/e692db9fea78995702038c386b1ae1a0e90f6264</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 e692db9 Wxpython-4.0: Initial commit. Please test
</span>e692db9 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit e692db9fea78995702038c386b1ae1a0e90f6264
</span>Author: Veence <vince@macports.org>
AuthorDate: Mon Feb 3 14:54:37 2020 +0100
<span style='display:block; white-space:pre;color:#404040;'> Wxpython-4.0: Initial commit. Please test
</span>---
python/py-wxpython-4.0/Portfile | 80 +++++++++++++++++++++++
python/py-wxpython-4.0/files/patch-config.py.diff | 11 ++++
2 files changed, 91 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-wxpython-4.0/Portfile b/python/py-wxpython-4.0/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..456d473
</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-wxpython-4.0/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,80 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup python 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup wxWidgets 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+name py-wxpython-4.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+version 4.0.7
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname wxPython-${version}.post2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set wx_version [join [lrange [split ${version} .] 0 2] .]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+set branch [join [lrange [split ${version} .] 0 1] .]
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories-append graphics devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license wxwidgets-3.1
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description Python interface to the wxWidgets ${branch} cross platform GUI
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description wxPython is a GUI toolkit for the Python programming \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ language. It allows Python programmers to create \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ programs with a robust, highly functional graphical \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ user interface, simply and easily. It is implemented \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ as a Python extension module (native code) that wraps \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ the wxWidgets cross platform GUI library, written in C++.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage http://www.wxpython.org/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+master_sites pypi:w/wxPython
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 0acb106cb0095a743096875449a23454c8d4378c \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ sha256 5a229e695b64f9864d30a5315e0c1e4ff5e02effede0a07f16e8d856737a0c4e \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ size 68891167
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.versions 27 34 35 36 37 38
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+python.default_version 37
</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;'>+if {${name} ne ${subport}} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ conflicts py${python.version}-wxpython-2.8 py${python.version}-wxpython-3.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # As long as wxPython and wxWidgets are at the same version,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # this port could also depend on wxWidgets-3.0.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # A separate port is there just because wxPython usually lags behind.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ wxWidgets.use wxWidgets-3.2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ depends_lib-append \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:${wxWidgets.port} \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pathlib2 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ port:py${python.version}-pip
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # patchfiles patch-config.py.diff
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # TODO: is it possible to use build arguments instead of redefining the whole command?
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ set boptions "--enable-plugins --enable-utf8 --enable-std_string_conv_in_wxstring \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ --enable-permissive"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ build.cmd ${python.bin} setup.py WX_CONFIG="${wxWidgets.wxconfig}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ destroot.cmd ${python.bin} setup.py WX_CONFIG="${wxWidgets.wxconfig}"
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # When a new release of wxPython comes out, the contents of
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # ${destroot}${wxWidgets.prefix}/Versions/wxPython/${branch}/include/wx-${branch}/wx/wxPython
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # should be stored separately into wxPython-${version}-MacPorts-subset.tar.bz2
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # to be extracted/installed by wxPython-3.0 rather than this port.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # This allows parallel installation of several versions of py**-wxpython-3.0.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ delete ${destroot}${wxWidgets.prefix}
</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;'>+ livecheck.type none
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+} else {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # Once upon a time this would install the documentation,
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # however the python PortGroup disables all steps including fetching & extracting
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # which makes it a bit inconvenient to do things like this.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # If anyone is missing the docs badly enough, you are welcome to fix this
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # in both py-wxpython-2.8 and py-wxpython-3.0.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # post-destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # xinstall -d -m 755 ${destroot}${prefix}/share/doc/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # file copy ${worksrcpath}/samples ${destroot}${prefix}/share/doc/${name}/examples
</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;'>+ livecheck.url https://api.github.com/repos/wxWidgets/wxPython/tags
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ livecheck.regex tarball/wxPy-(3\\.0\\.\[^"\]+)
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/python/py-wxpython-4.0/files/patch-config.py.diff b/python/py-wxpython-4.0/files/patch-config.py.diff
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..f0e335c
</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-wxpython-4.0/files/patch-config.py.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;'>+--- config.py.orig
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ config.py
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -248,7 +248,7 @@ cleaning = 'clean' in sys.argv
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # change the PORT default for wxMac
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if sys.platform[:6] == "darwin":
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+- WXPORT = 'osx_carbon'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++ WXPORT = 'osx_cocoa'
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ # and do the same for wxMSW, just for consistency
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ if os.name == 'nt':
</span></pre><pre style='margin:0'>
</pre>