diff options
author | Levi Baber <baberlevi@gmail.com> | 2018-11-13 10:55:59 -0600 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2018-11-13 10:55:59 -0600 |
commit | 25d71e68f2b540fe8ae9b8025585d8d0e7a79f33 (patch) | |
tree | 36cb9859020455dbb7a610a64e528b8d2d7fac76 | |
parent | 7938ff9653b626d8f8ed1c31b2819890b2afd3b2 (diff) | |
download | spack-25d71e68f2b540fe8ae9b8025585d8d0e7a79f33.tar.gz spack-25d71e68f2b540fe8ae9b8025585d8d0e7a79f33.tar.bz2 spack-25d71e68f2b540fe8ae9b8025585d8d0e7a79f33.tar.xz spack-25d71e68f2b540fe8ae9b8025585d8d0e7a79f33.zip |
Packages/trinotate fix (#9745)
* trinotate: fix perl location
* trinotate: not where that is
* trinotate: glob
* trinotate: needs perl-dbd-sqlite
-rw-r--r-- | var/spack/repos/builtin/packages/trinotate/package.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/trinotate/package.py b/var/spack/repos/builtin/packages/trinotate/package.py index 718a061ba8..2a48e0d48f 100644 --- a/var/spack/repos/builtin/packages/trinotate/package.py +++ b/var/spack/repos/builtin/packages/trinotate/package.py @@ -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 |