1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/science/py-scikit-learn/Makefile
Ruslan Makhmatkhanov a56c4e1166 science/py-scikit-learn: update to 0.20.2
This release fixes build with python3.7.

Relevant upstream bug report:
https://github.com/scikit-learn/scikit-learn/issues/12671

PR:		234163
Approved by:	demon (maintainer)
2018-12-20 13:12:31 +00:00

32 lines
780 B
Makefile

# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
# $FreeBSD$
PORTNAME= scikit-learn
DISTVERSION= 0.20.2
CATEGORIES= science python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= demon@FreeBSD.org
COMMENT= Machine learning algorithms for python
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ${PYNUMPY} \
${PYTHON_SITELIBDIR}/scipy/version.py:science/py-scipy@${PY_FLAVOR}
LIB_DEPENDS= libcblas.so:math/cblas
RUN_DEPENDS:= ${BUILD_DEPENDS}
USES= fortran python
USE_PYTHON= distutils autoplist
LDFLAGS+= -shared
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}
.include <bsd.port.mk>