Skip to content
Snippets Groups Projects
Commit 6c4e0b1b authored by Justin Stanley's avatar Justin Stanley Committed by Peter Scheibel
Browse files

sspace-standard: add perl-perl4-corelibs dep, fix perl scripts (#9473)

perl scripts were pointing to /usr/bin/perl, changed to point to
the spack-installed perl
parent ca0d9ae7
No related branches found
No related tags found
No related merge requests found
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
############################################################################## ##############################################################################
from spack import * from spack import *
import os import os
import glob
class SspaceStandard(Package): class SspaceStandard(Package):
...@@ -42,14 +43,25 @@ class SspaceStandard(Package): ...@@ -42,14 +43,25 @@ class SspaceStandard(Package):
version('3.0', '7e171b4861b9d514e80aafc3d9cdf554') version('3.0', '7e171b4861b9d514e80aafc3d9cdf554')
depends_on('perl+threads', type=('build', 'run')) depends_on('perl+threads', type=('build', 'run'))
depends_on('perl-perl4-corelibs', type=('build', 'run'))
def install(self, spec, prefix): def install(self, spec, prefix):
rootscript = 'SSPACE_Standard_v{0}.pl'.format(self.version)
scripts = [rootscript]
scripts.extend(glob.glob('tools/*.pl'))
scripts.extend(glob.glob('bwa/*.pl'))
for s in scripts:
filter_file('/usr/bin/perl', '/usr/bin/env perl',
s, string=True)
install_tree('bin', prefix.bin) install_tree('bin', prefix.bin)
install_tree('bowtie', prefix.bowtie) install_tree('bowtie', prefix.bowtie)
install_tree('bwa', prefix.bwa) install_tree('bwa', prefix.bwa)
install_tree('dotlib', prefix.dotlib) install_tree('dotlib', prefix.dotlib)
install_tree('tools', prefix.tools) install_tree('tools', prefix.tools)
install('SSPACE_Standard_v{0}.pl'.format(self.version), prefix) install(rootscript, prefix)
def setup_environment(self, spack_env, run_env): def setup_environment(self, spack_env, run_env):
run_env.set('SSPACE_HOME', prefix) run_env.set('SSPACE_HOME', prefix)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment