Ticket #19008: Portfile

File Portfile, 2.1 KB (added by chepra@…, 15 years ago)
Line 
1# $Id: Portfile 48858 2009-03-30 19:06:44Z macsforever2000@macports.org $
2
3PortSystem      1.0
4
5name            py26-pyqt4
6
7version         4.4.4
8platforms       macosx
9categories      python devel
10maintainers     saispo
11description     PyQt4 is a set of Python bindings for the Qt4 toolkit
12long_description \
13                PyQt4 is a set of Python bindings for the Qt4 toolkit. The \
14                bindings are implemented as a set of Python modules: qt, \
15                qtcanvas, qtgl, qtnetwork, qtsql, qttable, qtui and qtxml, \
16                and contains 300 classes and over 5,750 functions and methods.
17homepage        http://www.riverbankcomputing.co.uk/software/pyqt/intro
18master_sites    http://www.riverbankcomputing.com/static/Downloads/PyQt4/ \
19                http://pyqwt.sourceforge.net/support/
20distname        PyQt-mac-gpl-${version}
21
22checksums md5    b4fc6142bec4dc75facf7c9a8b556c1f \
23          sha1   3b761cb5cca18aa9d800c6b50e0ef619166fc7af \
24          rmd160 3cfee99c534a9b1a9374a97dc31414f6dde8234b
25
26depends_lib     port:py26-sip port:qt4-mac
27
28#patchfiles     patch-configure.py
29
30set qt_dir      ${prefix}/libexec/qt4-mac
31
32pre-configure {
33        file copy -force ${qt_dir}/mkspecs/macx-g++/qmake.conf \
34                ${worksrcpath}/qmake.conf
35
36        reinplace "s|-bundle|-bundle -flat_namespace -undefined suppress|" \
37                ${worksrcpath}/qmake.conf
38}
39
40use_configure   yes
41
42configure.cmd   "${prefix}/bin/python2.6 configure.py \
43                -g -q ${qt_dir}/bin/qmake \
44                --confirm-license"
45configure.pre_args
46configure.post_args     LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
47
48build.target    all
49
50test.run        yes
51test.cmd        cd qt && ${prefix}/bin/python2.6 -c 'import PyQt4'
52
53post-destroot {
54        xinstall -m 755 -d ${destroot}${prefix}/share/doc
55        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
56        file copy ${worksrcpath}/examples \
57                ${destroot}${prefix}/share/doc/${name}
58        xinstall -m 644 -W ${worksrcpath} \
59                ChangeLog GPL_EXCEPTION.TXT GPL_EXCEPTION_ADDENDUM.TXT \
60                LICENSE.GPL2 LICENSE.GPL3 OPENSOURCE-NOTICE.TXT NEWS README \
61                THANKS \
62                ${destroot}${prefix}/share/doc/${name}
63
64    # Workaround for python25 framework bug (#16334)
65#       move ${destroot}${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6 \
66#               ${destroot}${prefix}/lib/python2.6
67}