summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMichael Kuhn <suraia@ikkoku.de>2017-04-06 15:11:32 +0200
committerAdam J. Stewart <ajstewart426@gmail.com>2017-04-06 08:11:32 -0500
commit095f57409c66d172353edd9b71f88af34b026a7d (patch)
tree9fcdd687fae9295769cd67397a91c0a550e434e4 /var
parent715ac8b7e67b094c094ec290729c5257cd565a0c (diff)
downloadspack-095f57409c66d172353edd9b71f88af34b026a7d.tar.gz
spack-095f57409c66d172353edd9b71f88af34b026a7d.tar.bz2
spack-095f57409c66d172353edd9b71f88af34b026a7d.tar.xz
spack-095f57409c66d172353edd9b71f88af34b026a7d.zip
Fix magics (#3721)
- magics requires perl and perl-xml-parser. - xml2cc_new.pl uses /usr/bin/perl by default.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/magics/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/magics/package.py b/var/spack/repos/builtin/packages/magics/package.py
index cd793ae051..661fb02200 100644
--- a/var/spack/repos/builtin/packages/magics/package.py
+++ b/var/spack/repos/builtin/packages/magics/package.py
@@ -60,6 +60,8 @@ class Magics(Package):
# Currently python is only necessary to run
# building preprocessing scripts.
depends_on('python', type='build')
+ depends_on('perl', type='build')
+ depends_on('perl-xml-parser', type='build')
depends_on('grib-api')
depends_on('proj')
depends_on('boost')
@@ -69,6 +71,10 @@ class Magics(Package):
depends_on('libemos', when='+bufr')
depends_on('qt', when='+metview+qt')
+ def patch(self):
+ filter_file('#!/usr/bin/perl', '#!/usr/bin/env perl',
+ 'tools/xml2cc_new.pl')
+
def install(self, spec, prefix):
options = []
options.extend(std_cmake_args)