# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
# $Id: Portfile 92901 2012-05-10 14:07:36Z stromnov@macports.org $

PortSystem          1.0
PortGroup           python 1.0

name                py-scikits-learn
version             0.11
revision            0
categories-append   science
license             BSD
platforms           darwin

maintainers         stromnov openmaintainer

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

long_description    scikits.learn is a Python module integrating classique \
                    machine learning algorithmes in the tightly-nit world of \
                    scientific Python packages (numpy, scipy, matplotlib).

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

distname            scikit-learn-${version}

checksums           rmd160  3d439d1b1abb00e10c0e02d5bce0f0193746af42 \
                    sha256  531ab0b08c6be2b2bf70ccb005b39bd3f84c854e40d6f23bf9a365c028868f0d

python.default_version  27
python.versions     26 27

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

    post-destroot {
        # scikits/__init__.py is provided by scikits-module
        file delete ${destroot}${python.pkgd}/scikits/__init__.py
    }
}

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