subversion: added apxs support (#30381)

This commit is contained in:
Francine Lapid 2022-05-16 02:42:15 -06:00 committed by GitHub
parent 77fb651e01
commit 8b34cabb16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -34,6 +34,7 @@ class Subversion(AutotoolsPackage):
variant('serf', default=True, description='Serf HTTP client library') variant('serf', default=True, description='Serf HTTP client library')
variant('perl', default=False, description='Build with Perl bindings') variant('perl', default=False, description='Build with Perl bindings')
variant('apxs', default=True, description='Build with APXS')
variant('nls', default=True, description='Enable Native Language Support') variant('nls', default=True, description='Enable Native Language Support')
depends_on('apr') depends_on('apr')
@ -95,6 +96,9 @@ def configure_args(self):
if '+perl' in spec: if '+perl' in spec:
args.append('PERL={0}'.format(spec['perl'].command.path)) args.append('PERL={0}'.format(spec['perl'].command.path))
if spec.satisfies('~apxs'):
args.append('APXS=no')
if '+nls' in spec: if '+nls' in spec:
args.extend([ args.extend([
'LDFLAGS={0}'.format(spec['gettext'].libs.search_flags), 'LDFLAGS={0}'.format(spec['gettext'].libs.search_flags),