Skip to content
Snippets Groups Projects
Commit d82f8cd4 authored by Justin S's avatar Justin S Committed by Peter Scheibel
Browse files

repeatmasker: perl and HMMER dependency fixes (#11660)

repeatmasker depended on HMMER but was never actually configured to
use it. The package also had many shebangs pointing to random perl
locations, now patched to use Spack's perl installation.
parent e35355f0
No related branches found
No related tags found
No related merge requests found
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import * from spack import *
import glob
class Repeatmasker(Package): class Repeatmasker(Package):
...@@ -71,6 +72,11 @@ def install(self, spec, prefix): ...@@ -71,6 +72,11 @@ def install(self, spec, prefix):
self.spec['ncbi-rmblastn'].prefix.bin, self.spec['ncbi-rmblastn'].prefix.bin,
'Y']) 'Y'])
# set non-default HMMER search
config_answers.extend(['3',
self.spec['hmmer'].prefix,
'N'])
# end configuration # end configuration
config_answers.append('5') config_answers.append('5')
...@@ -83,4 +89,9 @@ def install(self, spec, prefix): ...@@ -83,4 +89,9 @@ def install(self, spec, prefix):
perl = which('perl') perl = which('perl')
perl('configure', input=f) perl('configure', input=f)
# fix perl paths
# every sbang points to perl, so a regex will suffice
for f in glob.glob('*.pm'):
filter_file('#!.*', '#!%s' % spec['perl'].command, f)
install_tree('.', prefix.bin) install_tree('.', prefix.bin)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment