git: 267d8dc26c4c - main - framework: Fixup USE_GITHUB when version has multiple + signs.

Mathieu Arnold mat at FreeBSD.org
Tue May 11 13:40:05 UTC 2021


The branch main has been updated by mat:

URL: https://cgit.FreeBSD.org/ports/commit/?id=267d8dc26c4c3126c0171f94cfee73f6689daa67

commit 267d8dc26c4c3126c0171f94cfee73f6689daa67
Author:     Mathieu Arnold <mat at FreeBSD.org>
AuthorDate: 2021-05-11 13:37:07 +0000
Commit:     Mathieu Arnold <mat at FreeBSD.org>
CommitDate: 2021-05-11 13:38:55 +0000

    framework: Fixup USE_GITHUB when version has multiple + signs.
---
 Mk/bsd.sites.mk       | 2 +-
 math/mpfrc++/Makefile | 2 --
 2 files changed, 1 insertion(+), 3 deletions(-)

diff --git a/Mk/bsd.sites.mk b/Mk/bsd.sites.mk
index c205a378865a..ba3124b51421 100644
--- a/Mk/bsd.sites.mk
+++ b/Mk/bsd.sites.mk
@@ -434,7 +434,7 @@ GH_SUBDIR:=	${GH_SUBDIR_DEFAULT}
 GH_TAGNAME_SANITIZED=	${GH_TAGNAME:S,/,-,g}
 # GitHub silently converts tags starting with v to not have v in the filename
 # and extraction directory.  It also replaces + with -.
-GH_TAGNAME_EXTRACT=	${GH_TAGNAME_SANITIZED:C/^[vV]([0-9])/\1/:S/+/-/g}
+GH_TAGNAME_EXTRACT=	${GH_TAGNAME_SANITIZED:C/^[vV]([0-9])/\1/:S/+/-/g:C/--*/-/g}
 .  endif
 # This new scheme rerolls distfiles. Also ensure they are renamed to avoid
 # conflicts. Use _GITHUB_REV in case github changes their zipping or structure
diff --git a/math/mpfrc++/Makefile b/math/mpfrc++/Makefile
index 822c92a7ad4a..690f98830ed1 100644
--- a/math/mpfrc++/Makefile
+++ b/math/mpfrc++/Makefile
@@ -16,8 +16,6 @@ GH_PROJECT=	mpreal
 NO_BUILD=	yes
 NO_ARCH=	yes
 
-WRKSRC=		${WRKDIR}/${GH_PROJECT}-mpfrc-${DISTVERSION}
-
 PLIST_FILES=	include/mpreal.h
 
 do-install:


More information about the dev-commits-ports-all mailing list