From 4c97c93c34928029dc2fa10dfade6fc1591b4c9d Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Sun, 15 Dec 2019 20:10:23 +0000 Subject: [PATCH] misc/py-mxnet: Enable the cython option --- misc/py-mxnet/Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/misc/py-mxnet/Makefile b/misc/py-mxnet/Makefile index d1c5bc9d34e7..b2189ff47d1c 100644 --- a/misc/py-mxnet/Makefile +++ b/misc/py-mxnet/Makefile @@ -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