subversion: spec.satisfies('^swig') does not work; replace spec.satisfies by "in spec" (#3662)

This commit is contained in:
Milton Woods 2017-04-08 04:03:57 +10:00 committed by Adam J. Stewart
parent a8bd69f01c
commit 04f20320f4

View File

@ -69,9 +69,9 @@ def install(self, spec, prefix):
options.append('--with-sqlite=%s' % spec['sqlite'].prefix) options.append('--with-sqlite=%s' % spec['sqlite'].prefix)
options.append('--with-serf=%s' % spec['serf'].prefix) options.append('--with-serf=%s' % spec['serf'].prefix)
if spec.satisfies('^swig'): if 'swig' in spec:
options.append('--with-swig=%s' % spec['swig'].prefix) options.append('--with-swig=%s' % spec['swig'].prefix)
if spec.satisfies('+perl'): if 'perl' in spec:
options.append( options.append(
'PERL=%s' % join_path(spec['perl'].prefix.bin, 'perl')) 'PERL=%s' % join_path(spec['perl'].prefix.bin, 'perl'))