Skip to content

Commit

Permalink
Merge pull request easybuilders#1069 from boegel/mono
Browse files Browse the repository at this point in the history
update sanity check for Mono to support recent versions
  • Loading branch information
boegel authored Dec 12, 2016
2 parents 70d3cc1 + c91d856 commit 8a7e36c
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions easybuild/easyblocks/m/mono.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
@author: Pieter De Baets (Ghent University)
@author: Jens Timmerman (Ghent University)
"""
from distutils.version import LooseVersion
import re
import os
import shutil
Expand Down Expand Up @@ -171,8 +172,14 @@ def configure_step(self):
def sanity_check_step(self):
"""Custom sanity check for Mono."""

binaries = ['bin/mono', 'bin/xbuild']
if LooseVersion(self.version) >= LooseVersion('2.11'):
binaries.append('bin/mcs')
else:
binaries.append('bin/gmcs')

custom_paths = {
'files': ['bin/mono', 'bin/gmcs', 'bin/xbuild'],
'dirs': ['include/mono-%s.0/mono' % self.version.split('.')[0], 'lib'],
'files': binaries,
'dirs': ['include/mono-2.0/mono', 'lib'],
}
ConfigureMake.sanity_check_step(self, custom_paths=custom_paths)

0 comments on commit 8a7e36c

Please sign in to comment.