Packages/trinotate fix (#9745)
* trinotate: fix perl location * trinotate: not where that is * trinotate: glob * trinotate: needs perl-dbd-sqlite
This commit is contained in:
parent
7938ff9653
commit
25d71e68f2
1 changed files with 7 additions and 0 deletions
|
@ -5,6 +5,7 @@
|
|||
|
||||
from spack import *
|
||||
import os
|
||||
import glob
|
||||
|
||||
|
||||
class Trinotate(Package):
|
||||
|
@ -27,6 +28,12 @@ class Trinotate(Package):
|
|||
depends_on('perl-dbi', type='run')
|
||||
depends_on('perl-dbd-mysql', type='run')
|
||||
depends_on('perl-cgi', type='run')
|
||||
depends_on('perl-dbd-sqlite', type='run')
|
||||
|
||||
def patch(self):
|
||||
with working_dir(join_path(self.stage.source_path, 'admin/util')):
|
||||
perlscripts = glob.glob('*.pl')
|
||||
filter_file('#!/usr/bin/perl', '#!/usr/bin/env perl', *perlscripts)
|
||||
|
||||
def install(self, spec, prefix):
|
||||
# most of the perl modules have local deps, install the whole tree
|
||||
|
|
Loading…
Reference in a new issue