mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
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
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user