/
Portfile
66 lines (51 loc) · 2.86 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# -*- 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
PortSystem 1.0
PortGroup python 1.0
PortGroup compiler_wrapper 1.0
name py-scikit-learn
version 1.4.1.post1
revision 0
categories-append science
license BSD
python.versions 38 39 310 311 312
maintainers {stromnov @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 https://scikit-learn.org/
checksums rmd160 f31d7a07926e67dd2457957316ce56a690ca2571 \
sha256 93d3d496ff1965470f9977d05e5ec3376fb1e63b10e4fda5e39d23c2d8969a30 \
size 7743688
if {${name} ne ${subport}} {
depends_build-append \
path:bin/cython-${python.branch}:py${python.version}-cython
depends_lib-append port:py${python.version}-numpy \
port:py${python.version}-scipy \
port:py${python.version}-joblib \
port:py${python.version}-threadpoolctl
if {${python.version} eq 38} {
version 1.3.2
revision 0
checksums rmd160 3f496523de9ba2f515836b92f4d8ca94375ba625 \
sha256 a2f54c76accc15a34bfb9066e6c7a56c1e7235dda5762b990792330b52ccfb05 \
size 7510251
python.pep517 no
}
compiler.openmp_version 2.5
depends_lib-append port:libomp
python.add_archflags no
build.env-append "CPPFLAGS=${configure.cppflags} -I${prefix}/include/libomp -Xpreprocessor -fopenmp" \
"CFLAGS=${configure.cc_archflags} -I${prefix}/include/libomp" \
"CXXFLAGS=${configure.cxx_archflags} -I${prefix}/include/libomp" \
"LDFLAGS=${configure.ld_archflags} -L${prefix}/lib/libomp -lomp" \
DYLD_LIBRARY_PATH=${prefix}/lib/libomp
destroot.env-append "CPPFLAGS=${configure.cppflags} -I${prefix}/include/libomp -Xpreprocessor -fopenmp" \
"CFLAGS=${configure.cc_archflags} -I${prefix}/include/libomp" \
"CXXFLAGS=${configure.cxx_archflags} -I${prefix}/include/libomp" \
"LDFLAGS=${configure.ld_archflags} -L${prefix}/lib/libomp -lomp" \
DYLD_LIBRARY_PATH=${prefix}/lib/libomp
livecheck.type none
}