From 25d71e68f2b540fe8ae9b8025585d8d0e7a79f33 Mon Sep 17 00:00:00 2001 From: Levi Baber Date: Tue, 13 Nov 2018 10:55:59 -0600 Subject: Packages/trinotate fix (#9745) * trinotate: fix perl location * trinotate: not where that is * trinotate: glob * trinotate: needs perl-dbd-sqlite --- var/spack/repos/builtin/packages/trinotate/package.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'var') 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 -- cgit v1.2.3-70-g09d2