From 58df6fd6b0ad63b8725dfe292b969819d63785bd Mon Sep 17 00:00:00 2001 From: Yuri Victorovich Date: Tue, 13 Aug 2019 00:00:42 +0000 Subject: [PATCH] science/py-tensorflow-estimator: Add NO_ARCH=yes; Fix build for the port name having hyphen (vs. underscore) in PORTNAME. --- science/py-tensorflow-estimator/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/science/py-tensorflow-estimator/Makefile b/science/py-tensorflow-estimator/Makefile index c275399c9870..dbf16d0bf262 100644 --- a/science/py-tensorflow-estimator/Makefile +++ b/science/py-tensorflow-estimator/Makefile @@ -3,6 +3,7 @@ PORTNAME= tensorflow-estimator DISTVERSIONPREFIX= v DISTVERSION= 1.14.0 +PORTREVISION= 1 CATEGORIES= science python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -21,6 +22,8 @@ USE_GITHUB= yes GH_ACCOUNT= tensorflow GH_PROJECT= estimator +NO_ARCH= yes + BAZEL_BOOT= --output_user_root=${WRKDIR}/bazel_out post-patch: @@ -38,10 +41,10 @@ do-build: do-install: @${MKDIR} ${STAGEDIR}/${PYTHON_SITELIBDIR} @${MKDIR} ${WRKDIR}/tmp - @${UNZIP_NATIVE_CMD} -d ${WRKDIR}/tmp ${WRKDIR}/whl/${PORTNAME}-${PORTVERSION}-*.whl - cd ${WRKDIR}/tmp && ${COPYTREE_SHARE} ${PORTNAME} \ + @${UNZIP_NATIVE_CMD} -d ${WRKDIR}/tmp ${WRKDIR}/whl/${PORTNAME:S/-/_/}-${PORTVERSION}-*.whl + cd ${WRKDIR}/tmp && ${COPYTREE_SHARE} ${PORTNAME:S/-/_/} \ ${STAGEDIR}${PYTHON_SITELIBDIR} - cd ${WRKDIR}/tmp && ${COPYTREE_SHARE} ${PORTNAME}-${PORTVERSION}.dist-info \ + cd ${WRKDIR}/tmp && ${COPYTREE_SHARE} ${PORTNAME:S/-/_/}-${PORTVERSION}.dist-info \ ${STAGEDIR}${PYTHON_SITELIBDIR} .include