1 | # $Id: Portfile 73275 2010-11-08 21:04:38Z mww@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup python27 1.0 |
---|
5 | |
---|
6 | name py27-wxpython-devel |
---|
7 | version 2.9.2.1 |
---|
8 | |
---|
9 | categories python graphics |
---|
10 | platforms darwin |
---|
11 | maintainers openmaintainer |
---|
12 | description Python interface to the wxWindows cross platform GUI |
---|
13 | long_description wxPython is a GUI toolkit for the Python programming \ |
---|
14 | language. It allows Python programmers to create \ |
---|
15 | programs with a robust, highly functional graphical \ |
---|
16 | user interface, simply and easily. It is implemented \ |
---|
17 | as a Python extension module (native code) that wraps \ |
---|
18 | the popular wxWindows cross platform GUI library, \ |
---|
19 | which is written in C++. |
---|
20 | |
---|
21 | homepage http://www.wxpython.org/ |
---|
22 | master_sites sourceforge:wxpython |
---|
23 | distname wxPython-src-${version} |
---|
24 | use_bzip2 yes |
---|
25 | checksums md5 1cb1e0757cda9afe2da35d5ee0003262 \ |
---|
26 | sha1 00bba6ba2bd983c0b905e06415ae61e626099299 \ |
---|
27 | rmd160 62e0dcd39aa83aa89fb33bb5eed8f39d03be1935 |
---|
28 | |
---|
29 | depends_lib port:wxWidgets-devel |
---|
30 | |
---|
31 | worksrcdir ${distname}/wxPython |
---|
32 | |
---|
33 | patchfiles patch-setup.py.diff \ |
---|
34 | patch-config.py.diff |
---|
35 | |
---|
36 | set wxport cocoa |
---|
37 | |
---|
38 | variant cocoa conflicts carbon gtk description {use osx_cocoa} { |
---|
39 | set wxport "osx_cocoa" |
---|
40 | } |
---|
41 | |
---|
42 | variant carbon conflicts cocoa gtk description {use osx_carbon} { |
---|
43 | set wxport "osx_carbon" |
---|
44 | } |
---|
45 | |
---|
46 | variant gtk conflicts carbon cocoa dscription {use gtk} { |
---|
47 | set wxport "gtk2" |
---|
48 | } |
---|
49 | |
---|
50 | if {![variant_isset carbon] && ![variant_isset cocoa] && ![variant_isset gtk]} { |
---|
51 | default_variants +cocoa |
---|
52 | } |
---|
53 | |
---|
54 | pre-configure { |
---|
55 | reinplace "s|^WX_CONFIG = None|WX_CONFIG = \"${prefix}/bin/wx-config\"|g" \ |
---|
56 | ${worksrcpath}/config.py |
---|
57 | reinplace "s|^WXPORT = \'gtk2\'|WXPORT = \'${wxport}\'|g" \ |
---|
58 | ${worksrcpath}/config.py |
---|
59 | } |
---|
60 | |
---|
61 | extract.post_args "| tar -xf - ${worksrcdir} ${distname}/docs" |
---|
62 | |
---|
63 | build.env UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx/config:$env(PATH)" |
---|
64 | |
---|
65 | destroot.env UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx/config:$env(PATH)" |
---|
66 | |
---|
67 | post-destroot { |
---|
68 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/ |
---|
69 | file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name} |
---|
70 | file copy ${worksrcpath}/samples \ |
---|
71 | ${destroot}${prefix}/share/doc/${name}/examples |
---|
72 | } |
---|
73 | |
---|
74 | livecheck.type regex |
---|
75 | livecheck.url ${homepage} |
---|
76 | livecheck.regex wxPython (2\\.\[0-9\]+\\.\[0-9\]+\\.\[0-9\]+) |
---|