Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 17 Feb 2018 22:08:08 +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: r462196 - in head/www: . go-appengine-sdk
Message-ID:  <201802172208.w1HM88QZ089322@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: yuri
Date: Sat Feb 17 22:08:08 2018
New Revision: 462196
URL: https://svnweb.freebsd.org/changeset/ports/462196

Log:
  New port: www/go-appengine-sdk: App Engine SDK for Go
  
  PR:		225826
  Submitted by:	Dmitri Goutnik <dg@syrec.org>
  Approved by:	tcberner (mentor)
  Differential Revision:	https://reviews.freebsd.org/D14321

Added:
  head/www/go-appengine-sdk/
  head/www/go-appengine-sdk/Makefile   (contents, props changed)
  head/www/go-appengine-sdk/distinfo   (contents, props changed)
  head/www/go-appengine-sdk/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Sat Feb 17 21:45:29 2018	(r462195)
+++ head/www/Makefile	Sat Feb 17 22:08:08 2018	(r462196)
@@ -209,6 +209,7 @@
     SUBDIR += glpi
     SUBDIR += gnome-user-share
     SUBDIR += gnome-web-photo
+    SUBDIR += go-appengine-sdk
     SUBDIR += go-fasthttp
     SUBDIR += go-www
     SUBDIR += gobuffalo

Added: head/www/go-appengine-sdk/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/go-appengine-sdk/Makefile	Sat Feb 17 22:08:08 2018	(r462196)
@@ -0,0 +1,90 @@
+# $FreeBSD$
+
+PORTNAME=	go-appengine-sdk
+DISTVERSION=	1.9.62
+CATEGORIES=	www devel
+MASTER_SITES=	https://storage.googleapis.com/appengine-sdks/featured/
+DISTNAME=	${PORTNAME:S,-,_,g}_linux_amd64-${PORTVERSION}
+
+MAINTAINER=	dg@syrec.org
+COMMENT=	App Engine SDK for Go
+
+LICENSE=	APACHE20 BSD3CLAUSE GPLv2 LGPL21 MIT MPL11 PSFL
+LICENSE_COMB=	multi
+LICENSE_FILE_APACHE20=		${WRKSRC}/LICENSE
+LICENSE_FILE_BSD3CLAUSE=	${WRKSRC}/LICENSE
+LICENSE_FILE_GPLv2=		${WRKSRC}/LICENSE
+LICENSE_FILE_LGPL21=		${WRKSRC}/LICENSE
+LICENSE_FILE_MIT=		${WRKSRC}/LICENSE
+LICENSE_FILE_MPL11=		${WRKSRC}/LICENSE
+LICENSE_FILE_PSFL=		${WRKSRC}/LICENSE
+
+ONLY_FOR_ARCHS=	amd64 i386
+
+BUILD_DEPENDS=	go:lang/go
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>=${PYTHON_VER}:databases/py-sqlite3@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pycrypto>=2.6:security/py-pycrypto@${PY_FLAVOR}
+
+USES=		gettext python:2.7 shebangfix zip
+SHEBANG_GLOB=	*.py *.bash *.sh *.pl *.cgi goapp
+WRKSRC=		${WRKDIR}/go_appengine
+
+GAEDATADIRS=	google lib tools
+GAEGOROOTS=	goroot-1.6 goroot-1.8
+GAESCRIPTS=	appcfg.py backends_conversion.py \
+		bulkload_client.py bulkloader.py dev_appserver.py \
+		download_appstats.py endpointscfg.py run_tests.py \
+		wrapper_util.py
+GOARCH=		${ARCH:S,i386,386,}
+
+PLIST_FILES=	${GAESCRIPTS:C,(.+)\.py,bin/\1-go,} \
+		bin/goapp
+PLIST_DIRS=	${GAEGOROOTS:C,(.+),${DATADIR}/\1/pkg/obj/${OPSYS:tl}_${GOARCH},}
+
+OPTIONS_DEFINE=		EXAMPLES SSE2
+OPTIONS_DEFAULT=	SSE2
+SSE2_DESC=		Generate code with SSE2 (check off for old x86 CPUs)
+
+SSE2_VARS_OFF=		GO386=387
+
+PORTDATA=	*
+PORTEXAMPLES=	*
+
+do-build:
+	@for R in ${GAEGOROOTS}; do \
+		(cd ${WRKSRC}/$${R}/src && \
+			GOROOT_BOOTSTRAP=${LOCALBASE}/go \
+			GOOS=${OPSYS:tl} GOARCH=${GOARCH} \
+			GO386=${GO386} \
+			${SH} make.bash); \
+		(cd ${WRKSRC}/$${R}/bin && \
+			${RM} godoc cover && ${MV} go goapp); \
+		(cd ${WRKSRC}/$${R} && \
+			${RM} -rf ./pkg/linux_amd64_appengine ./pkg/tool/linux_amd64); \
+	done
+	# Create wrapper scripts to avoid conflicts with other AppEngine SDK(s)
+	@cd ${WRKSRC} && \
+		for S in ${GAESCRIPTS} goapp; do \
+			${ECHO} "#!/bin/sh" >> $${S%.py}-go; \
+			${ECHO} "${LOCALBASE}/bin/python2.7 ${DATADIR}/$${S} \$$*" >> $${S%.py}-go; \
+		done
+
+do-install:
+	@${MKDIR} ${STAGEDIR}${DATADIR}
+	for S in ${GAESCRIPTS} _python_runtime.py goapp; do \
+		${INSTALL_SCRIPT} ${WRKSRC}/$${S} ${STAGEDIR}${DATADIR}; \
+	done
+	${INSTALL_SCRIPT} ${WRKSRC}/*-go ${STAGEDIR}${PREFIX}/bin
+	${MV} ${STAGEDIR}${PREFIX}/bin/goapp-go ${STAGEDIR}${PREFIX}/bin/goapp
+	cd ${WRKSRC} && \
+		${COPYTREE_SHARE} "${GAEDATADIRS}" ${STAGEDIR}${DATADIR} && \
+		${CP} -a ${GAEGOROOTS} ${STAGEDIR}${DATADIR}
+	${INSTALL_DATA} ${WRKSRC}/VERSION ${STAGEDIR}${DATADIR}
+	cd ${STAGEDIR}${DATADIR} && \
+		${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -d ${DATADIR} -f ${GAEDATADIRS} -q
+
+do-install-EXAMPLES-on:
+	cd ${WRKSRC}/demos && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
+
+.include <bsd.port.mk>

Added: head/www/go-appengine-sdk/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/go-appengine-sdk/distinfo	Sat Feb 17 22:08:08 2018	(r462196)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1518283271
+SHA256 (go_appengine_sdk_linux_amd64-1.9.62.zip) = 3514fa6576842ffd53d7954eddf590e7167e7415ec29d70e92c953c7c0c6c3cb
+SIZE (go_appengine_sdk_linux_amd64-1.9.62.zip) = 132239006

Added: head/www/go-appengine-sdk/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/go-appengine-sdk/pkg-descr	Sat Feb 17 22:08:08 2018	(r462196)
@@ -0,0 +1,11 @@
+Google App Engine SDK for Go.
+
+Google App Engine enables you to build web applications on the same scalable 
+systems that power Google applications. This SDK provides support for 
+building web applications using the Go Programming Language.
+
+This port doesn't include godoc and gofmt tools that are available in Linux
+version of the SDK.  Please install lang/go and devel/go-tools if you need 
+them.
+
+WWW: https://cloud.google.com/appengine/



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