Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Oct 2014 17:11:53 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r370464 - head/Mk
Message-ID:  <201410081711.s98HBrRM001486@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Wed Oct  8 17:11:52 2014
New Revision: 370464
URL: https://svnweb.freebsd.org/changeset/ports/370464
QAT: https://qat.redports.org/buildarchive/r370464/

Log:
  Check CATEGORIES sanity directly from bsd.sanity.mk
  
  Differential Revision:	https://reviews.freebsd.org/D917
  Reviewed by:	bdrewery

Modified:
  head/Mk/bsd.sanity.mk

Modified: head/Mk/bsd.sanity.mk
==============================================================================
--- head/Mk/bsd.sanity.mk	Wed Oct  8 17:09:39 2014	(r370463)
+++ head/Mk/bsd.sanity.mk	Wed Oct  8 17:11:52 2014	(r370464)
@@ -7,6 +7,15 @@
 WARNING+=	"WITHOUT_NLS is deprecated use OPTIONS_UNSET=NLS instead"
 .endif
 
+.if defined(PKGORIGIN)
+.for _c in ${CATEGORIES}
+_CAT?=	${_c}
+.endfor
+.if ${.CURDIR:H:T} != ${_CAT}
+DEV_ERROR+=	"The first entry in CATEGORIES should be the directory where the port lives"
+.endif
+.endif
+
 #.if defined(WITHOUT_X11)
 #WARNING+=	"WITHOUT_X11 is deprecated use X11 option instead"
 #.endif



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201410081711.s98HBrRM001486>