Add a patch for macOS native dyn

This commit is contained in:
Chris Li 2017-03-03 16:02:21 -05:00 committed by Matthieu Gautier
parent 91952aba33
commit 3e835d0c74
1 changed files with 6 additions and 0 deletions

View File

@ -109,6 +109,9 @@ PACKAGE_NAME_MAPPERS = {
'COMMON': _debian_common + ['default-jdk'],
'ctpp2c': ['ctpp2-utils'],
},
'Darwin_native_dyn': {
'COMMON': ['autoconf', 'automake', 'libtool', 'cmake', 'pkg-config'],
},
}
@ -455,6 +458,9 @@ class BuildEnv:
elif self.distname in ('debian', 'Ubuntu'):
package_installer = 'sudo apt-get install {}'
package_checker = 'LANG=C dpkg -s {} 2>&1 | grep Status | grep "ok installed" 1>/dev/null 2>&1'
elif self.distname == 'Darwin':
package_installer = 'brew install {}'
package_checker = 'brew list -1 | grep -q {}'
mapper_name = "{host}_{target}".format(
host=self.distname,
target=self.platform_info)