# $Id: Portfile 49943 2009-04-20 16:52:17Z macsforever2000@macports.org $

PortSystem       1.0

name               py25-pyqwt
version            5.1.0
revision           1
platforms          macosx
categories         python devel
maintainers        nomaintainer
description        PyQwt is a set of Python bindings for the Qwt toolkit
long_description   PyQwt is a set of Python bindings for the Qwt C++ class library which extends \
                   the Qt framework with widgets for scientific and engineering applications. It \
                   provides a widget to plot 2-dimensional data and various widgets to display \
                   and control bounded or unbounded floating point values.
homepage           http://pyqwt.sourceforge.net
master_sites       sourceforge:pyqwt
distname           PyQwt-${version}

checksums          md5    c9d662a0d4fc95cec75d3c526e4e748a \
                   sha1   d1b55e4a7400889e1d0831f8d6f3b692fc37aecb \
                   rmd160 e8bbf154a9e30894977494829bf379a807fdf1e9

depends_lib        port:qt4-mac \
                   port:qwt \
                   port:py25-numpy

worksrcdir         ${worksrcdir}/configure

configure.cmd      ${prefix}/bin/python2.5 configure.py
configure.pre_args -I ${prefix}/include -I ${prefix}/include/qwt -I ${prefix}/include/python2.5 -L ${prefix}/lib --disable-numarray --disable-numeric

build.target

post-destroot {
    # Workaround for python25 framework bug (#16334)
    move ${destroot}${frameworks_dir}/Python.framework/Versions/2.5/lib/python2.5 \
        ${destroot}${prefix}/lib/python2.5
}
