freebsd-ports/devel/grumpy/Makefile
Tobias Kortkamp 3726f94254 Convert all Go ports to USES=go
This allows for port testing with lang/go-devel via GO_PORT, setting
up the Go build environment in a single place, and is step one in
simplifying Go ports that often define too complicated do-build
targets themselves.

USES=go gains new arguments 'run' to add lang/go to RUN_DEPENDS and
'no_targets' for ports with composite builds that call 'go' themselves
and do not need the do-build/do-install targets of USES=go.

PR:		238849
Submitted by:	dg@syrec.org (also D20745)
Reviewed by:	mat, tobik
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D20746
2019-06-29 03:51:13 +00:00

37 lines
1,006 B
Makefile

# $FreeBSD$
PORTNAME= grumpy
PORTVERSION= 0.0.0.2017112101
CATEGORIES= devel
MAINTAINER= swills@FreeBSD.org
COMMENT= Python to Go source code transcompiler and runtime
BROKEN_i386= constant 2147762812 overflows int
USE_GITHUB= yes
GH_ACCOUNT= google
GH_TAGNAME= 3ec8795
USES= gmake go:no_targets,run python:2.7 shebangfix
SHEBANG_FILES= tools/benchcmp tools/coverparse tools/diffrange tools/grumpc
BINARY_ALIAS= python=${PYTHON_CMD}
.include <bsd.port.options.mk>
.if ${ARCH} == "amd64"
PLIST_SUB+= ARCH=amd64
.endif
.if ${ARCH} == "i386"
PLIST_SUB+= ARCH=386
.endif
do-install:
cd ${WRKSRC}/build/pkg && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/go/pkg/
cd ${WRKSRC}/build/src && ${COPYTREE_SHARE} . ${STAGEDIR}${PREFIX}/go/src/
cd ${WRKSRC}/build/lib/python${PYTHON_VER}/site-packages && ${COPYTREE_SHARE} . ${STAGEDIR}${PYTHON_SITELIBDIR}
.for bin in benchcmp coverparse diffrange grumpc
${INSTALL_SCRIPT} ${WRKSRC}/build/bin/${bin} ${STAGEDIR}${PREFIX}/bin/
.endfor
.include <bsd.port.mk>