redundans: add 0.14a (#10006)

Also update install to use globbing
This commit is contained in:
Justin Stanley 2019-01-30 18:55:59 -06:00 committed by Peter Scheibel
parent 9bfcbcc155
commit 993745b919

View file

@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import *
import glob
class Redundans(Package):
@ -11,7 +12,9 @@ class Redundans(Package):
homepage = "https://github.com/Gabaldonlab/redundans"
url = "https://github.com/Gabaldonlab/redundans/archive/v0.13c.tar.gz"
git = "https://github.com/Gabaldonlab/redundans.git"
version('0.14a', commit='a20215a862aed161cbfc79df9133206156a1e9f0')
version('0.13c', '2003fb7c70521f5e430553686fd1a594')
depends_on('python', type=('build', 'run'))
@ -29,16 +32,18 @@ class Redundans(Package):
def install(self, spec, prefix):
sspace_location = join_path(spec['sspace-standard'].prefix,
'SSPACE_Standard_v3.0.pl')
mkdirp(prefix.bin)
filter_file(r'sspacebin = os.path.join(.*)$',
'sspacebin = \'' + sspace_location + '\'',
'redundans.py')
install('redundans.py', prefix.bin)
with working_dir('bin'):
install('fasta2homozygous.py', prefix.bin)
install('fasta2split.py', prefix.bin)
install('fastq2insert_size.py', prefix.bin)
install('fastq2mates.py', prefix.bin)
install('fastq2shuffled.py', prefix.bin)
install('fastq2sspace.py', prefix.bin)
install('filterReads.py', prefix.bin)
binfiles = ['redundans.py', 'bin/filterReads.py']
binfiles.extend(glob.glob('bin/fast?2*.py'))
# new internal dep with 0.14a
if spec.satisfies('@0.14a:'):
binfiles.append('bin/denovo.py')
mkdirp(prefix.bin)
for f in binfiles:
install(f, prefix.bin)