Index: Mk/bsd.sanity.mk =================================================================== --- Mk/bsd.sanity.mk +++ Mk/bsd.sanity.mk @@ -1,3 +1,6 @@ +#-*- tab-width: 4; -*- +# ex:ts=4 +# # $FreeBSD$ # # MAINTAINER: portmgr@FreeBSD.org @@ -16,9 +19,9 @@ .endif .if exists(${.CURDIR}/../../Mk/bsd.port.mk) -.if ${.CURDIR:H:T} != ${PKGCATEGORY} +. if ${.CURDIR:H:T} != ${PKGCATEGORY} DEV_ERROR+= "The first entry in CATEGORIES should be the directory where the port lives" -.endif +. endif .else DEV_WARNING+= "Not validating first entry in CATEGORIES due to being outside of PORTSDIR. Please ensure this is proper when committing." .endif @@ -95,9 +98,9 @@ .endif .for a in 1 2 3 4 5 6 7 8 9 L N -.if defined(MAN${a}) +. if defined(MAN${a}) DEV_WARNING+= "MAN${a} macros are deprecated when using stage directory" -.endif +. endif .endfor .if defined(MLINKS) @@ -113,9 +116,9 @@ .endif .if defined(LICENSE) -.if ${LICENSE:MBSD} +. if ${LICENSE:MBSD} DEV_WARNING+= "LICENSE must not contain BSD, instead use BSD[234]CLAUSE" -.endif +. endif .else DEV_WARNING+= "Please set LICENSE for this port" .endif @@ -126,25 +129,25 @@ .if defined(USE_PYTHON) && (${USE_PYTHON} == "yes" || ${USE_PYTHON:C/[-0-9.+]*//} == "") _PYTHON_VAL := ${USE_PYTHON} -.if ${_PYTHON_VAL} != "yes" +. if ${_PYTHON_VAL} != "yes" DEV_ERROR+= "USE_PYTHON=${_PYTHON_VAL} is no longer supported, please use USES=python:${_PYTHON_VAL}" -.else +. else DEV_ERROR+= "USE_PYTHON=yes is no longer supported, please use USES=python" -.endif +. endif .endif .if defined(USE_PYTHON_RUN) -.if ${USE_PYTHON_RUN} != "yes" +. if ${USE_PYTHON_RUN} != "yes" DEV_ERROR+= "USE_PYTHON_RUN is no longer supported, please use USES=python:${USE_PYTHON_RUN},run" -.else +. else DEV_ERROR+= "USE_PYTHON_RUN is no longer supported, please use USES=python:run" -.endif +. endif .endif .if defined(USE_PYTHON_BUILD) -.if ${USE_PYTHON_BUILD} != "yes" +. if ${USE_PYTHON_BUILD} != "yes" DEV_ERROR+= "USE_PYTHON_BUILD is no longer supported, please use USES=python:${USE_PYTHON_BUILD},build" -.else +. else DEV_ERROR+= "USE_PYTHON_BUILD is no longer supported, please use USES=python:build" -.endif +. endif .endif .if defined(PYDISTUTILS_INSTALLNOSINGLE) @@ -239,19 +242,19 @@ WANT_PHP_EMB_ALT= USES=php:embed .for a in ${SANITY_DEPRECATED} -.if defined(${a}) +. if defined(${a}) DEV_WARNING+= "${a} is deprecated, please use ${${a}_ALT}" -.endif +. endif .endfor .for a in ${SANITY_NOTNEEDED} -.if defined(${a}) +. if defined(${a}) DEV_WARNING+= "${a} is not needed: ${${a}_REASON}" -.endif +. endif .endfor .for a in ${SANITY_UNSUPPORTED} -.if defined(${a}) +. if defined(${a}) DEV_ERROR+= "${a} is unsupported, please use ${${a}_ALT}" -.endif +. endif .endfor