diff options
author | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-03-22 15:42:46 +0100 |
---|---|---|
committer | Andoni Morales Alastruey <ylatuya@gmail.com> | 2013-03-25 11:28:02 +0100 |
commit | f37dfded4ac41df59d90bf38dc1810e9b1b66435 (patch) | |
tree | 1f87bf6189e0b67c8956e6cd392d200ec5d7ede9 | |
parent | e70d8ca5811e8bcc5ce343cdf8210a4a2bcacd1d (diff) |
bootsrap:osx: install XML::Parse required for intltool
-rw-r--r-- | cerbero/bootstrap/osx.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cerbero/bootstrap/osx.py b/cerbero/bootstrap/osx.py index 7e107c3..a09d413 100644 --- a/cerbero/bootstrap/osx.py +++ b/cerbero/bootstrap/osx.py @@ -34,8 +34,10 @@ class OSXBootstraper (BootstraperBase): DistroVersion.OS_X_MOUNTAIN_LION: 'GCC-10.7-v2.pkg', DistroVersion.OS_X_LION: 'GCC-10.7-v2.pkg', DistroVersion.OS_X_SNOW_LEOPARD: 'GCC-10.6.pkg'} + CPANM_URL = 'https://raw.github.com/miyagawa/cpanminus/master/cpanm' def start(self): + self._install_perl_deps() # FIXME: enable it when buildbots are properly configured return tar = self.GCC_TAR[self.config.distro_version] @@ -44,6 +46,15 @@ class OSXBootstraper (BootstraperBase): shell.download(url, pkg, check_cert=False) shell.call('sudo installer -pkg %s -target /' % pkg) + def _install_perl_deps(self): + # Install cpan-minus, a zero-conf CPAN wrapper + cpanm_installer = tempfile.NamedTemporaryFile().name + shell.download(self.CPANM_URL, cpanm_installer) + shell.call('chmod +x %s' % cpanm_installer) + # Install XML::Parser, required for intltool + shell.call("%s XML::Parser" % cpanm_installer) + + def register_all(): register_bootstraper(Distro.OS_X, OSXBootstraper) |