summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/samtools/package.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/samtools/package.py b/var/spack/repos/builtin/packages/samtools/package.py
index 2976d5e610..439475b393 100644
--- a/var/spack/repos/builtin/packages/samtools/package.py
+++ b/var/spack/repos/builtin/packages/samtools/package.py
@@ -70,8 +70,11 @@ class Samtools(Package):
make('prefix={0}'.format(prefix), 'install')
# Install dev headers and libs for legacy apps depending on them
- mkdir(prefix.include)
- mkdir(prefix.lib)
- install('sam.h', prefix.include)
- install('bam.h', prefix.include)
- install('libbam.a', prefix.lib)
+ # per https://github.com/samtools/samtools/releases/tag/1.14
+ # these have been removed (bam.h still exists but paired down)
+ if spec.satisfies('@:1.13'):
+ mkdir(prefix.include)
+ mkdir(prefix.lib)
+ install('sam.h', prefix.include)
+ install('bam.h', prefix.include)
+ install('libbam.a', prefix.lib)