svn commit: r428953 - head/Mk

Mathieu Arnold mat at FreeBSD.org
Mon Dec 19 16:39:43 UTC 2016


Author: mat
Date: Mon Dec 19 16:39:41 2016
New Revision: 428953
URL: https://svnweb.freebsd.org/changeset/ports/428953

Log:
  Add a warning about setting both PORTVERSION and DISTVERSION.
  
  Sponsored by:	Absolight

Modified:
  head/Mk/bsd.port.mk   (contents, props changed)

Modified: head/Mk/bsd.port.mk
==============================================================================
--- head/Mk/bsd.port.mk	Mon Dec 19 16:39:06 2016	(r428952)
+++ head/Mk/bsd.port.mk	Mon Dec 19 16:39:41 2016	(r428953)
@@ -1265,6 +1265,9 @@ _PREMKINCLUDED=	yes
 .if ${PORTVERSION:M*[-_,]*}x != x
 IGNORE=			PORTVERSION ${PORTVERSION} may not contain '-' '_' or ','
 .endif
+.if defined(DISTVERSION)
+DEV_WARNING+=	"Defining both PORTVERSION and DISTVERSION is wrong, only set one and let the framework create the other one"
+.endif
 DISTVERSION?=	${PORTVERSION:S/:/::/g}
 .elif defined(DISTVERSION)
 PORTVERSION=	${DISTVERSION:tl:C/([a-z])[a-z]+/\1/g:C/([0-9])([a-z])/\1.\2/g:C/:(.)/\1/g:C/[^a-z0-9+]+/./g}


More information about the svn-ports-head mailing list