diff --git a/shells/elvish/Makefile b/shells/elvish/Makefile index 6a444aa5acc3..078732fb8244 100644 --- a/shells/elvish/Makefile +++ b/shells/elvish/Makefile @@ -3,6 +3,7 @@ PORTNAME= elvish DISTVERSIONPREFIX= v DISTVERSION= 0.12 +PORTREVISION= 1 CATEGORIES= shells MAINTAINER= vendion@gmail.com @@ -11,7 +12,7 @@ COMMENT= Friendly Interactive Shell and Expressive Programming Language LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE -USES= go +USES= go gmake USE_GITHUB= yes GH_ACCOUNT= elves @@ -19,4 +20,14 @@ GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} PLIST_FILES= bin/elvish +# needed as the way that the upstream source is fetched it is fetch as not a Git +# repo, thus the way the packages Makefile gets the version string does not work +post-patch: + ${REINPLACE_CMD} -e 's/$$(VERSION)/${DISTVERSIONPREFIX}${DISTVERSION}/g' \ + ${GO_WRKSRC}/Makefile + +# needed to set the version information in the birnary +do-build: + cd ${GO_WRKSRC} && ${GO_ENV} ${MAKE_CMD} get + .include