Ticket #8480: Portfile

File Portfile, 2.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
7categories          python devel
8maintainers         darwinports@opendarwin.org
9description         PyQt is a set of Python bindings for the Qt toolkit
10long_description PyQt is a set of Python bindings for the Qt toolkit. The bindings \
11                 are implemented as a set of Python modules: qt, qtcanvas, qtgl, \
12                 qtnetwork, qtsql, qttable, qtui and qtxml, and contains 300 \
13                 classes and over 5,750 functions and methods.
14homepage         http://www.riverbankcomputing.co.uk/pyqt/index.php
15master_sites    http://www.riverbankcomputing.com/Downloads/PyQt3/GPL/
16distname        ${name}-mac-gpl-${version}
17
18checksums           md5 46deec16bad11e3f216b19fd5e3d1f9b
19
20depends_lib     port:py-sip \
21                port:qt3-mac
22               
23patchfiles      patch-configure.py               
24               
25configure.cmd   "echo yes | ${prefix}/bin/python2.4 configure.py \
26                     -g ${prefix}/include/qt3 -q ${prefix} -y qt"
27configure.pre_args                     
28
29post-configure  {
30                    reinplace "s|${prefix}/mkspecs|${prefix}/share/qt3/mkspecs|g" \
31                        ${worksrcpath}/pylupdate3/Makefile
32                    reinplace "s|${prefix}/mkspecs|${prefix}/share/qt3/mkspecs|g" \
33                        ${worksrcpath}/pyuic3/Makefile
34                    reinplace "s|${prefix}/mkspecs|${prefix}/share/qt3/mkspecs|g" \
35                        ${worksrcpath}/qt/Makefile
36                    reinplace "s|${prefix}/mkspecs|${prefix}/share/qt3/mkspecs|g" \
37                        ${worksrcpath}/qtcanvas/Makefile
38                    reinplace "s|${prefix}/mkspecs|${prefix}/share/qt3/mkspecs|g" \
39                        ${worksrcpath}/qtgl/Makefile                       
40                    reinplace "s|${prefix}/mkspecs|${prefix}/share/qt3/mkspecs|g" \
41                        ${worksrcpath}/qtnetwork/Makefile
42                    reinplace "s|${prefix}/mkspecs|${prefix}/share/qt3/mkspecs|g" \
43                        ${worksrcpath}/qtsql/Makefile
44                    reinplace "s|${prefix}/mkspecs|${prefix}/share/qt3/mkspecs|g" \
45                        ${worksrcpath}/qttable/Makefile
46                    reinplace "s|${prefix}/mkspecs|${prefix}/share/qt3/mkspecs|g" \
47                        ${worksrcpath}/qtui/Makefile
48                    reinplace "s|${prefix}/mkspecs|${prefix}/share/qt3/mkspecs|g" \
49                        ${worksrcpath}/qtxml/Makefile                       
50                 }
51
52post-destroot {
53        xinstall -m 755 -d ${destroot}/${prefix}/share/doc
54        file copy ${worksrcpath}/doc ${destroot}/${prefix}/share/doc/${name}
55        file copy ${worksrcpath}/examples2 ${destroot}/${prefix}/share/doc/${name}
56        file copy ${worksrcpath}/examples3 ${destroot}/${prefix}/share/doc/${name}
57        xinstall -m 644 -W ${worksrcpath} \
58                ChangeLog LICENSE NEWS README THANKS \
59                ${destroot}${prefix}/share/doc/${name}
60}