Use post-patch instead of pre-patch and do-patch when stamping the version.
Reported by: mat Reviewed by: swills, mat Approved by: swills (mentor) Differential Revision: https://reviews.freebsd.org/D15159
This commit is contained in:
parent
3e594d8aa1
commit
c6cccd3986
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=469455
2 changed files with 7 additions and 10 deletions
|
@ -2,7 +2,7 @@
|
|||
|
||||
PORTNAME= mage
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 2.1.0
|
||||
DISTVERSION= 2.1
|
||||
CATEGORIES= devel
|
||||
|
||||
MAINTAINER= seanc@FreeBSD.org
|
||||
|
@ -21,12 +21,9 @@ GH_TAG_COMMIT= 771ebed
|
|||
|
||||
PLIST_FILES= bin/mage
|
||||
|
||||
pre-patch:
|
||||
@${SED} -e "s|%%GH_TAGNAME%%|${GH_TAGNAME}|g; s|%%GH_TAG_COMMIT%%|${GH_TAG_COMMIT}|g" \
|
||||
${FILESDIR}/patch-magefile.go > ${WRKSRC}/magefile.go.patch
|
||||
|
||||
do-patch:
|
||||
@cd ${WRKSRC} && ${PATCH} --forward --quiet -p2 < magefile.go.patch
|
||||
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} CGO_ENABLED=0 GOPATH=${WRKSRC} \
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
TIMESTAMP = 1524434645
|
||||
SHA256 (magefile-mage-v2.1.0-2.1_GH0.tar.gz) = ac4ad1cfaf0a4ee67b1cbb0ea52792c5bc2ce240ee763fdc8d537bb14b40011a
|
||||
SIZE (magefile-mage-v2.1.0-2.1_GH0.tar.gz) = 8777256
|
||||
TIMESTAMP = 1524473550
|
||||
SHA256 (magefile-mage-v2.1-2.1_GH0.tar.gz) = ac4ad1cfaf0a4ee67b1cbb0ea52792c5bc2ce240ee763fdc8d537bb14b40011a
|
||||
SIZE (magefile-mage-v2.1-2.1_GH0.tar.gz) = 8777256
|
||||
|
|
Loading…
Reference in a new issue