summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsnehring <snehring@users.noreply.github.com>2022-05-11 17:12:32 -0500
committerGitHub <noreply@github.com>2022-05-11 22:12:32 +0000
commit66d364820058590be7e00c2a9cef78d913d990fb (patch)
tree2a3417db96c41cf11c24e6f109f4489153961729
parentd2fc7b9f7d3e738ee14001581d5f69d7897bf86a (diff)
downloadspack-66d364820058590be7e00c2a9cef78d913d990fb.tar.gz
spack-66d364820058590be7e00c2a9cef78d913d990fb.tar.bz2
spack-66d364820058590be7e00c2a9cef78d913d990fb.tar.xz
spack-66d364820058590be7e00c2a9cef78d913d990fb.zip
bamutil: updating to 1.0.15 (#30623)
* bamutil: updating to 1.0.15 * bamutil: switching to github archive
-rw-r--r--var/spack/repos/builtin/packages/bamutil/package.py26
1 files changed, 18 insertions, 8 deletions
diff --git a/var/spack/repos/builtin/packages/bamutil/package.py b/var/spack/repos/builtin/packages/bamutil/package.py
index b41d564fb0..af17ee24ca 100644
--- a/var/spack/repos/builtin/packages/bamutil/package.py
+++ b/var/spack/repos/builtin/packages/bamutil/package.py
@@ -13,17 +13,18 @@ class Bamutil(MakefilePackage):
"""
homepage = "https://genome.sph.umich.edu/wiki/BamUtil"
- url = "https://genome.sph.umich.edu/w/images/7/70/BamUtilLibStatGen.1.0.13.tgz"
+ url = "https://github.com/statgen/bamUtil/archive/refs/tags/v1.0.15.tar.gz"
+ git = "https://github.com/statgen/bamUtil.git"
+ maintainers = ['snehring']
- version('1.0.13', sha256='16c1d01c37d1f98b98c144f3dd0fda6068c1902f06bd0989f36ce425eb0c592b')
+ version('1.0.15', sha256='24ac4bdb81eded6e33f60dba85ec3d32ebdb06d42f75df775c2632bbfbd8cce9')
+ version('1.0.13', sha256='16c1d01c37d1f98b98c144f3dd0fda6068c1902f06bd0989f36ce425eb0c592b',
+ url='https://genome.sph.umich.edu/w/images/7/70/BamUtilLibStatGen.1.0.13.tgz')
- depends_on('zlib', type=('build', 'link'))
+ depends_on('zlib')
+ depends_on('git', type='build', when='@1.0.15:')
- # Looks like this will be fixed in 1.0.14.
- # https://github.com/statgen/libStatGen/issues/9
- patch('libstatgen-issue-9.patch', when='@1.0.13:')
- # These are fixed in the standalone libStatGen,
- # but bamutil@1.0.13 embeds its own copy, so fix 'em here.
+ patch('libstatgen-issue-9.patch', when='@1.0.13')
patch('libstatgen-issue-19.patch', when='@1.0.13')
patch('libstatgen-issue-17.patch', when='@1.0.13')
patch('libstatgen-issue-7.patch', when='@1.0.13')
@@ -31,6 +32,15 @@ class Bamutil(MakefilePackage):
parallel = False
+ @when('@1.0.15')
+ def edit(self, spec, prefix):
+ filter_file('git://', 'https://', 'Makefile.inc', String=True)
+
+ @when('@1.0.15:')
+ def build(self, spec, prefix):
+ make('cloneLib')
+ make()
+
@property
def install_targets(self):
return ['install', 'INSTALLDIR={0}'.format(self.prefix.bin)]