From e9863f56f3335c37e342556f6758f1439226fa1d Mon Sep 17 00:00:00 2001 From: "Aronnax, Miles V. [ISU/LAS]" Date: Fri, 28 Sep 2018 14:45:54 -0500 Subject: Gapfiller 1.10 f01 (#9163) * GapFiller.pl fixes: line endings, env perl, convert to Getopt::Std, requires perl with threads. * GapFiller.pl fixed source path, install location. * Fixed missing space. --- .../repos/builtin/packages/gapfiller/package.py | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/var/spack/repos/builtin/packages/gapfiller/package.py b/var/spack/repos/builtin/packages/gapfiller/package.py index dc4e9ac9c8..35f8b106c8 100644 --- a/var/spack/repos/builtin/packages/gapfiller/package.py +++ b/var/spack/repos/builtin/packages/gapfiller/package.py @@ -24,6 +24,7 @@ ############################################################################## from spack import * import os +import glob class Gapfiller(Package): @@ -44,9 +45,20 @@ class Gapfiller(Package): return "file://{0}/39GapFiller_v{1}_linux-x86_64.tar.gz".format( os.getcwd(), version.dashed) - depends_on('perl', type=('build', 'run')) + depends_on('perl+threads', type=('build', 'run')) + + def patch(self): + with working_dir('.'): + files = glob.iglob("*.pl") + for file in files: + change = FileFilter(file) + change.filter('usr/bin/perl', 'usr/bin/env perl') + change.filter('require "getopts.pl";', 'use Getopt::Std;') + change.filter('&Getopts', 'getopts') + change.filter('\r', '') + set_executable(file) def install(self, spec, prefix): - install_tree('bowtie', prefix.bowtie) - install_tree('bwa', prefix.bwa) - install('GapFiller.pl', prefix) + install_tree('bowtie', prefix.bin.bowtie) + install_tree('bwa', prefix.bin.bwa) + install('GapFiller.pl', prefix.bin) -- cgit v1.2.3-70-g09d2