misc/exercism: create port for exercism.io cli client

An easy command line interface to work with exercism.io

WWW: http://exercism.io/
This commit is contained in:
Steve Wills 2014-09-24 04:53:11 +00:00
parent 9e73fd3b34
commit 60b9653b57
4 changed files with 41 additions and 0 deletions

View file

@ -74,6 +74,7 @@
SUBDIR += esniper
SUBDIR += estic
SUBDIR += excel-writer
SUBDIR += exercism
SUBDIR += explosions
SUBDIR += fbless
SUBDIR += felis

33
misc/exercism/Makefile Normal file
View file

@ -0,0 +1,33 @@
# Created by: Steve Wills <swills@FreeBSD.org>
# $FreeBSD$
PORTNAME= exercism
PORTVERSION= 1.7.1
CATEGORIES= misc
MASTER_SITES= https://github.com/${PORTNAME}/cli/archive/v${PORTVERSION}.tar.gz?dummy=/:group1 \
https://codeload.github.com/codegangsta/cli/legacy.tar.gz/f7ebb76?dummy=/:group2
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:group1 \
codegansta-cli-f7ebb76${EXTRACT_SUFX}:group2
MAINTAINER= swills@FreeBSD.org
COMMENT= CLI client for exercism.io
BUILD_DEPENDS= ${LOCALBASE}/bin/go:${PORTSDIR}/lang/go
WRKSRC= ${WRKDIR}/cli-${PORTVERSION}
PLIST_FILES= bin/exercism
post-patch:
cd ${WRKSRC} ; ${MKDIR} src/github.com/codegangsta \
src/github.com/exercism/cli ; \
${MV} ${WRKDIR}/codegangsta-cli-f7ebb76 ${WRKSRC}/src/github.com/codegangsta/cli ; \
${CP} -r api handlers config src/github.com/exercism/cli
do-build:
cd ${WRKSRC} ; ${SETENV} GOPATH=${WRKSRC} go build -o exercism
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/exercism ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>

4
misc/exercism/distinfo Normal file
View file

@ -0,0 +1,4 @@
SHA256 (exercism-1.7.1.tar.gz) = 47357e762f80797071311c6057724ad7b315cd5b11b9dd751fe68012e5db38b4
SIZE (exercism-1.7.1.tar.gz) = 11877
SHA256 (codegansta-cli-f7ebb76.tar.gz) = 216232029c7f391a9312493f4a2b66b2fffa8f4fcee5104bfff7847d5683ee6e
SIZE (codegansta-cli-f7ebb76.tar.gz) = 15185

3
misc/exercism/pkg-descr Normal file
View file

@ -0,0 +1,3 @@
An easy command line interface to work with exercism.io
WWW: http://exercism.io/