Ticket #8480: Portfile.2

File Portfile.2, 1.9 KB (added by aschenke@…, 19 years ago)

Portfile for PyQt 3.16

Line 
1# $Id: $
2
3PortSystem      1.0
4name                PyQt
5version             3.16
6revision            0
7platforms       darwin
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|-framework Python||" ${worksrcpath}/qmake.conf
31                    reinplace "s|-bundle|-bundle -flat_namespace -undefined suppress|" \
32                        ${worksrcpath}/qmake.conf
33                }
34
35configure.cmd   "echo yes | ${prefix}/bin/python2.4 configure.py \
36                     -g ${prefix}/include/qt3 -q ${prefix} -y qt-mt"
37configure.pre_args
38
39post-destroot {
40                       xinstall -m 755 -d ${destroot}/${prefix}/share/doc
41                       file copy ${worksrcpath}/doc ${destroot}/${prefix}/share/doc/${name}
42                       file copy ${worksrcpath}/examples2 ${destroot}/${prefix}/share/doc/${name}
43                       file copy ${worksrcpath}/examples3 ${destroot}/${prefix}/share/doc/${name}
44                       xinstall -m 644 -W ${worksrcpath} ChangeLog LICENSE NEWS README THANKS \
45                              ${destroot}${prefix}/share/doc/${name}
46              }