# -*- 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 142914 2015-11-27 14:03:58Z aronnax@macports.org $

PortSystem          1.0
PortGroup           python 1.0
PortGroup           select 1.0

set realname        astroML_addons

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

python.versions     26 27 33 34

description         performance add-ons for the astroML package

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. This package provides faster C \
                    implementations of some algorithms in astroML.

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

checksums           md5     9efd34f180766fbb3c58f989fd87e254 \
                    sha1    a2dfd11a9dbaf52f6b88cd8e5ed8ce579a87cb4f \
                    rmd160  b4d642a073c846bd66c902ada33079afd2abdd70

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

    livecheck.type  none
}
