# -*- 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 52422 2009-06-16 05:27:00Z snc@macports.org $

PortSystem          1.0
PortGroup           python25 1.0

name                py25-igraph
version             0.5.2
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     d7c94b8823407a95d8113cbf907c5c56 \
                    sha1    bbd0f40e81f1a52ba12466491c89a225b947b00e \
                    rmd160  f7fbbe70131c7f38c3a3e6412d83321b5775c800

platforms           darwin

depends_lib         port:igraph \
                    port:py25-setuptools

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.check     regex
livecheck.url       ${master_sites}
livecheck.regex     "python-igraph-(\\d+\\.\\d+(\\.\\d+)?)"
