aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2015-04-28 18:44:04 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2015-04-28 18:44:04 +0000
commitaa6ad6e726c3c4a5cd1f2bf3d5dad7ff89df6a2f (patch)
tree2b59a6775d67f0b251944f26266df4b96cde831b /Mk/bsd.port.mk
parente4b6dab17f52d5c3ebeaf15568d9426f260a6c7a (diff)
downloadports-aa6ad6e726c3c4a5cd1f2bf3d5dad7ff89df6a2f.tar.gz
ports-aa6ad6e726c3c4a5cd1f2bf3d5dad7ff89df6a2f.zip
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index f95b97672cf9..4b3456b3a691 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1316,8 +1316,14 @@ _SUF2= ,${PORTEPOCH}
PKGVERSION= ${PORTVERSION:C/[-_,]/./g}${_SUF1}${_SUF2}
PKGNAME= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}-${PKGVERSION}
DISTVERSIONFULL= ${DISTVERSIONPREFIX}${DISTVERSION:C/:(.)/\1/g}${DISTVERSIONSUFFIX}
-.if defined(USE_GITHUB) && defined(GH_TAGNAME) && !defined(GH_COMMIT)
+.if defined(USE_GITHUB) && !defined(GH_COMMIT) && empty(MASTER_SITES:MGHC)
+# Only add in DISTVERSIONFULL if GH_TAGNAME if set by port. Otherwise
+# GH_TAGNAME defaults to DISTVERSIONFULL; Avoid adding DISTVERSIONFULL in twice.
+. if defined(GH_TAGNAME)
DISTNAME?= ${GH_ACCOUNT}-${GH_PROJECT}-${DISTVERSIONFULL}-${GH_TAGNAME_SANITIZED}
+. else
+DISTNAME?= ${GH_ACCOUNT}-${GH_PROJECT}-${GH_TAGNAME_SANITIZED}
+. endif
.else
DISTNAME?= ${PORTNAME}-${DISTVERSIONFULL}
.endif