mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
36 lines
972 B
Makefile
36 lines
972 B
Makefile
# Created by: Steve Wills <swills@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= exercism
|
|
PORTVERSION= 2.2.5
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= misc
|
|
|
|
MAINTAINER= swills@FreeBSD.org
|
|
COMMENT= CLI client for exercism.io
|
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/go:lang/go
|
|
|
|
USE_GITHUB= yes
|
|
GH_PROJECT= cli
|
|
|
|
STRIP= # stripping can break go binaries
|
|
|
|
PLIST_FILES= bin/exercism
|
|
|
|
post-patch:
|
|
@${MKDIR} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
|
|
.for src in .gitignore .travis.yml CHANGELOG.md LICENSE README.md RELEASE.md \
|
|
api bin cmd config exercism fixtures user debug paths vendor
|
|
@${MV} ${WRKSRC}/${src} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}
|
|
.endfor
|
|
|
|
do-build:
|
|
@(cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT} ; \
|
|
${SETENV} GO15VENDOREXPERIMENT=1 GOPATH=${WRKSRC} go build -o bin/exercism exercism/main.go)
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/bin/exercism ${STAGEDIR}${PREFIX}/bin
|
|
|
|
.include <bsd.port.mk>
|