postgresql: added xml variant (#20224)
This commit is contained in:
parent
321298b115
commit
98517af024
@ -44,6 +44,7 @@ class Postgresql(AutotoolsPackage):
|
||||
variant('tcl', default=False, description='Enable Tcl bindings.')
|
||||
variant('gssapi', default=False,
|
||||
description='Build with GSSAPI functionality.')
|
||||
variant('xml', default=False, description='Build with XML support.')
|
||||
|
||||
depends_on('readline', when='lineedit=readline')
|
||||
depends_on('libedit', when='lineedit=libedit')
|
||||
@ -51,6 +52,7 @@ class Postgresql(AutotoolsPackage):
|
||||
depends_on('tcl', when='+tcl')
|
||||
depends_on('perl', when='+perl')
|
||||
depends_on('python', when='+python')
|
||||
depends_on('libxml2', when='+xml')
|
||||
|
||||
def configure_args(self):
|
||||
config_args = ["--with-openssl"]
|
||||
@ -77,6 +79,9 @@ def configure_args(self):
|
||||
if '+tcl' in self.spec:
|
||||
config_args.append('--with-tcl')
|
||||
|
||||
if '+xml' in self.spec:
|
||||
config_args.append('--with-libxml')
|
||||
|
||||
return config_args
|
||||
|
||||
def install(self, spec, prefix):
|
||||
|
Loading…
Reference in New Issue
Block a user