b66a194dc7
Noticed there was an actual version number in the output of "gcloud version", so use that. Also, depend on lang/python for the "python" symlink so the scripts run.
29 lines
906 B
Makefile
29 lines
906 B
Makefile
# Created by: Steve Wills <swills@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= google-cloud-sdk
|
|
PORTVERSION= 0.9.25
|
|
CATEGORIES= net
|
|
MASTER_SITES= https://dl.google.com/dl/cloudsdk/release/
|
|
DISTNAME= google-cloud-sdk-coretools-linux-x86_64
|
|
|
|
MAINTAINER= swills@FreeBSD.org
|
|
COMMENT= Google Cloud SDK for Google Cloud Platform
|
|
|
|
USES= python
|
|
NO_BUILD= yes
|
|
WRKSRC= ${WRKDIR}/google-cloud-sdk
|
|
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python
|
|
|
|
do-install:
|
|
${FIND} ${WRKSRC}/help -type f -name '*.1' -exec ${GZIP_CMD} {} +
|
|
( cd ${WRKSRC}/help ; ${COPYTREE_SHARE} man ${STAGEDIR}${PREFIX} )
|
|
${RM} -r ${WRKSRC}/help/man
|
|
( cd ${WRKSRC} ; ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/google-cloud-sdk )
|
|
.for x in bq gcloud gcutil git-credential-gcloud.sh gsutil
|
|
${CHMOD} +x ${STAGEDIR}${PREFIX}/google-cloud-sdk/bin/${x}
|
|
${LN} -s ${PREFIX}/google-cloud-sdk/bin/${x} ${STAGEDIR}${PREFIX}/bin/${x}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|