1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-21 08:42:23 +00:00

New port: net/google-cloud-sdk-app-engine-go: Google Cloud SDK App Engine Go Extensions

PR:		238632
Submitted by:	Dmitri Goutnik <dg@syrec.org>
This commit is contained in:
Yuri Victorovich 2019-08-03 23:54:22 +00:00
parent 3a5eb1f43a
commit 5d71f1b9e1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=508038
5 changed files with 92 additions and 0 deletions

View File

@ -198,6 +198,7 @@
SUBDIR += gofish
SUBDIR += gogoc
SUBDIR += google-cloud-sdk
SUBDIR += google-cloud-sdk-app-engine-go
SUBDIR += googlecl
SUBDIR += gopher
SUBDIR += goreplay

View File

@ -0,0 +1,52 @@
# $FreeBSD$
PORTNAME= google-cloud-sdk-app-engine-go
DISTVERSION= g20181102165140
CATEGORIES= net
MASTER_SITES= https://dl.google.com/dl/cloudsdk/channels/rapid/components/
DISTNAME= ${PORTNAME}-linux-x86_64-${DISTVERSION:S/^g//}
MAINTAINER= dg@syrec.org
COMMENT= Google Cloud SDK App Engine Go Extensions
LICENSE= APACHE20 BSD3CLAUSE
LICENSE_COMB= multi
LICENSE_FILE_APACHE20= ${WRKDIR}/platform/google_appengine/LICENSE.golang
LICENSE_FILE_BSD3CLAUSE= ${WRKDIR}/platform/google_appengine/goroot-1.9/LICENSE
ONLY_FOR_ARCHS= amd64 i386
RUN_DEPENDS= gcloud:net/google-cloud-sdk
USES= go
do-build:
(cd ${WRKDIR}/platform/google_appengine/goroot-1.9/src && \
${SETENV} ${MAKE_ENV} \
GOROOT_BOOTSTRAP=${LOCALBASE}/go \
${SH} make.bash); \
(cd ${WRKDIR}/platform/google_appengine/goroot-1.9/bin && \
${RM} cover goapp godoc);
(cd ${WRKDIR}/platform/google_appengine/goroot-1.9/pkg && \
${RM} -rf bootstrap linux_amd64_appengine obj tool/linux_amd64);
do-install:
(cd ${WRKDIR} && ${COPYTREE_SHARE} platform ${STAGEDIR}${PREFIX}/google-cloud-sdk)
(cd ${STAGEDIR}${PREFIX} && \
${FIND} google-cloud-sdk/platform/google_appengine/goroot-1.9/bin -type f -exec ${CHMOD} +x {} \;);
${MV} ${STAGEDIR}${PREFIX}/google-cloud-sdk//platform/google_appengine/goroot-1.9/bin/go-app-stager \
${STAGEDIR}${PREFIX}/google-cloud-sdk/platform/google_appengine/;
${STRIP_CMD} ${STAGEDIR}${PREFIX}/google-cloud-sdk/platform/google_appengine/go-app-stager
${MKDIR} ${STAGEDIR}${PREFIX}/google-cloud-sdk/.install
${INSTALL_DATA} ${FILESDIR}/app-engine-go.snapshot.json ${STAGEDIR}${PREFIX}/google-cloud-sdk/.install/
${TOUCH} ${STAGEDIR}${PREFIX}/google-cloud-sdk/.install/app-engine-go.manifest
post-install:
@(cd ${STAGEDIR}${PREFIX} && \
${FIND} -s google-cloud-sdk -type f -o -type l >> ${TMPPLIST})
find-new-version:
@(v=$$(${FETCH_CMD} -qo- ${MASTER_SITES:H:H}/components-2.json | ${SED} -nE '/${DISTNAME:S|-${DISTVERSION:S|^g||}||}/s/.*-([0-9]{14})\..*/\1/p' ); \
[ $$v -gt ${DISTVERSION:S|^g||} ] && ${ECHO} "Found new version $$v") || ${ECHO} "No new version was found"
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1550518372
SHA256 (google-cloud-sdk-app-engine-go-linux-x86_64-20181102165140.tar.gz) = 15cc3ff0072e77b1740bd31e594398c98a409685784f5378442b10c7baa51613
SIZE (google-cloud-sdk-app-engine-go-linux-x86_64-20181102165140.tar.gz) = 59310816

View File

@ -0,0 +1,29 @@
{
"components": [
{
"dependencies": [
"core"
],
"details": {
"description": "Provides the tools to develop Go applications on App Engine.",
"display_name": "App Engine Go Extensions"
},
"id": "app-engine-go",
"is_configuration": false,
"is_hidden": false,
"is_required": false,
"platform": {},
"version": {
"build_number": 0,
"version_string": ""
}
}
],
"revision": 0,
"schema_version": {
"no_update": false,
"url": "https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz",
"version": 0
},
"version": ""
}

View File

@ -0,0 +1,7 @@
Google Cloud SDK contains tools and libraries that enable you to easily create
and manage resources on Google Cloud Platform, including App Engine, Compute
Engine, Cloud Storage, BigQuery, Cloud SQL, and Cloud DNS.
This port installs Google Cloud SDK "App Engine Go Extensions" component.
WWW: https://cloud.google.com/sdk/