git: cb6e90035aea - main - science/py-scikit-learn: Update to 1.0.2

From: Wen Heping <wen_at_FreeBSD.org>
Date: Sun, 26 Dec 2021 04:32:26 UTC
The branch main has been updated by wen:

URL: https://cgit.FreeBSD.org/ports/commit/?id=cb6e90035aeab02fcea55eab1a1f70f25f622b5c

commit cb6e90035aeab02fcea55eab1a1f70f25f622b5c
Author:     Wen Heping <wen@FreeBSD.org>
AuthorDate: 2021-12-26 04:31:19 +0000
Commit:     Wen Heping <wen@FreeBSD.org>
CommitDate: 2021-12-26 04:31:19 +0000

    science/py-scikit-learn: Update to 1.0.2
    
    PR:             260647
    Reported by:    yuri@
---
 science/py-scikit-learn/Makefile | 14 +++++++++-----
 science/py-scikit-learn/distinfo |  6 +++---
 2 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/science/py-scikit-learn/Makefile b/science/py-scikit-learn/Makefile
index ca191483fc27..74ebfb63c2dc 100644
--- a/science/py-scikit-learn/Makefile
+++ b/science/py-scikit-learn/Makefile
@@ -1,8 +1,7 @@
 # Created by: Dmitry Sivachenko <demon@FreeBSD.org>
 
 PORTNAME=	scikit-learn
-DISTVERSION=	0.22
-PORTREVISION=	1
+DISTVERSION=	1.0.2
 CATEGORIES=	science python
 MASTER_SITES=	CHEESESHOP
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -14,11 +13,10 @@ LICENSE=	BSD3CLAUSE
 LICENSE_FILE=	${WRKSRC}/COPYING
 
 BUILD_DEPENDS=	${PYNUMPY} \
-		${PYTHON_PKGNAMEPREFIX}joblib>=0.11.0:devel/py-joblib@${PY_FLAVOR} \
-		${PYTHON_PKGNAMEPREFIX}scipy>=0.17.0:science/py-scipy@${PY_FLAVOR}
+		${PYTHON_PKGNAMEPREFIX}scipy>=1.1.0:science/py-scipy@${PY_FLAVOR}
 RUN_DEPENDS:=	${BUILD_DEPENDS}
 
-USES=		fortran python:3.5+ localbase
+USES=		fortran python:3.7+ localbase
 USE_PYTHON=	distutils autoplist cython
 
 POST_PLIST=	fix-plist
@@ -26,4 +24,10 @@ 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>
diff --git a/science/py-scikit-learn/distinfo b/science/py-scikit-learn/distinfo
index 718a6d940c07..b54bcd987b36 100644
--- a/science/py-scikit-learn/distinfo
+++ b/science/py-scikit-learn/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1576570322
-SHA256 (scikit-learn-0.22.tar.gz) = 314abf60c073c48a1e95feaae9f3ca47a2139bd77cebb5b877c23a45c9e03012
-SIZE (scikit-learn-0.22.tar.gz) = 6934808
+TIMESTAMP = 1640492379
+SHA256 (scikit-learn-1.0.2.tar.gz) = b5870959a5484b614f26d31ca4c17524b1b0317522199dc985c3b4256e030767
+SIZE (scikit-learn-1.0.2.tar.gz) = 6716208