sspace-standard: use Getopt::Std instead of getopts.pl (#9516)
getopts.pl is not listed as a Spack dependency of sspace-standard, so without this change, this package was only working on systems where getopts.pl was already installed.
This commit is contained in:
parent
aae994258c
commit
8e2015121b
1 changed files with 3 additions and 0 deletions
|
@ -55,6 +55,9 @@ def install(self, spec, prefix):
|
|||
for s in scripts:
|
||||
filter_file('/usr/bin/perl', '/usr/bin/env perl',
|
||||
s, string=True)
|
||||
filter_file('require "getopts.pl";', 'use Getopt::Std;',
|
||||
s, string=True)
|
||||
filter_file('&Getopts(', 'getopts(', s, string=True)
|
||||
|
||||
install_tree('bin', prefix.bin)
|
||||
install_tree('bowtie', prefix.bowtie)
|
||||
|
|
Loading…
Reference in a new issue