diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/blast-plus/package.py | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/blast-plus/package.py b/var/spack/repos/builtin/packages/blast-plus/package.py index 53f09c03a3..7cab51b0be 100644 --- a/var/spack/repos/builtin/packages/blast-plus/package.py +++ b/var/spack/repos/builtin/packages/blast-plus/package.py @@ -88,6 +88,10 @@ class BlastPlus(AutotoolsPackage): description='Build with lzo support') variant('pcre', default=True, description='Build with pcre support') + variant('perl', default=True, + description='Build with perl support') + variant('python', default=True, + description='Build with python support') depends_on('jpeg', when='+jpeg') depends_on('libpng', when='+png') @@ -100,7 +104,8 @@ class BlastPlus(AutotoolsPackage): depends_on('lzo', when='+lzo') depends_on('pcre', when='+pcre') - depends_on('python') + depends_on('python', when='+python') + depends_on('perl', when='+perl') configure_directory = 'c++' @@ -199,4 +204,18 @@ class BlastPlus(AutotoolsPackage): else: config_args.append('--without-pcre') + if '+python' in spec: + config_args.append( + '--with-python={0}'.format(self.spec['python'].prefix) + ) + else: + config_args.append('--without-python') + + if '+perl' in spec: + config_args.append( + '--with-perl={0}'.format(self.spec['perl'].prefix) + ) + else: + config_args.append('--without-python') + return config_args |