<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[115981] users/mojca/ports</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/115981">115981</a></dd>
<dt>Author</dt> <dd>mojca@macports.org</dd>
<dt>Date</dt> <dd>2014-01-15 14:40:50 -0800 (Wed, 15 Jan 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>mojca/py-wxpython-3.0-phoenix: experimental support for wxPython Phoenix</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#usersmojcaportspythonpywxpython30phoenixPortfile">users/mojca/ports/python/py-wxpython-3.0-phoenix/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li>users/mojca/ports/python/</li>
<li>users/mojca/ports/python/py-wxpython-3.0-phoenix/</li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li>users/mojca/ports/python/py-wxpython-3.0-phoenix/files/</li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="usersmojcaportspythonpywxpython30phoenixPortfile"></a>
<div class="modfile"><h4>Modified: users/mojca/ports/python/py-wxpython-3.0-phoenix/Portfile (115961 => 115981)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/python/py-wxpython-3.0/Portfile        2014-01-15 15:06:14 UTC (rev 115961)
+++ users/mojca/ports/python/py-wxpython-3.0-phoenix/Portfile        2014-01-15 22:40:50 UTC (rev 115981)
</span><span class="lines">@@ -5,81 +5,63 @@
</span><span class="cx"> PortGroup           python      1.0
</span><span class="cx"> PortGroup           wxWidgets   1.0
</span><span class="cx"> 
</span><del>-name                py-wxpython-3.0
-version             3.0.0.0
</del><ins>+name                py-wxpython-3.0-phoenix
+version             3.0.1.dev75629
</ins><span class="cx"> set wx_version      [join [lrange [split ${version} .] 0 2] .]
</span><span class="cx"> set branch          [join [lrange [split ${version} .] 0 1] .]
</span><span class="cx"> categories-append   graphics devel
</span><span class="cx"> license             wxwidgets-3.1
</span><ins>+# wxWidgets Library License (LGPL derivative)
</ins><span class="cx"> platforms           darwin
</span><del>-maintainers         jwa mojca
</del><ins>+maintainers         mojca
</ins><span class="cx"> 
</span><span class="cx"> description         Python interface to the wxWidgets ${branch} cross platform GUI
</span><del>-long_description    wxPython is a GUI toolkit for the Python programming \
-                    language. It allows Python programmers to create \
-                    programs with a robust, highly functional graphical \
-                    user interface, simply and easily. It is implemented \
-                    as a Python extension module (native code) that wraps \
-                    the wxWidgets cross platform GUI library, written in C++.
</del><span class="cx"> 
</span><del>-homepage            http://www.wxpython.org/
-master_sites        sourceforge:wxpython
</del><ins>+long_description    Phoenix is a new implementation of wxPython focused on improving speed, \
+                    maintainability and extensibility. Just like wxPython it wraps the wxWidgets \
+                    C++ toolkit and provides access to the UI portions of the wx API, enabling \
+                    Python applications to have a GUI on Windows, Macs or Unix systems with a \
+                    native look and feel and requiring very little (if any) platform specific code.
</ins><span class="cx"> 
</span><del>-distname            wxPython
-use_bzip2           yes
</del><ins>+homepage            http://wiki.wxpython.org/ProjectPhoenix
+#                   http://www.wxpython.org/
+master_sites        http://wxpython.org/Phoenix/snapshot-builds/
</ins><span class="cx"> 
</span><del>-checksums           rmd160  75661f0552e9bf3e86002c96fdc9a01157ef791e \
-                    sha256  af88695e820dd914e8375dc91ecb736f6fb605979bb38460ace61bbea494dc11
</del><ins>+distname            wxPython_Phoenix
</ins><span class="cx"> 
</span><del>-python.versions     27
-python.default_version 27
</del><ins>+checksums           rmd160  2a3a0fe4b670597dc03908a42dbac1ccb7369373 \
+                    sha256  62f9610340e80b0a5c32ffb0882ccc15eeb09bb5be47856006cb97817e5681e9
</ins><span class="cx"> 
</span><del>-distfiles           ${distname}-src-${version}${extract.suffix}
-worksrcdir          ${distname}-src-${version}/wxPython
</del><ins>+python.versions     27 33 34
+python.default_version 33
+
+distfiles           ${distname}-${version}${extract.suffix}
+worksrcdir          ${distname}-${version}/Phoenix
</ins><span class="cx"> dist_subdir         wxWidgets/${wx_version}
</span><span class="cx"> 
</span><del>-# extract just the docs and wxPython subdir
-extract.post_args   &quot;| tar -xf - ${worksrcdir} ${distname}-src-${version}/docs&quot;
-
</del><span class="cx"> if {${name} ne ${subport}} {
</span><del>-    conflicts       py${python.version}-wxpython-2.8
-    # As long as wxPython and wxWidgets are at the same version,
-    # this port could also depend on wxWidgets-3.0.
-    # A separate port is there just because wxPython usually lags behind.
-    wxWidgets.use   wxPython-3.0
-    depends_lib-append \
-                    port:${wxWidgets.port}
</del><ins>+    conflicts       py${python.version}-wxpython-2.8 \
+                    py${python.version}-wxpython-3.0
</ins><span class="cx"> 
</span><del>-    patchfiles      patch-config.py.diff
</del><ins>+    # version 3.0.0 is too old for Phoenix to compile, else we would use it
+    # TODO: it would be really nice to split this port into separate wxWidgets and Python part
+    # to avoid constant need to recompile wxWidgets and to be able to reuse it for different Python versions
+    # wxWidgets.use   wxWidgets-3.0
+    # depends_lib-append port:${wxWidgets.port}
</ins><span class="cx"> 
</span><del>-    # TODO: is it possible to use build arguments instead of redefining the whole command?
-    build.cmd       ${python.bin} setup.py WX_CONFIG=&quot;${wxWidgets.wxconfig}&quot;
-    destroot.cmd    ${python.bin} setup.py WX_CONFIG=&quot;${wxWidgets.wxconfig}&quot;
</del><ins>+    # if we were using external wxWidgets, we would need to add wxdir to PATH:
+    # build.env-append PATH=${wxWidgets.wxdir}:$env(PATH)
+    # build.cmd        ${python.bin} build.py build_py --use_syswx
+    # flags for building universal (not tested yet): --mac_arch=i386,x86_64
+    build.cmd       ${python.bin} build.py build
+    destroot.cmd    ${python.bin} build.py
+    # by default this tries to call --root=${destroot} which throws an error;
+    # try to fix this in a different way (destroot.destdir has another argument)
+    destroot.destdir --destdir=${destroot}
</ins><span class="cx"> 
</span><del>-    post-destroot {
-        # When a new release of wxPython comes out, the contents of
-        # ${destroot}${wxWidgets.prefix}/Versions/wxPython/${branch}/include/wx-${branch}/wx/wxPython
-        # should be stored separately into wxPython-${version}-MacPorts-subset.tar.bz2
-        # to be extracted/installed by wxPython-3.0 rather than this port.
-        # This allows parallel installation of several versions of py**-wxpython-3.0.
-        delete      ${destroot}${wxWidgets.prefix}
-    }
-
</del><span class="cx">     livecheck.type  none
</span><span class="cx"> } else {
</span><del>-    # Once upon a time this would install the documentation,
-    # however the python PortGroup disables all steps including fetching &amp; extracting
-    # which makes it a bit inconvenient to do things like this.
-    # If anyone is missing the docs badly enough, you are welcome to fix this
-    # in both py-wxpython-2.8 and py-wxpython-3.0.
-    #
-    # post-destroot {
-    #     xinstall -d -m 755 ${destroot}${prefix}/share/doc/
-    #     file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
-    #     file copy ${worksrcpath}/samples ${destroot}${prefix}/share/doc/${name}/examples
-    # }
-
</del><span class="cx">     livecheck.type  regex
</span><del>-    livecheck.url   ${homepage}
-    livecheck.regex wxPython(?: | \\(classic\\) )(\[2-9\]\\.\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)
</del><ins>+    livecheck.url   ${master_sites}
+    livecheck.regex wxPython_Phoenix-(3.\[0-9\]+\\.\[0-9\]+\\.dev\[0-9\]+)${extract.suffix}
</ins><span class="cx"> }
</span></span></pre>
</div>
</div>

</body>
</html>