Ticket #8480: Portfile.3

File Portfile.3, 1.9 KB (added by aschenke@…, 18 years ago)

Portfile for PyQt 3.16

Line 
1# $Id: $
2
3PortSystem      1.0
4name                PyQt
5version             3.16
6revision            0
7platforms       macosx
8categories          python devel
9maintainers         darwinports@opendarwin.org
10description         PyQt is a set of Python bindings for the Qt toolkit
11long_description PyQt is a set of Python bindings for the Qt toolkit. The bindings \
12                 are implemented as a set of Python modules: qt, qtcanvas, qtgl, \
13                 qtnetwork, qtsql, qttable, qtui and qtxml, and contains 300 \
14                 classes and over 5,750 functions and methods.
15homepage         http://www.riverbankcomputing.co.uk/pyqt/index.php
16master_sites    http://www.riverbankcomputing.com/Downloads/PyQt3/GPL/
17distname        ${name}-mac-gpl-${version}
18
19checksums           md5 46deec16bad11e3f216b19fd5e3d1f9b
20
21depends_lib     port:py-sip \
22                port:qt3-mac
23               
24patchfiles      patch-configure.py             
25
26pre-configure   {
27                    file copy -force ${prefix}/share/qt3/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   "echo yes | ${prefix}/bin/python configure.py \
35                     -g ${prefix}/include/qt3 -q ${prefix} -y qt-mt"
36configure.pre_args
37
38post-destroot {
39                       xinstall -m 755 -d ${destroot}/${prefix}/share/doc
40                       file copy ${worksrcpath}/doc ${destroot}/${prefix}/share/doc/${name}
41                       file copy ${worksrcpath}/examples2 ${destroot}/${prefix}/share/doc/${name}
42                       file copy ${worksrcpath}/examples3 ${destroot}/${prefix}/share/doc/${name}
43                       xinstall -m 644 -W ${worksrcpath} ChangeLog LICENSE NEWS README THANKS \
44                              ${destroot}${prefix}/share/doc/${name}
45              }