freebsd-ports/misc/py-xgboost/Makefile
Yuri Victorovich b9ac891066 misc/py-xgboost: Update 1.0.1 -> 1.0.2
Reported by:	portscout
2020-03-04 08:55:38 +00:00

41 lines
935 B
Makefile

# $FreeBSD$
PORTNAME= xgboost
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.2
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
LIB_DEPENDS= libdmlc.so:devel/dmlc-core \
librabit.so:misc/xgboost
RUN_DEPENDS= ${PYNUMPY} \
${PYTHON_PKGNAMEPREFIX}scipy>0:science/py-scipy@${PY_FLAVOR}
USES= python
USE_GITHUB= yes
GH_ACCOUNT= dmlc
USE_PYTHON= distutils autoplist
USE_LDCONFIG= yes
WRKSRC_SUBDIR= python-package
MAKE_ENV+= FREEBSD_LIBRARY_PATH=${LOCALBASE}/lib
NO_ARCH= yes
POST_PLIST= fix-plist
post-install:
@${RM} ${STAGEDIR}${PREFIX}/xgboost/libxgboost.so
@${RMDIR} ${STAGEDIR}${PREFIX}/xgboost
fix-plist: # https://github.com/dmlc/xgboost/issues/5118
@${REINPLACE_CMD} '/^xgboost\/libxgboost.so$$/d' ${TMPPLIST}
.include <bsd.port.mk>