aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authormat <mat@FreeBSD.org>2018-05-03 17:16:30 +0800
committermat <mat@FreeBSD.org>2018-05-03 17:16:30 +0800
commitcc2e8d2d8bcc7faff5966843432add18f0a577d1 (patch)
tree083bb007ea4fa17c721646b787520c982b388e73 /Mk
parenta9637afa2f446c0dc1e066760abf19f7124c5e36 (diff)
downloadfreebsd-ports-gnome-cc2e8d2d8bcc7faff5966843432add18f0a577d1.tar.gz
freebsd-ports-gnome-cc2e8d2d8bcc7faff5966843432add18f0a577d1.tar.zst
freebsd-ports-gnome-cc2e8d2d8bcc7faff5966843432add18f0a577d1.zip
Add a warning about setting DISTNAME and USE_GITHUB=yes
Sponsored by: Absolight
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 86205a362c8a..63a2c34f97a4 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1338,8 +1338,12 @@ _SUF2= ,${PORTEPOCH}
PKGVERSION= ${PORTVERSION:C/[-_,]/./g}${_SUF1}${_SUF2}
PKGNAME= ${PKGNAMEPREFIX}${PORTNAME}${PKGNAMESUFFIX}-${PKGVERSION}
DISTVERSIONFULL= ${DISTVERSIONPREFIX}${DISTVERSION:C/:(.)/\1/g}${DISTVERSIONSUFFIX}
-.if defined(USE_GITHUB) && empty(MASTER_SITES:MGHC) && empty(DISTNAME) && empty(USE_GITHUB:Mnodefault)
+.if defined(USE_GITHUB) && empty(MASTER_SITES:MGHC) && empty(USE_GITHUB:Mnodefault)
+. if empty(DISTNAME)
_GITHUB_MUST_SET_DISTNAME= yes
+. else
+DEV_WARNING+= "You are using USE_GITHUB and DISTNAME is set which is wrong. Set GH_ACCOUNT/GH_PROJECT/GH_TAGNAME correctly and remove WRKSRC entirely."
+. endif
.else
DISTNAME?= ${PORTNAME}-${DISTVERSIONFULL}
.endif