package/gdal fix config issue with +pg for newer gdal (#30421)
* package/gdal fix config issue with +pg for newer gdal * fix version logic * improve style Co-authored-by: sbulut <sbulut@3vgeomatics.com>
This commit is contained in:
parent
cbf0c3a8c4
commit
84611b5f29
@ -322,8 +322,11 @@ def configure_args(self):
|
|||||||
args.append('--with-liblzma=no')
|
args.append('--with-liblzma=no')
|
||||||
|
|
||||||
if '+pg' in spec:
|
if '+pg' in spec:
|
||||||
args.append('--with-pg={0}'.format(
|
if spec.satisfies('@:2'):
|
||||||
spec['postgresql'].prefix.bin.pg_config))
|
args.append('--with-pg={0}'.format(
|
||||||
|
spec['postgresql'].prefix.bin.pg_config))
|
||||||
|
else:
|
||||||
|
args.append('--with-pg=yes')
|
||||||
else:
|
else:
|
||||||
args.append('--with-pg=no')
|
args.append('--with-pg=no')
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user