freebsd-ports/devel/mage/Makefile
Dmitri Goutnik 34156e93e8 Go ports: cleanup, finish transition to USES=go started with r505321 (cat. audio-mail)
- Remove custom build/install targets left in place after r505321
- Switch to the new GO_TARGET tuple syntax introduced in r512001
- Switch to go:modules when upstream already uses them

Reviewed by:	tobik
Approved by:	araujo (mentor), portmgr (adamw)
Differential Revision:	https://reviews.freebsd.org/D21741
2019-09-29 22:29:39 +00:00

32 lines
647 B
Makefile

# $FreeBSD$
PORTNAME= mage
DISTVERSIONPREFIX= v
DISTVERSION= 2.1
CATEGORIES= devel
MAINTAINER= seanc@FreeBSD.org
COMMENT= Command-line make-like build tool using Go as input files
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go
USE_GITHUB= yes
GH_ACCOUNT= magefile
GH_SUBDIR= src/github.com/${GH_ACCOUNT}/${PORTNAME}
GH_TAGNAME= 2.1
GH_TAG_COMMIT= 771ebed
PLIST_FILES= bin/mage
post-patch:
@${REINPLACE_CMD} -e "s|%%GH_TAGNAME%%|${GH_TAGNAME}|g; s|%%GH_TAG_COMMIT%%|${GH_TAG_COMMIT}|g" \
${WRKSRC}/magefile.go
do-build:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${GO_ENV} \
${GO_CMD} run bootstrap.go
.include <bsd.port.mk>