diff --git a/devel/mage/Makefile b/devel/mage/Makefile index d3186dad45ff..f9a9740fe72a 100644 --- a/devel/mage/Makefile +++ b/devel/mage/Makefile @@ -1,30 +1,25 @@ PORTNAME= mage DISTVERSIONPREFIX= v -DISTVERSION= 1.14.0 -PORTREVISION= 8 +DISTVERSION= 1.15.0 PORTEPOCH= 1 CATEGORIES= devel MAINTAINER= gspurki@gmail.com COMMENT= Command-line make-like build tool using Go as input files WWW= https://magefile.org/ LICENSE= APACHE20 LICENSE_FILE= ${WRKSRC}/LICENSE USES= go:modules USE_GITHUB= yes GH_ACCOUNT= magefile 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 diff --git a/devel/mage/distinfo b/devel/mage/distinfo index 61bd0d3c56c8..ee3225b12e68 100644 --- a/devel/mage/distinfo +++ b/devel/mage/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1663671045 -SHA256 (magefile-mage-v1.14.0_GH0.tar.gz) = 346b82cd4c6af35a6bffcdaed1a6de0947d8b282ce80ee719805e8fea33bc481 -SIZE (magefile-mage-v1.14.0_GH0.tar.gz) = 8801424 +TIMESTAMP = 1691832652 +SHA256 (magefile-mage-v1.15.0_GH0.tar.gz) = 3ce55e39d175d925c015b4dc773cea1fc4d3c64af9edcec6f9b7ab9388b751bf +SIZE (magefile-mage-v1.15.0_GH0.tar.gz) = 8805332 diff --git a/devel/mage/files/patch-magefile.go b/devel/mage/files/patch-magefile.go deleted file mode 100644 index c76f643ee9d3..000000000000 --- a/devel/mage/files/patch-magefile.go +++ /dev/null @@ -1,17 +0,0 @@ ---- magefile.go.orig 2018-04-11 17:03:07 UTC -+++ magefile.go -@@ -83,12 +83,14 @@ func flags() (string, error) { - - // tag returns the git tag for the current branch or "" if none. - func tag() string { -+ return "%%GH_TAGNAME%%" - s, _ := sh.Output("git", "describe", "--tags") - return s - } - - // hash returns the git hash for the current repo or "" if none. - func hash() string { -+ return "%%GH_TAG_COMMIT%%" - hash, _ := sh.Output("git", "rev-parse", "--short", "HEAD") - return hash - }