[115981] users/mojca/ports
mojca at macports.org
mojca at macports.org
Wed Jan 15 14:40:50 PST 2014
Revision: 115981
https://trac.macports.org/changeset/115981
Author: mojca at macports.org
Date: 2014-01-15 14:40:50 -0800 (Wed, 15 Jan 2014)
Log Message:
-----------
mojca/py-wxpython-3.0-phoenix: experimental support for wxPython Phoenix
Modified Paths:
--------------
users/mojca/ports/python/py-wxpython-3.0-phoenix/Portfile
Added Paths:
-----------
users/mojca/ports/python/
users/mojca/ports/python/py-wxpython-3.0-phoenix/
Removed Paths:
-------------
users/mojca/ports/python/py-wxpython-3.0-phoenix/files/
Modified: users/mojca/ports/python/py-wxpython-3.0-phoenix/Portfile
===================================================================
--- 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)
@@ -5,81 +5,63 @@
PortGroup python 1.0
PortGroup wxWidgets 1.0
-name py-wxpython-3.0
-version 3.0.0.0
+name py-wxpython-3.0-phoenix
+version 3.0.1.dev75629
set wx_version [join [lrange [split ${version} .] 0 2] .]
set branch [join [lrange [split ${version} .] 0 1] .]
categories-append graphics devel
license wxwidgets-3.1
+# wxWidgets Library License (LGPL derivative)
platforms darwin
-maintainers jwa mojca
+maintainers mojca
description Python interface to the wxWidgets ${branch} cross platform GUI
-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++.
-homepage http://www.wxpython.org/
-master_sites sourceforge:wxpython
+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.
-distname wxPython
-use_bzip2 yes
+homepage http://wiki.wxpython.org/ProjectPhoenix
+# http://www.wxpython.org/
+master_sites http://wxpython.org/Phoenix/snapshot-builds/
-checksums rmd160 75661f0552e9bf3e86002c96fdc9a01157ef791e \
- sha256 af88695e820dd914e8375dc91ecb736f6fb605979bb38460ace61bbea494dc11
+distname wxPython_Phoenix
-python.versions 27
-python.default_version 27
+checksums rmd160 2a3a0fe4b670597dc03908a42dbac1ccb7369373 \
+ sha256 62f9610340e80b0a5c32ffb0882ccc15eeb09bb5be47856006cb97817e5681e9
-distfiles ${distname}-src-${version}${extract.suffix}
-worksrcdir ${distname}-src-${version}/wxPython
+python.versions 27 33 34
+python.default_version 33
+
+distfiles ${distname}-${version}${extract.suffix}
+worksrcdir ${distname}-${version}/Phoenix
dist_subdir wxWidgets/${wx_version}
-# extract just the docs and wxPython subdir
-extract.post_args "| tar -xf - ${worksrcdir} ${distname}-src-${version}/docs"
-
if {${name} ne ${subport}} {
- 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}
+ conflicts py${python.version}-wxpython-2.8 \
+ py${python.version}-wxpython-3.0
- patchfiles patch-config.py.diff
+ # 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}
- # TODO: is it possible to use build arguments instead of redefining the whole command?
- build.cmd ${python.bin} setup.py WX_CONFIG="${wxWidgets.wxconfig}"
- destroot.cmd ${python.bin} setup.py WX_CONFIG="${wxWidgets.wxconfig}"
+ # 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}
- 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}
- }
-
livecheck.type none
} else {
- # Once upon a time this would install the documentation,
- # however the python PortGroup disables all steps including fetching & 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
- # }
-
livecheck.type regex
- livecheck.url ${homepage}
- livecheck.regex wxPython(?: | \\(classic\\) )(\[2-9\]\\.\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)
+ livecheck.url ${master_sites}
+ livecheck.regex wxPython_Phoenix-(3.\[0-9\]+\\.\[0-9\]+\\.dev\[0-9\]+)${extract.suffix}
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140115/026db78d/attachment-0001.html>
More information about the macports-changes
mailing list