Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Dec 2019 20:10:24 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r520197 - head/misc/py-mxnet
Message-ID:  <201912152010.xBFKAOpe090606@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sun Dec 15 20:10:23 2019
New Revision: 520197
URL: https://svnweb.freebsd.org/changeset/ports/520197

Log:
  misc/py-mxnet: Enable the cython option

Modified:
  head/misc/py-mxnet/Makefile

Modified: head/misc/py-mxnet/Makefile
==============================================================================
--- head/misc/py-mxnet/Makefile	Sun Dec 15 19:55:14 2019	(r520196)
+++ head/misc/py-mxnet/Makefile	Sun Dec 15 20:10:23 2019	(r520197)
@@ -3,6 +3,7 @@
 PORTNAME=	mxnet
 DISTVERSION=	1.6.0
 DISTVERSIONSUFFIX=	.rc0
+PORTREVISION=	1
 CATEGORIES=	misc # machine-learning
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
 
@@ -16,20 +17,25 @@ RUN_DEPENDS=	mxnet>0:misc/mxnet \
 		${PYTHON_PKGNAMEPREFIX}graphviz>0:graphics/py-graphviz@${PY_FLAVOR} \
 		${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
 
-USES=		python
+USES=		python localbase
 USE_GITHUB=	yes
 GH_ACCOUNT=	apache
 GH_PROJECT=	incubator-mxnet
-USE_PYTHON=	distutils autoplist
+USE_PYTHON=	distutils cython autoplist
 
 WRKSRC_SUBDIR=	python
 
 POST_PLIST=	fix-plist
 
+PYDISTUTILS_BUILDARGS=		--with-cython
+PYDISTUTILS_INSTALLARGS=	--with-cython
+
 post-patch:
 	@${REINPLACE_CMD} -e 's|dll_path = \[curr_path, api_path, cmake_build_path\]|dll_path = ["${LOCALBASE}/lib"]|' ${WRKSRC}/mxnet/libinfo.py
 
-post-install: # https://github.com/apache/incubator-mxnet/issues/17081
+post-install:
+	@${FIND} ${STAGEDIR}${PREFIX} -name "*.so" | ${XARGS} ${STRIP_CMD}
+	# https://github.com/apache/incubator-mxnet/issues/17081
 	@${RM} ${STAGEDIR}${PREFIX}/mxnet/libmxnet.so
 	@${RMDIR} ${STAGEDIR}${PREFIX}/mxnet
 



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