svn commit: r520197 - head/misc/py-mxnet
Yuri Victorovich
yuri at FreeBSD.org
Sun Dec 15 20:10:24 UTC 2019
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
More information about the svn-ports-all
mailing list