1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

misc/py-mxnet: Enable the cython option

This commit is contained in:
Yuri Victorovich 2019-12-15 20:10:23 +00:00
parent 6c935020e9
commit 4c97c93c34
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=520197

View File

@ -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