# -*- 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 75461 2011-01-25 19:40:30Z snc@macports.org $

PortSystem          1.0
PortGroup           python27 1.0

name                py27-igraph
version             0.5.4
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}
dist_subdir         python/${distname}/1/

checksums           sha1    ed9ebdb1dd29795df95b398937ef9ba173413979 \
                    rmd160  bae4195e4780e74e777beafd98898a2893fd2ac7

platforms           darwin

depends_lib         port:igraph \
                    port:py27-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+)?)"
