View | Details | Raw Unified | Return to bug 225826 | Differences between
and this patch

Collapse All | Expand All

(-)www/go-appengine-sdk/Makefile (+82 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	go-appengine-sdk
4
DISTVERSION=	1.9.62
5
CATEGORIES=	www devel
6
MASTER_SITES=	https://storage.googleapis.com/appengine-sdks/featured/
7
DISTFILES=	${PORTNAME:S,-,_,g}_linux_amd64-${PORTVERSION}.zip
8
9
MAINTAINER=	dg@syrec.org
10
COMMENT=	App Engine SDK for Go
11
12
LICENSE=	APACHE20 BSD3CLAUSE GPLv2 LGPL21 MIT MPL11 PSFL
13
LICENSE_COMB=	multi
14
15
ONLY_FOR_ARCHS=	amd64 i386
16
17
BUILD_DEPENDS=	go:lang/go
18
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}sqlite3>=${PYTHON_VER}:databases/py-sqlite3@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}pycrypto>=2.6:security/py-pycrypto@${PY_FLAVOR}
21
22
USES=		gettext python:2.7 shebangfix
23
SHEBANG_GLOB=	*.py *.bash *.sh *.pl *.cgi goapp
24
WRKSRC=		${WRKDIR}/go_appengine
25
26
GAEDATADIRS=	google lib tools
27
GAEGOROOTS=	goroot-1.6 goroot-1.8
28
GAESCRIPTS=	appcfg.py backends_conversion.py \
29
		bulkload_client.py bulkloader.py dev_appserver.py \
30
		download_appstats.py endpointscfg.py run_tests.py \
31
		wrapper_util.py
32
GOARCH=		${ARCH:S,i386,386,}
33
34
PORTDATA=	*
35
PORTEXAMPLES=	*
36
PLIST_FILES=	${GAESCRIPTS:C,(.+)\.py,bin/\1-go,} \
37
		bin/goapp
38
PLIST_DIRS=	${GAEGOROOTS:C,(.+),${DATADIR}/\1/pkg/obj/${OPSYS:tl}_${GOARCH},}
39
40
OPTIONS_DEFINE=	EXAMPLES GO387
41
GO387_DESC=	Do not generate code with SSE2 (for old x86 CPU)
42
43
GO387_VARS=	GO386=387
44
45
do-build:
46
	(for R in ${GAEGOROOTS}; do \
47
		(cd ${WRKSRC}/$${R}/src && \
48
			GOROOT_BOOTSTRAP=${LOCALBASE}/go \
49
			GOOS=${OPSYS:tl} GOARCH=${GOARCH} \
50
			GO386=${GO386} \
51
			${SH} make.bash); \
52
		(cd ${WRKSRC}/$${R}/bin && \
53
			${RM} godoc cover && ${MV} go goapp); \
54
		(cd ${WRKSRC}/$${R} && \
55
			${RM} -rf ./pkg/linux_amd64_appengine ./pkg/tool/linux_amd64); \
56
	done)
57
	# Create wrapper scripts to avoid conflicts with other AppEngine SDK(s)
58
	(cd ${WRKSRC} && \
59
	for S in ${GAESCRIPTS} goapp; do \
60
		${ECHO} "#!/bin/sh" >> $${S%.py}-go; \
61
		${ECHO} "${LOCALBASE}/bin/python2.7 ${DATADIR}/$${S} \$$*" >> $${S%.py}-go; \
62
	done)
63
64
do-install:
65
	@${MKDIR} ${STAGEDIR}${DATADIR}
66
	(for S in ${GAESCRIPTS} _python_runtime.py goapp; do \
67
		${INSTALL_SCRIPT} ${WRKSRC}/$${S} ${STAGEDIR}${DATADIR}; \
68
	done)
69
	${INSTALL_SCRIPT} ${WRKSRC}/*-go ${STAGEDIR}${PREFIX}/bin
70
	${MV} ${STAGEDIR}${PREFIX}/bin/goapp-go ${STAGEDIR}${PREFIX}/bin/goapp
71
	(cd ${WRKSRC} && \
72
		${COPYTREE_SHARE} "${GAEDATADIRS}" ${STAGEDIR}${DATADIR} && \
73
		${CP} -a ${GAEGOROOTS} ${STAGEDIR}${DATADIR})
74
	${INSTALL_DATA} ${WRKSRC}/VERSION ${STAGEDIR}${DATADIR}
75
	(cd ${STAGEDIR}${DATADIR} && \
76
		${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -d ${DATADIR} -f ${GAEDATADIRS} -q)
77
78
do-install-EXAMPLES-on:
79
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
80
	(cd ${WRKSRC}/demos && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
81
82
.include <bsd.port.mk>
(-)www/go-appengine-sdk/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1518283271
2
SHA256 (go_appengine_sdk_linux_amd64-1.9.62.zip) = 3514fa6576842ffd53d7954eddf590e7167e7415ec29d70e92c953c7c0c6c3cb
3
SIZE (go_appengine_sdk_linux_amd64-1.9.62.zip) = 132239006
(-)www/go-appengine-sdk/pkg-descr (+11 lines)
Line 0 Link Here
1
Google App Engine SDK for Go.
2
3
Google App Engine enables you to build web applications on the same scalable 
4
systems that power Google applications. This SDK provides support for 
5
building web applications using the Go Programming Language.
6
7
This port doesn't include godoc and gofmt tools that are available in Linux
8
version of the SDK.  Please install lang/go and devel/go-tools if you need 
9
them.
10
11
WWW: https://cloud.google.com/appengine/

Return to bug 225826