From 8e2015121b7b4efd6cb5f375d058ff5ecab70941 Mon Sep 17 00:00:00 2001 From: snehring Date: Mon, 15 Oct 2018 21:07:36 -0500 Subject: 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. --- var/spack/repos/builtin/packages/sspace-standard/package.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'var') 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) -- cgit v1.2.3-70-g09d2