From owner-svn-ports-head@freebsd.org Sun Dec 15 20:10:24 2019 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 542691CD49D; Sun, 15 Dec 2019 20:10:24 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 47bb9r1J45z3PFF; Sun, 15 Dec 2019 20:10:24 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 27CB01A315; Sun, 15 Dec 2019 20:10:24 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id xBFKAOTi090607; Sun, 15 Dec 2019 20:10:24 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id xBFKAOpe090606; Sun, 15 Dec 2019 20:10:24 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201912152010.xBFKAOpe090606@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sun, 15 Dec 2019 20:10:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r520197 - head/misc/py-mxnet X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: head/misc/py-mxnet X-SVN-Commit-Revision: 520197 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Dec 2019 20:10:24 -0000 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