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 | revision 0 |
---|
8 | categories python graphics |
---|
9 | platforms darwin |
---|
10 | maintainers mww@macports.org jwa |
---|
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 | |
---|
20 | homepage http://www.wxpython.org/ |
---|
21 | master_sites sourceforge:wxpython |
---|
22 | distname wxPython-src-${version} |
---|
23 | use_bzip2 yes |
---|
24 | checksums sha1 0947c74762d1419f503d19b8b5fe4ac7c81b9cc6 |
---|
25 | #patchfiles patch-config.py |
---|
26 | |
---|
27 | depends_lib port:python25 \ |
---|
28 | port:wxWidgets |
---|
29 | |
---|
30 | worksrcdir ${distname}/wxPython |
---|
31 | |
---|
32 | extract.post_args "| tar -xf - ${worksrcdir} ${distname}/docs" |
---|
33 | |
---|
34 | use_configure no |
---|
35 | |
---|
36 | build.env UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx-devel/bin:$env(PATH)" |
---|
37 | build.cmd ${prefix}/bin/python2.5 setup.py |
---|
38 | build.target build |
---|
39 | |
---|
40 | destroot.env UNICODE="1" WXPORT="mac" PATH="${prefix}/lib/wx-devel/bin:$env(PATH)" |
---|
41 | destroot.cmd ${build.cmd} |
---|
42 | destroot.destdir --prefix=${prefix} --root=${destroot} |
---|
43 | |
---|
44 | post-destroot { |
---|
45 | xinstall -d -m 755 ${destroot}${prefix}/share/doc/ |
---|
46 | file copy ${worksrcpath}/docs ${destroot}${prefix}/share/doc/${name} |
---|
47 | file copy ${worksrcpath}/samples \ |
---|
48 | ${destroot}${prefix}/share/doc/${name}/examples |
---|
49 | } |
---|
50 | |
---|
51 | livecheck.check regex |
---|
52 | livecheck.url ${homepage} |
---|
53 | livecheck.regex wxPython (2\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+) |
---|