svn commit: r370464 - head/Mk

Baptiste Daroussin bapt at FreeBSD.org
Wed Oct 8 17:11:53 UTC 2014


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


More information about the svn-ports-all mailing list