summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorsnehring <snehring@users.noreply.github.com>2018-10-15 21:07:36 -0500
committerPeter Scheibel <scheibel1@llnl.gov>2018-10-15 19:07:36 -0700
commit8e2015121b7b4efd6cb5f375d058ff5ecab70941 (patch)
tree8fa59eed009b511e8b2e8fc6e18d8a3922daafde /var
parentaae994258cb7b2b35a1ca636e485f6f7d25660f5 (diff)
downloadspack-8e2015121b7b4efd6cb5f375d058ff5ecab70941.tar.gz
spack-8e2015121b7b4efd6cb5f375d058ff5ecab70941.tar.bz2
spack-8e2015121b7b4efd6cb5f375d058ff5ecab70941.tar.xz
spack-8e2015121b7b4efd6cb5f375d058ff5ecab70941.zip
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.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/sspace-standard/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/sspace-standard/package.py b/var/spack/repos/builtin/packages/sspace-standard/package.py
index bf7f6a0679..74e97d8a47 100644
--- a/var/spack/repos/builtin/packages/sspace-standard/package.py
+++ b/var/spack/repos/builtin/packages/sspace-standard/package.py
@@ -55,6 +55,9 @@ class SspaceStandard(Package):
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)