# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 118342 2014-03-31 16:54:51Z aronnax@macports.org $

PortSystem          1.0
PortGroup           python 1.0

set realname        emcee
name                py-${realname}
version             2.0.0
maintainers         aronnax openmaintainer

categories-append   science math
description         affine-invariant ensemble MCMC sampling
long_description    emcee is a stable, well tested Python implementation of \
                    the affine-invariant ensemble sampler for Markov chain \
                    Monte Carlo (MCMC) proposed by Goodman & Weare (2010). The \
                    code is open source and has already been used in several \
                    published projects in the Astrophysics literature.
homepage            http://dan.iel.fm/emcee/
master_sites        http://pypi.python.org/packages/source/[string index ${realname} 0]/${realname}/
distname            ${realname}-${version}

platforms           darwin
supported_archs     noarch
license             MIT

checksums           md5     25e064393b5be44c5ccdf5522c69a70a \
                    rmd160  8c66e4e8bf2b5ad500f3f946f8bea2f0c1ab0bb6 \
                    sha256  75edb32374afab669877846bd57fc1990a1f48958614b3d349362a2e7110b429

python.versions     26 27 32 33

if {${name} eq ${subport}} {
    livecheck.type  regex
    livecheck.regex [format "%s-%s" ${realname} {(\d+(\.\d+)*)}]
    livecheck.url   http://pypi.python.org/pypi/${realname}/
} else {
    depends_build-append \
                    port:py${python.version}-setuptools

    depends_lib-append \
                    port:py${python.version}-acor \
                    port:py${python.version}-numpy

    livecheck.type  none
}
