aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryuri <yuri@FreeBSD.org>2019-08-13 08:00:42 +0800
committeryuri <yuri@FreeBSD.org>2019-08-13 08:00:42 +0800
commit8e6378ba315d0323863e677428423b0973299ed2 (patch)
treed4e63dd4e22376de736fb899883185dfcb0cc9bb
parent81b4360eb412b226ee836f9045986b9d16ceeaa0 (diff)
downloadfreebsd-ports-gnome-8e6378ba315d0323863e677428423b0973299ed2.tar.gz
freebsd-ports-gnome-8e6378ba315d0323863e677428423b0973299ed2.tar.zst
freebsd-ports-gnome-8e6378ba315d0323863e677428423b0973299ed2.zip
science/py-tensorflow-estimator: Add NO_ARCH=yes; Fix build for the port name having hyphen (vs. underscore) in PORTNAME.
-rw-r--r--science/py-tensorflow-estimator/Makefile9
1 files 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 <bsd.port.mk>