source: trunk/dports/python/py-wxpython-3.0/Portfile

Last change on this file was 128898, checked in by jwa@…, 3 years ago

py-wxpython-3.0: version bump to 3.0.2.0

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1# -*- 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
2# $Id: Portfile 128898 2014-11-29 17:38:47Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python      1.0
6PortGroup           wxWidgets   1.0
7
8name                py-wxpython-3.0
9version             3.0.2.0
10set wx_version      [join [lrange [split ${version} .] 0 2] .]
11set branch          [join [lrange [split ${version} .] 0 1] .]
12categories-append   graphics devel
13license             wxwidgets-3.1
14platforms           darwin
15maintainers         jwa mojca
16
17description         Python interface to the wxWidgets ${branch} cross platform GUI
18long_description    wxPython is a GUI toolkit for the Python programming \
19                    language. It allows Python programmers to create \
20                    programs with a robust, highly functional graphical \
21                    user interface, simply and easily. It is implemented \
22                    as a Python extension module (native code) that wraps \
23                    the wxWidgets cross platform GUI library, written in C++.
24
25homepage            http://www.wxpython.org/
26master_sites        sourceforge:wxpython
27
28distname            wxPython
29use_bzip2           yes
30
31checksums           rmd160  6ae920a192f482ec92de8539c8f957e1f427f9c4 \
32                    sha256  d54129e5fbea4fb8091c87b2980760b72c22a386cb3b9dd2eebc928ef5e8df61
33
34python.versions     27
35python.default_version 27
36
37distfiles           ${distname}-src-${version}${extract.suffix}
38worksrcdir          ${distname}-src-${version}/wxPython
39dist_subdir         wxWidgets/${wx_version}
40
41# extract just the docs and wxPython subdir
42extract.post_args   "| tar -xf - ${worksrcdir} ${distname}-src-${version}/docs"
43
44if {${name} ne ${subport}} {
45    conflicts       py${python.version}-wxpython-2.8
46    # As long as wxPython and wxWidgets are at the same version,
47    # this port could also depend on wxWidgets-3.0.
48    # A separate port is there just because wxPython usually lags behind.
49    wxWidgets.use   wxPython-3.0
50    depends_lib-append \
51                    port:${wxWidgets.port}
52
53    patchfiles      patch-config.py.diff
54
55    # TODO: is it possible to use build arguments instead of redefining the whole command?
56    build.cmd       ${python.bin} setup.py WX_CONFIG="${wxWidgets.wxconfig}"
57    destroot.cmd    ${python.bin} setup.py WX_CONFIG="${wxWidgets.wxconfig}"
58
59    post-destroot {
60        # When a new release of wxPython comes out, the contents of
61        # ${destroot}${wxWidgets.prefix}/Versions/wxPython/${branch}/include/wx-${branch}/wx/wxPython
62        # should be stored separately into wxPython-${version}-MacPorts-subset.tar.bz2
63        # to be extracted/installed by wxPython-3.0 rather than this port.
64        # This allows parallel installation of several versions of py**-wxpython-3.0.
65        delete      ${destroot}${wxWidgets.prefix}
66    }
67
68    livecheck.type  none
69} else {
70    # Once upon a time this would install the documentation,
71    # however the python PortGroup disables all steps including fetching & extracting
72    # which makes it a bit inconvenient to do things like this.
73    # If anyone is missing the docs badly enough, you are welcome to fix this
74    # in both py-wxpython-2.8 and py-wxpython-3.0.
75    #
76    # post-destroot {
77    #     xinstall -d -m 755 ${destroot}${prefix}/share/doc/
78    #     file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name}
79    #     file copy ${worksrcpath}/samples ${destroot}${prefix}/share/doc/${name}/examples
80    # }
81
82    livecheck.type  regex
83    livecheck.url   ${homepage}
84    livecheck.regex wxPython(?: | \\(classic\\) )(\[2-9\]\\.\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+)
85}
Note: See TracBrowser for help on using the repository browser.