# -*- 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 114824 2013-12-16 18:25:31Z aronnax@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0

set realname        astroML

name                py-${realname}
version             0.2
categories-append   science
license             BSD
platforms           darwin
maintainers         aronnax openmaintainer

python.versions     26 27

description         tools for machine learning and data mining in astronomy

long_description    AstroML is a Python module for machine learning and data \
                    mining built on numpy, scipy, scikit-learn, and \
                    matplotlib, and distributed under the 3-Clause BSD \
                    license. It contains a growing library of statistical and \
                    machine learning routines for analyzing astronomical data \
                    in python, loaders for several open astronomical datasets, \
                    and a large suite of examples of analyzing and visualizing \
                    astronomical datasets.

homepage            http://www.astroml.org
master_sites        http://pypi.python.org/packages/source/[string index ${realname} 0]/${realname}
distname            ${realname}-${version}

checksums           md5     85f558368546660564f20b30efafb024 \
                    sha1    fab489b9f639ada858c8621d58d3a17573898170 \
                    rmd160  bee73b9aa6b5e5d09dec684563b4142e891941b9

if {${name} eq ${subport}} {
    livecheck.type      regex
    livecheck.url       http://pypi.python.org/pypi?:action=doap&name=${realname}
    livecheck.regex     {<release><Version><revision>([^<]+)</revision></Version></release>}
} else {
    depends_lib-append \
                    port:py${python.version}-numpy \
                    port:py${python.version}-scipy \
                    port:py${python.version}-matplotlib \
                    port:py${python.version}-scikit-learn \
                    port:py${python.version}-astropy

    livecheck.type  none
}
