Please stop using USE_PGSQL and follow my friendly hints, thanks.

Reviewed by:	bapt
This commit is contained in:
Chris Rees 2014-08-25 20:45:09 +00:00
parent 09eeb916f2
commit ec08203aaa
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=366148

View file

@ -240,6 +240,9 @@ _WANT_PGSQL_VER+=${version}
. endfor
. endif
_WANT_PGSQL_VER?= ${WANT_PGSQL_VER}
DEV_WARNING+= "Do not use USE_PGSQL. This port should use USES+= pgsql:${WANT_PGSQL_VER:C,^[0-9],&.,}"
. else
DEV_WARNING+= "Do not use USE_PGSQL. This port should use USES+= pgsql"
. endif
. if !empty(_WANT_PGSQL_VER)
@ -287,11 +290,17 @@ _USE_PGSQL_DEP_server= postgres
. if ${USE_PGSQL:M${depend}}
BUILD_DEPENDS+= ${_USE_PGSQL_DEP_${depend}}:${PORTSDIR}/databases/postgresql${PGSQL_VER}-${depend}
RUN_DEPENDS+= ${_USE_PGSQL_DEP_${depend}}:${PORTSDIR}/databases/postgresql${PGSQL_VER}-${depend}
_PGSQL_DEV_WARN+= ${depend}
. elif ${USE_PGSQL:M${depend}\:*}
BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/databases/postgresql${PGSQL_VER}-${depend}:${USE_PGSQL:M${depend}\:*:C,^[^:]*\:,,}
_PGSQL_DEV_WARN+= ${depend}:${USE_PGSQL:M${depend}\:*:C,^[^:]*\:,,}
. endif
. endfor
. ifdef _PGSQL_DEV_WARN
DEV_WARNING+= "and WANT_PGSQL= ${_PGSQL_DEV_WARN}"
. endif
.else
IGNORE?= cannot install: unknown PostgreSQL version: ${PGSQL_VER}
.endif # Check for correct version