Changeset View
Changeset View
Standalone View
Standalone View
science/py-scikit-learn/Makefile
# Created by: Dmitry Sivachenko <demon@FreeBSD.org> | # Created by: Dmitry Sivachenko <demon@FreeBSD.org> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= scikit-learn | PORTNAME= scikit-learn | ||||
DISTVERSION= 0.22 | DISTVERSION= 0.22 | ||||
PORTREVISION= 1 | |||||
CATEGORIES= science python | CATEGORIES= science python | ||||
MASTER_SITES= CHEESESHOP | MASTER_SITES= CHEESESHOP | ||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||||
MAINTAINER= wen@FreeBSD.org | MAINTAINER= wen@FreeBSD.org | ||||
COMMENT= Machine learning algorithms for python | COMMENT= Machine learning algorithms for python | ||||
LICENSE= BSD3CLAUSE | LICENSE= BSD3CLAUSE | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
BUILD_DEPENDS= ${PYNUMPY} \ | BUILD_DEPENDS= ${PYNUMPY} \ | ||||
${PYTHON_PKGNAMEPREFIX}joblib>=0.11.0:devel/py-joblib@${PY_FLAVOR} \ | ${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>=0.17.0:science/py-scipy@${PY_FLAVOR} | ||||
LIB_DEPENDS= libomp.so:devel/openmp | |||||
RUN_DEPENDS:= ${BUILD_DEPENDS} | RUN_DEPENDS:= ${BUILD_DEPENDS} | ||||
USES= fortran python:3.5+ localbase | USES= fortran python:3.5+ localbase | ||||
USE_PYTHON= distutils autoplist cython | USE_PYTHON= distutils autoplist cython | ||||
POST_PLIST= fix-plist | POST_PLIST= fix-plist | ||||
fix-plist: # https://github.com/scikit-learn/scikit-learn/issues/12681 | fix-plist: # https://github.com/scikit-learn/scikit-learn/issues/12681 | ||||
@${REINPLACE_CMD} -e "s|lib/python.*/sklearn/datasets/tests/data/openml$$||" ${TMPPLIST} | @${REINPLACE_CMD} -e "s|lib/python.*/sklearn/datasets/tests/data/openml$$||" ${TMPPLIST} | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |