2019-12-14 23:12:32 +01:00
|
|
|
PORTNAME= xgboost
|
|
|
|
DISTVERSIONPREFIX= v
|
2022-01-24 19:20:16 +01:00
|
|
|
DISTVERSION= 1.5.2
|
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)
|
|
|
|
|
|
|
|
LICENSE= APACHE20
|
|
|
|
LICENSE_FILE= ${WRKSRC}/../LICENSE
|
|
|
|
|
2020-05-25 21:23:03 +02:00
|
|
|
BUILD_DEPENDS= cmake:devel/cmake
|
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}
|
2021-04-20 22:47:07 +02:00
|
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
|
2019-12-14 23:12:32 +01:00
|
|
|
|
2020-11-30 16:44:09 +01:00
|
|
|
USES= compiler:c11 python:3.5+ localbase:ldflags
|
2019-12-14 23:12:32 +01:00
|
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
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
|
|
|
|
2021-04-20 22:47:07 +02:00
|
|
|
POST_PLIST= fix-plist
|
2021-03-14 17:21:42 +01:00
|
|
|
|
2020-05-25 21:23:03 +02:00
|
|
|
fix-plist: # https://github.com/dmlc/xgboost/issues/5705
|
2021-04-20 23:58:59 +02:00
|
|
|
@${REINPLACE_CMD} 's|.*libxgboost${PYTHON_EXT_SUFFIX}.so$$||' ${TMPPLIST}
|
2021-04-20 22:47:07 +02:00
|
|
|
|
|
|
|
do-test: # tests fail w/out CUDA: https://github.com/dmlc/xgboost/issues/6881
|
|
|
|
@cd ${WRKSRC}/.. && ${PYTHON_CMD} -m pytest
|
2019-12-14 23:12:32 +01:00
|
|
|
|
2021-04-20 22:47:07 +02:00
|
|
|
.include <bsd.port.mk>
|