Lines 1-8
Link Here
|
1 |
# Created by: Dmitry Sivachenko <demon@FreeBSD.org> |
1 |
# Created by: Dmitry Sivachenko <demon@FreeBSD.org> |
2 |
|
2 |
|
3 |
PORTNAME= scikit-learn |
3 |
PORTNAME= scikit-learn |
4 |
DISTVERSION= 0.22 |
4 |
DISTVERSION= 1.0.1 |
5 |
PORTREVISION= 1 |
|
|
6 |
CATEGORIES= science python |
5 |
CATEGORIES= science python |
7 |
MASTER_SITES= CHEESESHOP |
6 |
MASTER_SITES= CHEESESHOP |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
7 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
Lines 14-21
LICENSE= BSD3CLAUSE
Link Here
|
14 |
LICENSE_FILE= ${WRKSRC}/COPYING |
13 |
LICENSE_FILE= ${WRKSRC}/COPYING |
15 |
|
14 |
|
16 |
BUILD_DEPENDS= ${PYNUMPY} \ |
15 |
BUILD_DEPENDS= ${PYNUMPY} \ |
17 |
${PYTHON_PKGNAMEPREFIX}joblib>=0.11.0:devel/py-joblib@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}scipy>=1.1.0:science/py-scipy@${PY_FLAVOR} |
18 |
${PYTHON_PKGNAMEPREFIX}scipy>=0.17.0:science/py-scipy@${PY_FLAVOR} |
|
|
19 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
17 |
RUN_DEPENDS:= ${BUILD_DEPENDS} |
20 |
|
18 |
|
21 |
USES= fortran python:3.5+ localbase |
19 |
USES= fortran python:3.5+ localbase |
Lines 26-29
POST_PLIST= fix-plist
Link Here
|
26 |
fix-plist: # https://github.com/scikit-learn/scikit-learn/issues/12681 |
24 |
fix-plist: # https://github.com/scikit-learn/scikit-learn/issues/12681 |
27 |
@${REINPLACE_CMD} -e "s|lib/python.*/sklearn/datasets/tests/data/openml$$||" ${TMPPLIST} |
25 |
@${REINPLACE_CMD} -e "s|lib/python.*/sklearn/datasets/tests/data/openml$$||" ${TMPPLIST} |
28 |
|
26 |
|
|
|
27 |
post-install: # strip binaries |
28 |
@${STRIP_CMD} \ |
29 |
${STAGEDIR}${PYTHON_SITELIBDIR}/sklearn/*.cpython*.so \ |
30 |
${STAGEDIR}${PYTHON_SITELIBDIR}/sklearn/*/*.cpython*.so \ |
31 |
${STAGEDIR}${PYTHON_SITELIBDIR}/sklearn/*/*/*.cpython*.so |
32 |
|
29 |
.include <bsd.port.mk> |
33 |
.include <bsd.port.mk> |