summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
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)