summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorLevi Baber <baberlevi@gmail.com>2018-11-13 10:55:59 -0600
committerAdam J. Stewart <ajstewart426@gmail.com>2018-11-13 10:55:59 -0600
commit25d71e68f2b540fe8ae9b8025585d8d0e7a79f33 (patch)
tree36cb9859020455dbb7a610a64e528b8d2d7fac76 /var
parent7938ff9653b626d8f8ed1c31b2819890b2afd3b2 (diff)
downloadspack-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
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/trinotate/package.py7
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