# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 65907 2010-04-02 22:08:22Z jmr@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-igraph
version             0.5.3
categories-append   math
maintainers         snc openmaintainer
description         Python interface to the igraph library

long_description    Python interface to the igraph high performance \
                    graph library

homepage            http://pypi.python.org/pypi/python-igraph/
master_sites        http://pypi.python.org/packages/source/p/python-igraph/

distname            python-igraph-${version}

checksums           md5     9e9b5d71faf7bc7723116842f7bd7ce5 \
                    sha1    949583ef7ce5f71017aa109e1b015d66e2db2ae4 \
                    rmd160  1e414c53b659bd613de4c5ff1505d376cc18bb16

platforms           darwin

depends_lib         port:igraph \
                    port:py25-distribute

patchfiles          patch-setup.cfg.diff \
                    patch-setup.py.diff

post-patch {
	reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/setup.cfg
	reinplace s|@PREFIX@|${prefix}|g ${worksrcpath}/setup.py
}

livecheck.type      regex
livecheck.url       ${master_sites}
livecheck.regex     "python-igraph-(\\d+\\.\\d+(\\.\\d+)?)"
