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:
snehring 2018-10-15 21:07:36 -05:00 committed by Peter Scheibel
parent aae994258c
commit 8e2015121b

View file

@ -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)