magics: use spack perl instead of system perl (#4310)

This commit is contained in:
Milton Woods 2017-05-22 21:45:24 +10:00 committed by Adam J. Stewart
parent 132b3c56bc
commit 8ab8459397

View file

@ -23,6 +23,7 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
import glob
class Magics(Package):
@ -73,10 +74,9 @@ class Magics(Package):
depends_on('libemos', when='+bufr')
depends_on('qt', when='+metview+qt')
@when('@:2.29.6')
def patch(self):
filter_file('#!/usr/bin/perl', '#!/usr/bin/env perl',
'tools/xml2cc_new.pl')
for plfile in glob.glob('*/*.pl'):
filter_file('#!/usr/bin/perl', '#!/usr/bin/env perl', plfile)
def install(self, spec, prefix):
options = []