Date: Mon, 19 Dec 2016 16:39:42 +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: r428953 - head/Mk Message-ID: <201612191639.uBJGdgxJ061733@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201612191639.uBJGdgxJ061733>