postgresql: added xml variant (#20224)

This commit is contained in:
TAKAHASHI Shuuji 2020-12-04 20:27:52 +09:00 committed by GitHub
parent 321298b115
commit 98517af024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,6 +44,7 @@ class Postgresql(AutotoolsPackage):
variant('tcl', default=False, description='Enable Tcl bindings.') variant('tcl', default=False, description='Enable Tcl bindings.')
variant('gssapi', default=False, variant('gssapi', default=False,
description='Build with GSSAPI functionality.') description='Build with GSSAPI functionality.')
variant('xml', default=False, description='Build with XML support.')
depends_on('readline', when='lineedit=readline') depends_on('readline', when='lineedit=readline')
depends_on('libedit', when='lineedit=libedit') depends_on('libedit', when='lineedit=libedit')
@ -51,6 +52,7 @@ class Postgresql(AutotoolsPackage):
depends_on('tcl', when='+tcl') depends_on('tcl', when='+tcl')
depends_on('perl', when='+perl') depends_on('perl', when='+perl')
depends_on('python', when='+python') depends_on('python', when='+python')
depends_on('libxml2', when='+xml')
def configure_args(self): def configure_args(self):
config_args = ["--with-openssl"] config_args = ["--with-openssl"]
@ -77,6 +79,9 @@ def configure_args(self):
if '+tcl' in self.spec: if '+tcl' in self.spec:
config_args.append('--with-tcl') config_args.append('--with-tcl')
if '+xml' in self.spec:
config_args.append('--with-libxml')
return config_args return config_args
def install(self, spec, prefix): def install(self, spec, prefix):