aboutsummaryrefslogtreecommitdiff
path: root/Mk/bsd.port.mk
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2015-03-20 20:07:50 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2015-03-20 20:07:50 +0000
commit37a1520519ee83036c46ea4a7bef0737f7af41aa (patch)
treed55fb2451f67f6538b539550623fa95154877b37 /Mk/bsd.port.mk
parent16488a9305b16333c943d98a656eed0a4b456eb0 (diff)
downloadports-37a1520519ee83036c46ea4a7bef0737f7af41aa.tar.gz
ports-37a1520519ee83036c46ea4a7bef0737f7af41aa.zip
Notes
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r--Mk/bsd.port.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 0659f327ce97..5e4831792fa4 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1353,7 +1353,11 @@ _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)
+DISTNAME?= ${GH_ACCOUNT}-${GH_PROJECT}-${DISTVERSIONFULL}-${GH_TAGNAME}
+.else
DISTNAME?= ${PORTNAME}-${DISTVERSIONFULL}
+.endif
INDEXFILE?= INDEX-${OSVERSION:C/([0-9]*)[0-9]{5}/\1/}