science/py-tensorflow-estimator: Add NO_ARCH=yes; Fix build for the port name having hyphen (vs. underscore) in PORTNAME.
This commit is contained in:
parent
fe6ed73e7b
commit
58df6fd6b0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=508802
1 changed files with 6 additions and 3 deletions
|
@ -3,6 +3,7 @@
|
||||||
PORTNAME= tensorflow-estimator
|
PORTNAME= tensorflow-estimator
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
DISTVERSION= 1.14.0
|
DISTVERSION= 1.14.0
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= science python
|
CATEGORIES= science python
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
|
|
||||||
|
@ -21,6 +22,8 @@ USE_GITHUB= yes
|
||||||
GH_ACCOUNT= tensorflow
|
GH_ACCOUNT= tensorflow
|
||||||
GH_PROJECT= estimator
|
GH_PROJECT= estimator
|
||||||
|
|
||||||
|
NO_ARCH= yes
|
||||||
|
|
||||||
BAZEL_BOOT= --output_user_root=${WRKDIR}/bazel_out
|
BAZEL_BOOT= --output_user_root=${WRKDIR}/bazel_out
|
||||||
|
|
||||||
post-patch:
|
post-patch:
|
||||||
|
@ -38,10 +41,10 @@ do-build:
|
||||||
do-install:
|
do-install:
|
||||||
@${MKDIR} ${STAGEDIR}/${PYTHON_SITELIBDIR}
|
@${MKDIR} ${STAGEDIR}/${PYTHON_SITELIBDIR}
|
||||||
@${MKDIR} ${WRKDIR}/tmp
|
@${MKDIR} ${WRKDIR}/tmp
|
||||||
@${UNZIP_NATIVE_CMD} -d ${WRKDIR}/tmp ${WRKDIR}/whl/${PORTNAME}-${PORTVERSION}-*.whl
|
@${UNZIP_NATIVE_CMD} -d ${WRKDIR}/tmp ${WRKDIR}/whl/${PORTNAME:S/-/_/}-${PORTVERSION}-*.whl
|
||||||
cd ${WRKDIR}/tmp && ${COPYTREE_SHARE} ${PORTNAME} \
|
cd ${WRKDIR}/tmp && ${COPYTREE_SHARE} ${PORTNAME:S/-/_/} \
|
||||||
${STAGEDIR}${PYTHON_SITELIBDIR}
|
${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}
|
${STAGEDIR}${PYTHON_SITELIBDIR}
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
Loading…
Reference in a new issue