blob: 8e3940cce6d023df246aabe2196bb95d6a8d522c (
plain) (
blame)
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
|
PORTNAME= scikit-learn
DISTVERSION= 1.1.2
PORTREVISION= 1
CATEGORIES= science python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= wen@FreeBSD.org
COMMENT= Machine learning algorithms for python
WWW= https://scikit-learn.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}joblib>0:devel/py-joblib@${PY_FLAVOR} \
${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scipy>=1.3.2:science/py-scipy@${PY_FLAVOR}
# threadpoolctl should also be here
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= fortran python:3.7+ localbase
USE_PYTHON= distutils autoplist cython
POST_PLIST= fix-plist
fix-plist: # https://github.com/scikit-learn/scikit-learn/issues/12681
@${REINPLACE_CMD} -e "s|lib/python.*/sklearn/datasets/tests/data/openml$$||" ${TMPPLIST}
post-install: # strip binaries
@${STRIP_CMD} \
${STAGEDIR}${PYTHON_SITELIBDIR}/sklearn/*.cpython*.so \
${STAGEDIR}${PYTHON_SITELIBDIR}/sklearn/*/*.cpython*.so \
${STAGEDIR}${PYTHON_SITELIBDIR}/sklearn/*/*/*.cpython*.so
.include <bsd.port.mk>
|