svn commit: r568400 - head/misc/py-xgboost
Kai Knoblich
kai at FreeBSD.org
Sun Mar 14 16:21:43 UTC 2021
Author: kai
Date: Sun Mar 14 16:21:42 2021
New Revision: 568400
URL: https://svnweb.freebsd.org/changeset/ports/568400
Log:
misc/py-xgboost: Fix packaging with Python 3.8
* While I'm here, level up port compliance (strip shared library).
* Bump PORTREVISION due changed package contents.
PR: 253815
Approved by: python (with hat)
Modified:
head/misc/py-xgboost/Makefile
Modified: head/misc/py-xgboost/Makefile
==============================================================================
--- head/misc/py-xgboost/Makefile Sun Mar 14 16:14:02 2021 (r568399)
+++ head/misc/py-xgboost/Makefile Sun Mar 14 16:21:42 2021 (r568400)
@@ -3,6 +3,7 @@
PORTNAME= xgboost
DISTVERSIONPREFIX= v
DISTVERSION= 1.2.1
+PORTREVISION= 1
CATEGORIES= misc # machine-learning
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -38,7 +39,10 @@ POST_PLIST= fix-plist
BROKEN_i386= undefined symbol: __atomic_load (on 11 and 12, but not on 13)
.endif
+post-install:
+ @${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/${PORTNAME}/lib/libxgboost.so
+
fix-plist: # https://github.com/dmlc/xgboost/issues/5705
- @${REINPLACE_CMD} 's|/libxgboost.so$$|/xgboost/lib/libxgboost.so|' ${TMPPLIST}
+ @${REINPLACE_CMD} 's|/libxgboost${PYTHON_EXT_SUFFIX}.so$$|/xgboost/lib/libxgboost.so|' ${TMPPLIST}
.include <bsd.port.post.mk>
More information about the svn-ports-all
mailing list