1 | # -*- 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 |
---|
2 | # $Id: Portfile 153350 2016-09-29 06:52:44Z stromnov@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup python 1.0 |
---|
6 | |
---|
7 | name py-scikit-learn |
---|
8 | version 0.18 |
---|
9 | revision 0 |
---|
10 | categories-append science |
---|
11 | platforms darwin |
---|
12 | license BSD |
---|
13 | |
---|
14 | python.versions 26 27 33 34 35 |
---|
15 | |
---|
16 | maintainers stromnov openmaintainer |
---|
17 | |
---|
18 | description Easy-to-use and general-purpose machine learning in Python |
---|
19 | |
---|
20 | long_description Scikit-learn integrates machine learning algorithms \ |
---|
21 | in the tightly-knit scientific Python world, building upon \ |
---|
22 | numpy, scipy, and matplotlib. As a machine-learning module, \ |
---|
23 | it provides versatile tools for data mining and analysis \ |
---|
24 | in any field of science and engineering. |
---|
25 | |
---|
26 | homepage http://scikit-learn.org/ |
---|
27 | master_sites pypi:[string index ${python.rootname} 0]/${python.rootname} |
---|
28 | |
---|
29 | distname ${python.rootname}-${version} |
---|
30 | |
---|
31 | checksums rmd160 db3c0fb457106661d5476adbf56893d78d70eb0a \ |
---|
32 | sha256 240009789d6495240b332e059cbd2499f4d2981c93873983c9e1d5189f90315f |
---|
33 | |
---|
34 | if {${name} ne ${subport}} { |
---|
35 | # scikit-learn package requires Python 2.6, 2.7 or 3.4+ |
---|
36 | if {${python.version} == 33} { |
---|
37 | version 0.14.1 |
---|
38 | revision 1 |
---|
39 | distname scikit-learn-${version} |
---|
40 | checksums rmd160 a372e7d1e8eb09be6fd1b4d791f05e049f5a87f4 \ |
---|
41 | sha256 34821b8f460bdb7aba8eb882353bacbd01671bfb8057649ffcdce7f7ffa4a21d |
---|
42 | # Stealth update for 0.14.1 |
---|
43 | dist_subdir ${name}/${version}_1 |
---|
44 | } elseif {${python.version} == 26} { |
---|
45 | version 0.16.1 |
---|
46 | revision 0 |
---|
47 | distname scikit-learn-${version} |
---|
48 | checksums rmd160 eb47180da94eac22689ccd3464c9ba5eb0ae216c \ |
---|
49 | sha256 c0721e295056c95c7002e05726f2bd271a7923e88bdeab34a2b60aac2b0ee6e4 |
---|
50 | } |
---|
51 | |
---|
52 | depends_build-append \ |
---|
53 | port:py${python.version}-setuptools |
---|
54 | depends_lib-append port:py${python.version}-numpy \ |
---|
55 | port:py${python.version}-scipy |
---|
56 | |
---|
57 | livecheck.type none |
---|
58 | } else { |
---|
59 | livecheck.type pypi |
---|
60 | } |
---|