# -*- 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 107392 2013-06-27 02:13:19Z jmr@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-scikit-learn
version             0.13.1
revision            1
categories-append   science
platforms           darwin
license             BSD

python.versions     26 27 32

maintainers         stromnov openmaintainer

description         Easy-to-use and general-purpose machine learning in Python

long_description    Scikit-learn integrates machine learning algorithms \
                    in the tightly-knit scientific Python world, building upon \
                    numpy, scipy, and matplotlib. As a machine-learning module, \
                    it provides versatile tools for data mining and analysis \
                    in any field of science and engineering.

homepage            http://scikit-learn.org/
master_sites        http://pypi.python.org/packages/source/s/scikit-learn/

distname            scikit-learn-${version}

checksums           rmd160  1443b52f49fcc4760775c8af3b44a05ba51adf9a \
                    sha256  a6e4759a779ba792435d096c882a0d66ee29d369755c09209f1a4e50877bdc94

if {$subport != $name} {
    depends_lib-append  \
                        port:py${python.version}-numpy \
                        port:py${python.version}-scipy

    livecheck.type      none
} else {
    livecheck.type      regex
    livecheck.url       ${master_sites}
    livecheck.regex     "scikit-learn-(\\d+(?:\\.\\d+)*)${extract.suffix}"
}
