diff options
Diffstat (limited to 'misc/exercism/Makefile')
-rw-r--r-- | misc/exercism/Makefile | 34 |
1 files changed, 21 insertions, 13 deletions
diff --git a/misc/exercism/Makefile b/misc/exercism/Makefile index 77abc62f4f36..aad99ab3e816 100644 --- a/misc/exercism/Makefile +++ b/misc/exercism/Makefile @@ -2,35 +2,43 @@ # $FreeBSD$ PORTNAME= exercism -PORTVERSION= 1.7.1 +PORTVERSION= 2.2.0 DISTVERSIONPREFIX= v CATEGORIES= misc -MASTER_SITES= \ - https://codeload.github.com/codegangsta/cli/legacy.tar.gz/f7ebb76?dummy=/:group2 -DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \ - 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} USE_GITHUB= yes -GH_PROJECT= cli +GH_ACCOUNT= codegangsta:cg kardianos:osext golang:text,net +GH_PROJECT= cli:DEFAULT cli:cg osext:osext text:text net:net +GH_TAGNAME= bca61c4:cg 6e7f843:osext 3eb7007:text 51854ab:net + +STRIP= # stripping can break go binaries 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 + @${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 + @${MV} ${WRKSRC}/${src} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT} +.endfor + @${MKDIR} ${WRKSRC}/src/golang.org/x + @${MKDIR} ${WRKSRC}/src/github.com/codegangsta + @${MKDIR} ${WRKSRC}/src/github.com/kardianos + @${MV} ${WRKSRC_cg} ${WRKSRC}/src/github.com/codegangsta/cli + @${MV} ${WRKSRC_osext} ${WRKSRC}/src/github.com/kardianos/osext + @${MV} ${WRKSRC_text} ${WRKSRC}/src/golang.org/x/text + @${MV} ${WRKSRC_net} ${WRKSRC}/src/golang.org/x/net do-build: - cd ${WRKSRC} ; ${SETENV} GOPATH=${WRKSRC} go build -o exercism + @(cd ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT} ; \ + ${SETENV} GOPATH=${WRKSRC} go build -o bin/exercism exercism/main.go) do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/exercism ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/src/github.com/${GH_ACCOUNT}/${GH_PROJECT}/bin/exercism ${STAGEDIR}${PREFIX}/bin .include <bsd.port.mk> |