source: trunk/dports/python/py25-pyqt4/Portfile @ 37929

Last change on this file since 37929 was 37929, checked in by ryandesign@…, 12 years ago

Set svn:keywords to Id on all portfiles per current guidelines

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 37929 2008-06-29 22:28:34Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            py25-pyqt4
6version         4.4.2
7platforms       macosx
8categories      python devel
9maintainers     saispo@macports.org
10description     PyQt4 is a set of Python bindings for the Qt4 toolkit
11long_description \
12                PyQt4 is a set of Python bindings for the Qt4 toolkit. The \
13                bindings are implemented as a set of Python modules: qt, \
14                qtcanvas, qtgl, qtnetwork, qtsql, qttable, qtui and qtxml, \
15                and contains 300 classes and over 5,750 functions and methods.
16homepage        http://www.riverbankcomputing.co.uk/pyqt/index.php
17master_sites    http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
18                http://pyqwt.sourceforge.net/support/
19distname        PyQt-mac-gpl-${version}
20
21checksums       md5 d9ee5b863513e27799898fcd543a4443 \
22                sha1 88e4ac07af67726f38d8c9ff5a5014c153da48f3 \
23                rmd160 24eb43818e28230258edf6e665b2fbe92b240343
24
25depends_lib     port:py25-sip port:qt4-mac
26
27#patchfiles     patch-configure.py
28
29pre-configure {
30        file copy -force ${prefix}/share/qt4-mac/mkspecs/macx-g++/qmake.conf \
31                ${worksrcpath}/qmake.conf
32
33        reinplace "s|-bundle|-bundle -flat_namespace -undefined suppress|" \
34                ${worksrcpath}/qmake.conf
35}
36
37configure.cmd   "${prefix}/bin/python2.5 configure.py \
38                -g -q ${prefix}/bin/qmake \
39                --confirm-license"
40configure.pre_args
41configure.post_args     LFLAGS="-F${prefix}/Library/Frameworks -L${prefix}/lib"
42
43test.run        yes
44test.cmd        cd qt && ${prefix}/bin/python2.5 -c 'import PyQt4'
45
46post-destroot {
47        xinstall -m 755 -d ${destroot}${prefix}/share/doc
48        file copy ${worksrcpath}/doc ${destroot}${prefix}/share/doc/${name}
49        file copy ${worksrcpath}/examples \
50                ${destroot}${prefix}/share/doc/${name}
51        xinstall -m 644 -W ${worksrcpath} \
52                ChangeLog GPL_EXCEPTION.TXT GPL_EXCEPTION_ADDENDUM.TXT \
53                LICENSE.GPL2 LICENSE.GPL3 OPENSOURCE-NOTICE.TXT NEWS README \
54                THANKS \
55                ${destroot}${prefix}/share/doc/${name}
56}
Note: See TracBrowser for help on using the repository browser.