| 1 | # $Id$ |
|---|
| 2 | |
|---|
| 3 | PortSystem 1.0 |
|---|
| 4 | name py-pyqt4 |
|---|
| 5 | version 4.3.3 |
|---|
| 6 | platforms macosx |
|---|
| 7 | categories python devel |
|---|
| 8 | maintainers Tim Stoop <tim.stoop@gmail.com> |
|---|
| 9 | description PyQt4 is a set of Python bindings for the Qt4 toolkit |
|---|
| 10 | long_description \ |
|---|
| 11 | PyQt4 is a set of Python bindings for the Qt4 toolkit. The \ |
|---|
| 12 | bindings are implemented as a set of Python modules: qt, \ |
|---|
| 13 | qtcanvas, qtgl, qtnetwork, qtsql, qttable, qtui and qtxml, \ |
|---|
| 14 | and contains 300 classes and over 5,750 functions and methods. |
|---|
| 15 | homepage http://www.riverbankcomputing.co.uk/pyqt/index.php |
|---|
| 16 | master_sites http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \ |
|---|
| 17 | http://pyqwt.sourceforge.net/support/ |
|---|
| 18 | distname PyQt-mac-gpl-${version} |
|---|
| 19 | |
|---|
| 20 | checksums md5 ebd467f36c49082e8f0258a7288bf344 |
|---|
| 21 | |
|---|
| 22 | depends_lib port:py-sip port:qt4-mac |
|---|
| 23 | |
|---|
| 24 | #patchfiles patch-configure.py |
|---|
| 25 | |
|---|
| 26 | pre-configure { |
|---|
| 27 | file copy -force ${prefix}/share/qt4/mkspecs/macx-g++/qmake.conf \ |
|---|
| 28 | ${worksrcpath}/qmake.conf |
|---|
| 29 | |
|---|
| 30 | reinplace "s|-bundle|-bundle -flat_namespace -undefined suppress|" \ |
|---|
| 31 | ${worksrcpath}/qmake.conf |
|---|
| 32 | } |
|---|
| 33 | |
|---|
| 34 | configure.cmd "${prefix}/bin/python configure.py \ |
|---|
| 35 | -g -q ${prefix}/bin/qmake \ |
|---|
| 36 | --confirm-license" |
|---|
| 37 | configure.pre_args |
|---|
| 38 | configure.post_args LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib" |
|---|
| 39 | |
|---|
| 40 | test.run yes |
|---|
| 41 | test.cmd cd qt && ${prefix}/bin/python2.4 -c 'import PyQt4' |
|---|
| 42 | |
|---|
| 43 | post-destroot { |
|---|
| 44 | xinstall -m 755 -d ${destroot}${prefix}/share/doc |
|---|
| 45 | file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name} |
|---|
| 46 | file copy ${worksrcpath}/examples \ |
|---|
| 47 | ${destroot}${prefix}/share/doc/${name} |
|---|
| 48 | xinstall -m 644 -W ${worksrcpath} \ |
|---|
| 49 | ChangeLog LICENSE NEWS README THANKS \ |
|---|
| 50 | ${destroot}${prefix}/share/doc/${name} |
|---|
| 51 | } |
|---|