Changeset View
Standalone View
www/go-appengine-sdk/Makefile
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# $FreeBSD$ | |||||
PORTNAME= go-appengine-sdk | |||||
DISTVERSION= 1.9.62 | |||||
CATEGORIES= www devel | |||||
MASTER_SITES= https://storage.googleapis.com/appengine-sdks/featured/ | |||||
DISTFILES= ${PORTNAME:S,-,_,g}_linux_amd64-${PORTVERSION}.zip | |||||
sunpoet: Use DISTNAME and USES=zip. | |||||
MAINTAINER= dg@syrec.org | |||||
COMMENT= App Engine SDK for Go | |||||
LICENSE= APACHE20 BSD3CLAUSE GPLv2 LGPL21 MIT MPL11 PSFL | |||||
LICENSE_COMB= multi | |||||
sunpoetUnsubmitted Done Inline ActionsPlease update LICENSE and add LICENSE_FILE. Since you did not install the whole zip file, you do not need to list all licenses mentioned in ${WRKSRC}/LICENSE. sunpoet: Please update LICENSE and add LICENSE_FILE.
Since you did not install the whole zip file, you… | |||||
dmgkUnsubmitted Not Done Inline ActionsWe do install the while zip file (apart from a few Linux binary artifacts and PHP stuff that doesn't have a separate license) so all licenses listed in LICENSE_FILE apply. dmgk: We do install the while zip file (apart from a few Linux binary artifacts and PHP stuff that… | |||||
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} | |||||
Not Done Inline ActionsMaybe we need something like LICENSE_FILE_combo for cases when all licenses are lumped together in a single file. dmgk: Maybe we need something like LICENSE_FILE_combo for cases when all licenses are lumped together… | |||||
USES= gettext python:2.7 shebangfix | |||||
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,} | |||||
PORTDATA= * | |||||
PORTEXAMPLES= * | |||||
PLIST_FILES= ${GAESCRIPTS:C,(.+)\.py,bin/\1-go,} \ | |||||
bin/goapp | |||||
PLIST_DIRS= ${GAEGOROOTS:C,(.+),${DATADIR}/\1/pkg/obj/${OPSYS:tl}_${GOARCH},} | |||||
OPTIONS_DEFINE= EXAMPLES GO387 | |||||
GO387_DESC= Do not generate code with SSE2 (for old x86 CPU) | |||||
GO387_VARS= GO386=387 | |||||
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); \ | |||||
Done Inline ActionsGOARCH= ${ARCH:S/i386/386} mat: ```
GOARCH= ${ARCH:S/i386/386}
```
| |||||
Not Done Inline ActionsThanks. I just realised that there's no need for IGNORE because of ONLY_FOR_ARCHS above. dmgk: Thanks. I just realised that there's no need for IGNORE because of ONLY_FOR_ARCHS above. | |||||
(cd ${WRKSRC}/$${R}/bin && \ | |||||
${RM} godoc cover && ${MV} go goapp); \ | |||||
(cd ${WRKSRC}/$${R} && \ | |||||
${RM} -rf ./pkg/linux_amd64_appengine ./pkg/tool/linux_amd64); \ | |||||
Done Inline ActionsGO387_VARS= GO386=387 mat: GO387_VARS= GO386=387 | |||||
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}) | |||||
matUnsubmitted Not Done Inline ActionsI am not sure what is being CP'ed here, but never use cp to install files, use COPYTREE_SHARE/BIN or one of the INSTALL_* macros. mat: I am not sure what is being CP'ed here, but never use cp to install files, use… | |||||
dmgkUnsubmitted Not Done Inline ActionsThis ports rebuilds two Go distributions (1.6 and 1.8) included in the upstream zip to get native FreeBSD binaries and installs resulting GOROOTs with ${CP}, I stole this CP line from lang/go. While it probably would be possible to get the same result with a combination of COPYTREE_SHARE/BIN, it would make do-install much more complex because there's a bunch of executables and .pl/.sh scripts scattered through GOROOT subfolders. dmgk: This ports rebuilds two Go distributions (1.6 and 1.8) included in the upstream zip to get… | |||||
${INSTALL_DATA} ${WRKSRC}/VERSION ${STAGEDIR}${DATADIR} | |||||
(cd ${STAGEDIR}${DATADIR} && \ | |||||
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -d ${DATADIR} -f ${GAEDATADIRS} -q) | |||||
do-install-EXAMPLES-on: | |||||
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} | |||||
(cd ${WRKSRC}/demos && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}) | |||||
.include <bsd.port.mk> | |||||
Not Done Inline ActionsThat would remove executable bit from all binaries, no? dmgk: That would remove executable bit from all binaries, no? |
Use DISTNAME and USES=zip.