1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python26 1.0 |
---|
6 | |
---|
7 | name py26-wxpython |
---|
8 | version 2.8.10.1 |
---|
9 | categories-append graphics |
---|
10 | maintainers jameskyle |
---|
11 | description Python interface to the wxWindows cross platform GUI |
---|
12 | long_description wxPython is a GUI toolkit for the Python programming \ |
---|
13 | language. It allows Python programmers to create \ |
---|
14 | programs with a robust, highly functional graphical \ |
---|
15 | user interface, simply and easily. It is implemented \ |
---|
16 | as a Python extension module (native code) that wraps \ |
---|
17 | the popular wxWindows cross platform GUI library, \ |
---|
18 | which is written in C++. |
---|
19 | homepage http://www.wxpython.org/ |
---|
20 | |
---|
21 | platforms darwin |
---|
22 | depends_lib port:python26 \ |
---|
23 | port:wxWidgets-python |
---|
24 | |
---|
25 | master_sites sourceforge:wxpython |
---|
26 | distname wxPython-src-${version} |
---|
27 | use_bzip2 yes |
---|
28 | |
---|
29 | checksums md5 65d5ef166f23fe8b4c67f58df164f93e \ |
---|
30 | sha1 6598fbafd979a91f20100171fa23a91779f6dc62 \ |
---|
31 | rmd160 bb606046d140623041b988e64ab268ced9aa958f |
---|
32 | |
---|
33 | worksrcdir ${distname}/wxPython |
---|
34 | |
---|
35 | extract.post_args "| tar -xf - ${worksrcdir} ${distname}/docs" |
---|
36 | |
---|
37 | patchfiles wxpython28101_gdiwrap.diff |
---|
38 | patch.pre_args -p1 |
---|
39 | |
---|
40 | use_configure no |
---|
41 | |
---|
42 | variant carbon conflicts gtk description {use carbon} { |
---|
43 | build.args "UNICODE=1 WXPORT=mac" |
---|
44 | destroot.args "UNICODE=1 WXPORT=mac" |
---|
45 | } |
---|
46 | variant gtk conflicts carbon description {use gtk} { |
---|
47 | build.args "UNICODE=1 WXPORT=gtk2" |
---|
48 | destroot.args "UNICODE=1 WXPORT=gtk2" |
---|
49 | } |
---|
50 | if {![variant_isset gtk]} { |
---|
51 | default_variants-append +carbon |
---|
52 | } |
---|
53 | |
---|
54 | build.cmd ${python.bin} setup.py |
---|
55 | build.target build |
---|
56 | |
---|
57 | destroot.cmd ${build.cmd} |
---|
58 | destroot.destdir --prefix=${python.prefix} --root=${destroot} |
---|
59 | |
---|
60 | post-destroot { |
---|
61 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/ |
---|
62 | file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name} |
---|
63 | file copy ${worksrcpath}/samples \ |
---|
64 | ${destroot}${prefix}/share/doc/${name}/examples |
---|
65 | } |
---|
66 | |
---|
67 | livecheck.type regex |
---|
68 | livecheck.url ${homepage} |
---|
69 | livecheck.regex wxPython (2\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+) |
---|