1 | # $Id: Portfile 26561 2007-06-28 12:19:10Z jwa@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name py25-wxpython |
---|
6 | version 2.8.4.0 |
---|
7 | categories python graphics |
---|
8 | platforms darwin |
---|
9 | maintainers mww@macports.org jwa |
---|
10 | description Python interface to the wxWindows cross platform GUI |
---|
11 | long_description wxPython is a GUI toolkit for the Python programming \ |
---|
12 | language. It allows Python programmers to create \ |
---|
13 | programs with a robust, highly functional graphical \ |
---|
14 | user interface, simply and easily. It is implemented \ |
---|
15 | as a Python extension module (native code) that wraps \ |
---|
16 | the popular wxWindows cross platform GUI library, \ |
---|
17 | which is written in C++. |
---|
18 | |
---|
19 | homepage http://www.wxpython.org/ |
---|
20 | master_sites sourceforge:wxpython |
---|
21 | distname wxPython-src-${version} |
---|
22 | use_bzip2 yes |
---|
23 | checksums sha1 0947c74762d1419f503d19b8b5fe4ac7c81b9cc6 |
---|
24 | #patchfiles patch-config.py |
---|
25 | |
---|
26 | depends_lib port:python25 \ |
---|
27 | port:wxWidgets |
---|
28 | |
---|
29 | worksrcdir ${distname}/wxPython |
---|
30 | |
---|
31 | extract.post_args "| tar -xf - ${worksrcdir} ${distname}/docs" |
---|
32 | |
---|
33 | use_configure no |
---|
34 | |
---|
35 | build.env UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx-devel/bin:$env(PATH)" |
---|
36 | build.cmd ${prefix}/bin/python2.5 setup.py |
---|
37 | build.target build |
---|
38 | |
---|
39 | destroot.env UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx-devel/bin:$env(PATH)" |
---|
40 | destroot.cmd ${build.cmd} |
---|
41 | destroot.destdir --prefix=${prefix} --root=${destroot} |
---|
42 | |
---|
43 | post-destroot { |
---|
44 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/ |
---|
45 | file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name} |
---|
46 | file copy ${worksrcpath}/samples \ |
---|
47 | ${destroot}${prefix}/share/doc/${name}/examples |
---|
48 | } |
---|
49 | |
---|
50 | livecheck.check regex |
---|
51 | livecheck.url ${homepage} |
---|
52 | livecheck.regex wxPython (2\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+) |
---|