# $Id: Portfile 48920 2009-03-31 11:28:38Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python25 1.0

name             py25-biggles
version          1.6.5
revision         1
categories       python graphics math science
platforms        darwin
maintainers      macports.org:deric
description      Creates 2D scientific plots
long_description Biggles is a Python module for the creation of \
                  publication-quality 2D scientific plots.
homepage         http://biggles.sourceforge.net/
master_sites     sourceforge:biggles
distname         python2-biggles-${version}
checksums        md5     be1ba7a98cd58ce875e181bd60930b63 \
                 sha1    067f7fd2803bbdf148a29c48da10a667cf304aed \
                 rmd160  227ea00cbd73e3d2c502bd3398438fe5420559f6


depends_lib      lib:libplot.2.2:plotutils port:py25-numpy

build.target       build_ext
build.args         -I${prefix}/include

post-extract {
     # edit setup.py in accordance with INSTALL so that libplot_prefix points to MacPorts prefix
     system "sed \"s/\\/usr\\/local/[regsub -all {/} $prefix {\/}]/\" ${worksrcpath}/setup.py > ${worksrcpath}/setup.py.tmp"
     system "mv ${worksrcpath}/setup.py.tmp ${worksrcpath}/setup.py"
}
