Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 2021 16:21:42 +0000 (UTC)
From:      Kai Knoblich <kai@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r568400 - head/misc/py-xgboost
Message-ID:  <202103141621.12EGLgak008265@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202103141621.12EGLgak008265>