2013-09-21 00:48:30 +02:00
|
|
|
# Created by: Dmitry Sivachenko <demon@FreeBSD.org>
|
2012-10-19 14:24:00 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= scikit-learn
|
2018-11-27 18:21:37 +01:00
|
|
|
DISTVERSION= 0.20.1
|
Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.
This includes ports
- with USE_GCC=yes or USE_GCC=any,
- with USES=fortran,
- using Mk/bsd.octave.mk which in turn features USES=fortran, and
- with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.
PR: 231590
2018-12-12 02:35:33 +01:00
|
|
|
PORTREVISION= 1
|
2012-10-19 14:24:00 +02:00
|
|
|
CATEGORIES= science python
|
2015-05-14 12:15:04 +02:00
|
|
|
MASTER_SITES= CHEESESHOP
|
2012-10-19 14:24:00 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
|
|
|
MAINTAINER= demon@FreeBSD.org
|
|
|
|
COMMENT= Machine learning algorithms for python
|
|
|
|
|
2018-10-30 10:00:15 +01:00
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2015-04-04 16:08:45 +02:00
|
|
|
BUILD_DEPENDS= ${PYNUMPY} \
|
2018-06-20 19:05:41 +02:00
|
|
|
${PYTHON_SITELIBDIR}/scipy/version.py:science/py-scipy@${PY_FLAVOR}
|
2018-11-27 18:21:37 +01:00
|
|
|
LIB_DEPENDS= libcblas.so:math/cblas
|
2015-04-04 16:19:43 +02:00
|
|
|
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
2012-10-19 14:24:00 +02:00
|
|
|
|
2014-10-24 18:50:42 +02:00
|
|
|
USES= fortran python
|
2014-10-30 12:52:48 +01:00
|
|
|
USE_PYTHON= distutils autoplist
|
2014-02-18 09:30:53 +01:00
|
|
|
|
2015-04-04 16:08:45 +02:00
|
|
|
LDFLAGS+= -shared
|
2015-04-04 16:19:43 +02:00
|
|
|
|
2018-11-27 18:21:37 +01:00
|
|
|
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}
|
|
|
|
|
2012-10-19 14:24:00 +02:00
|
|
|
.include <bsd.port.mk>
|