Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Aug 2019 00:00:43 +0000 (UTC)
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r508802 - head/science/py-tensorflow-estimator
Message-ID:  <201908130000.x7D00hcw048219@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Tue Aug 13 00:00:42 2019
New Revision: 508802
URL: https://svnweb.freebsd.org/changeset/ports/508802

Log:
  science/py-tensorflow-estimator: Add NO_ARCH=yes; Fix build for the port name having hyphen (vs. underscore) in PORTNAME.

Modified:
  head/science/py-tensorflow-estimator/Makefile

Modified: head/science/py-tensorflow-estimator/Makefile
==============================================================================
--- head/science/py-tensorflow-estimator/Makefile	Mon Aug 12 23:28:41 2019	(r508801)
+++ head/science/py-tensorflow-estimator/Makefile	Tue Aug 13 00:00:42 2019	(r508802)
@@ -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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201908130000.x7D00hcw048219>