Date: Thu, 3 May 2018 09:16:30 +0000 (UTC) From: Mathieu Arnold <mat@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r468917 - head/Mk Message-ID: <201805030916.w439GUY8052889@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mat Date: Thu May 3 09:16:30 2018 New Revision: 468917 URL: https://svnweb.freebsd.org/changeset/ports/468917 Log: Add a warning about setting DISTNAME and USE_GITHUB=yes Sponsored by: Absolight Modified: head/Mk/bsd.port.mk (contents, props changed) Modified: head/Mk/bsd.port.mk ============================================================================== --- head/Mk/bsd.port.mk Thu May 3 09:16:21 2018 (r468916) +++ head/Mk/bsd.port.mk Thu May 3 09:16:30 2018 (r468917) @@ -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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805030916.w439GUY8052889>