# $Id: Portfile,v 1.3 2006/06/30 04:42:38 ben Exp $

PortSystem 1.0
PortGroup python24 1.0
name             py-biggles
version          1.6.4
revision         1
categories       python
maintainers      deric at caveo.se
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 e07bc9e22d830ada274ea71bc6d12556

depends_lib      lib:libplot.2.2:plotutils port:py-numeric

post-extract {
     # edit setup.py in accordance with INSTALL so that libplot_prefix points to DarwinPorts 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"
}