Ticket #14733: Portfile

File Portfile, 1.6 KB (added by tim.stoop@…, 16 years ago)

Portfile for py-pyqt4

Line 
1# $Id$
2
3PortSystem      1.0
4name            py-pyqt4
5version         4.3.3
6platforms       macosx
7categories      python devel
8maintainers     Tim Stoop <tim.stoop@gmail.com>
9description     PyQt4 is a set of Python bindings for the Qt4 toolkit
10long_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.
15homepage        http://www.riverbankcomputing.co.uk/pyqt/index.php
16master_sites    http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
17                http://pyqwt.sourceforge.net/support/
18distname        PyQt-mac-gpl-${version}
19
20checksums       md5 ebd467f36c49082e8f0258a7288bf344
21
22depends_lib     port:py-sip port:qt4-mac
23
24#patchfiles     patch-configure.py
25
26pre-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
34configure.cmd   "${prefix}/bin/python configure.py \
35                -g -q ${prefix}/bin/qmake \
36                --confirm-license"
37configure.pre_args
38configure.post_args     LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
39
40test.run        yes
41test.cmd        cd qt && ${prefix}/bin/python2.4 -c 'import PyQt4'
42
43post-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}