diff options
-rw-r--r-- | var/spack/repos/builtin/packages/trinotate/package.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/trinotate/package.py b/var/spack/repos/builtin/packages/trinotate/package.py index df17f70841..d0a24d608f 100644 --- a/var/spack/repos/builtin/packages/trinotate/package.py +++ b/var/spack/repos/builtin/packages/trinotate/package.py @@ -26,7 +26,6 @@ class Trinotate(Package): depends_on('perl', type='run') depends_on('lighttpd', type='run') 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') @@ -35,6 +34,14 @@ class Trinotate(Package): perlscripts = glob.glob('*.pl') filter_file('#!/usr/bin/perl', '#!/usr/bin/env perl', *perlscripts) + # trinotate web generates a config on run but puts it in a bad place + # this causes issues with permissions; we hack the source to keep it + # in the calling user's homedir + + filter_file('"$FindBin::RealBin/TrinotateWeb.conf/lighttpd.conf.port', + '$ENV{"HOME"} . "/.trinotate_lighttpd.conf.port', + 'run_TrinotateWebserver.pl', string=True) + def install(self, spec, prefix): # most of the perl modules have local deps, install the whole tree mkdirp(prefix.lib) |