# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python from cerbero.utils import shell class Recipe(recipe.Recipe): name = 'mono' version = '3.0.0' licenses = [License.LGPL] stype = SourceType.TARBALL url = 'http://download.mono-project.com/sources/mono/mono-3.0.0.tar.bz2' configure_options = ' --with-gc=included --with-preview=yes' \ '--without-sigaltstack --disable-dtrace ' \ '--with-libgdiplus=$CERBERO_PREFIX ' files_libs = ['libmono-3.0'] files_posix_helper = ['%(sdir)s/libMonoPosixHelper%(srext)s'] def prepare(self): if self.config.target_platform == Platform.DARWIN: self.append_env = {'LDFLAGS': ' -lcharset -lintl'} self.configure_options += ' --without-x' def post_install(self): config = os.path.join(self.config.prefix, 'etc', 'mono', 'config') shell.replace(config, {'libintl.dylib': 'libintl.8.dylib'}) shell.replace(config, {'libintl.so': 'libintl.8.so'})