From 3e835d0c74d5a45c41d2f332729ab98662958b5e Mon Sep 17 00:00:00 2001 From: Chris Li Date: Fri, 3 Mar 2017 16:02:21 -0500 Subject: [PATCH] Add a patch for macOS native dyn --- kiwix-build.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/kiwix-build.py b/kiwix-build.py index a37019e..f56de7c 100755 --- a/kiwix-build.py +++ b/kiwix-build.py @@ -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)