1 | # $Id: Portfile 48858 2009-03-30 19:06:44Z macsforever2000@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name py26-pyqt4 |
---|
6 | |
---|
7 | version 4.4.4 |
---|
8 | platforms macosx |
---|
9 | categories python devel |
---|
10 | maintainers saispo |
---|
11 | description PyQt4 is a set of Python bindings for the Qt4 toolkit |
---|
12 | long_description \ |
---|
13 | PyQt4 is a set of Python bindings for the Qt4 toolkit. The \ |
---|
14 | bindings are implemented as a set of Python modules: qt, \ |
---|
15 | qtcanvas, qtgl, qtnetwork, qtsql, qttable, qtui and qtxml, \ |
---|
16 | and contains 300 classes and over 5,750 functions and methods. |
---|
17 | homepage http://www.riverbankcomputing.co.uk/software/pyqt/intro |
---|
18 | master_sites http://www.riverbankcomputing.com/static/Downloads/PyQt4/ \ |
---|
19 | http://pyqwt.sourceforge.net/support/ |
---|
20 | distname PyQt-mac-gpl-${version} |
---|
21 | |
---|
22 | checksums md5 b4fc6142bec4dc75facf7c9a8b556c1f \ |
---|
23 | sha1 3b761cb5cca18aa9d800c6b50e0ef619166fc7af \ |
---|
24 | rmd160 3cfee99c534a9b1a9374a97dc31414f6dde8234b |
---|
25 | |
---|
26 | depends_lib port:py26-sip port:qt4-mac |
---|
27 | |
---|
28 | #patchfiles patch-configure.py |
---|
29 | |
---|
30 | set qt_dir ${prefix}/libexec/qt4-mac |
---|
31 | |
---|
32 | pre-configure { |
---|
33 | file copy -force ${qt_dir}/mkspecs/macx-g++/qmake.conf \ |
---|
34 | ${worksrcpath}/qmake.conf |
---|
35 | |
---|
36 | reinplace "s|-bundle|-bundle -flat_namespace -undefined suppress|" \ |
---|
37 | ${worksrcpath}/qmake.conf |
---|
38 | } |
---|
39 | |
---|
40 | use_configure yes |
---|
41 | |
---|
42 | configure.cmd "${prefix}/bin/python2.6 configure.py \ |
---|
43 | -g -q ${qt_dir}/bin/qmake \ |
---|
44 | --confirm-license" |
---|
45 | configure.pre_args |
---|
46 | configure.post_args LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib" |
---|
47 | |
---|
48 | build.target all |
---|
49 | |
---|
50 | test.run yes |
---|
51 | test.cmd cd qt && ${prefix}/bin/python2.6 -c 'import PyQt4' |
---|
52 | |
---|
53 | post-destroot { |
---|
54 | xinstall -m 755 -d ${destroot}${prefix}/share/doc |
---|
55 | file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name} |
---|
56 | file copy ${worksrcpath}/examples \ |
---|
57 | ${destroot}${prefix}/share/doc/${name} |
---|
58 | xinstall -m 644 -W ${worksrcpath} \ |
---|
59 | ChangeLog GPL_EXCEPTION.TXT GPL_EXCEPTION_ADDENDUM.TXT \ |
---|
60 | LICENSE.GPL2 LICENSE.GPL3 OPENSOURCE-NOTICE.TXT NEWS README \ |
---|
61 | THANKS \ |
---|
62 | ${destroot}${prefix}/share/doc/${name} |
---|
63 | |
---|
64 | # Workaround for python25 framework bug (#16334) |
---|
65 | # move ${destroot}${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6 \ |
---|
66 | # ${destroot}${prefix}/lib/python2.6 |
---|
67 | } |
---|