2019-12-14 23:12:32 +01:00
PORTNAME = xgboost
DISTVERSIONPREFIX = v
2023-06-19 07:11:18 +02:00
DISTVERSION = 1.7.6
2019-12-14 23:12:32 +01:00
CATEGORIES = misc # machine-learning
PKGNAMEPREFIX = ${ PYTHON_PKGNAMEPREFIX }
MAINTAINER = yuri@FreeBSD.org
COMMENT = Scalable, Portable and Distributed Gradient Boosting ( GBDT, GBRT, GBM)
2022-09-07 23:06:12 +02:00
WWW = https://xgboost.ai/
2019-12-14 23:12:32 +01:00
LICENSE = APACHE20
LICENSE_FILE = ${ WRKSRC } /../LICENSE
2022-09-09 22:21:11 +02:00
BUILD_DEPENDS = cmake:devel/cmake-core
2019-12-14 23:12:32 +01:00
LIB_DEPENDS = libdmlc.so:devel/dmlc-core \
2021-04-20 22:47:07 +02:00
libxgboost.so:misc/xgboost
2019-12-14 23:12:32 +01:00
RUN_DEPENDS = ${ PYNUMPY } \
${ PYTHON_PKGNAMEPREFIX } scipy>0:science/py-scipy@${ PY_FLAVOR }
2023-02-18 11:08:35 +01:00
TEST_DEPENDS = ${ PYTHON_PKGNAMEPREFIX } scikit-learn>0:science/py-scikit-learn@${ PY_FLAVOR }
2019-12-14 23:12:32 +01:00
2023-06-15 00:00:28 +02:00
USES = compiler:c11 python localbase:ldflags
2022-11-05 05:11:49 +01:00
USE_PYTHON = distutils pytest # Python tests are broken because py-scikit-learn is missing the py-threadpoolctl dependency which is also currently broken
2019-12-14 23:12:32 +01:00
USE_LDCONFIG = yes
2021-04-20 22:47:07 +02:00
USE_GITHUB = yes
GH_ACCOUNT = dmlc
2019-12-14 23:12:32 +01:00
2021-04-20 22:47:07 +02:00
WRKSRC_SUBDIR = python-package
2019-12-14 23:12:32 +01:00
2021-04-20 22:47:07 +02:00
PYDISTUTILS_INSTALLARGS = --use-system-libxgboost # this is ignored so that setup.py has to be patched, see https://github.com/dmlc/xgboost/issues/6879
2020-10-02 07:41:11 +02:00
2021-04-20 22:47:07 +02:00
NO_ARCH = yes
2020-10-02 07:41:11 +02:00
2022-08-29 01:15:49 +02:00
TEST_ENV = ${ MAKE_ENV } PYTHONPATH = ${ STAGEDIR } ${ PYTHONPREFIX_SITELIBDIR }
2022-11-05 05:11:49 +01:00
TEST_WRKSRC = ${ WRKSRC } /../tests/python
2021-04-20 22:47:07 +02:00
2022-03-25 14:33:00 +01:00
post-install :
${ PYTHON_CMD } -m compileall -d ${ PYTHON_SITELIBDIR } ${ STAGEDIR } ${ PYTHON_SITELIBDIR }
2021-04-20 22:47:07 +02:00
. i n c l u d e < b s d . p o r t . m k >