Add gumbo dependency.

This is needed by zimwriterfs and the package doesn't exist on
ubuntu trusty (used by travis CI).
This commit is contained in:
Matthieu Gautier 2017-11-28 14:30:31 +00:00
parent 19730ed7c3
commit d7ffc4bd34
2 changed files with 21 additions and 2 deletions

View File

@ -196,6 +196,23 @@ class MicroHttpd(Dependency):
configure_option = "--disable-https --without-libgcrypt --without-libcurl" configure_option = "--disable-https --without-libgcrypt --without-libcurl"
class Gumbo(Dependency):
name = "gumbo"
version = "0.10.1"
class Source(ReleaseDownload):
archive = Remotefile('gumbo-0.10.1.tar.gz',
'28463053d44a5dfbc4b77bcf49c8cee119338ffa636cc17fc3378421d714efad',
'https://github.com/google/gumbo-parser/archive/v0.10.1.tar.gz')
def _post_prepare_script(self, context):
context.try_skip(self.extract_path)
command = "./autogen.sh"
self.buildEnv.run_command(command, self.extract_path, context)
Builder = MakeBuilder
class Icu(Dependency): class Icu(Dependency):
name = "icu4c" name = "icu4c"
version = "58.2" version = "58.2"
@ -280,11 +297,11 @@ class ZimTools(Dependency):
class Zimwriterfs(Dependency): class Zimwriterfs(Dependency):
name = "zimwriterfs" name = "zimwriterfs"
extra_packages = ['file', 'gumbo'] extra_packages = ['file']
@property @property
def dependencies(self): def dependencies(self):
base_dependencies = ['libzim', 'zlib', 'lzma', 'xapian-core'] base_dependencies = ['libzim', 'zlib', 'lzma', 'xapian-core', 'gumbo']
if self.buildEnv.platform_info.build != 'native': if self.buildEnv.platform_info.build != 'native':
return base_dependencies + ["icu4c_cross-compile"] return base_dependencies + ["icu4c_cross-compile"]
else: else:

View File

@ -118,6 +118,8 @@ class ReleaseDownload(Source):
self.command('extract', self._extract) self.command('extract', self._extract)
if hasattr(self, 'patches'): if hasattr(self, 'patches'):
self.command('patch', self._patch) self.command('patch', self._patch)
if hasattr(self, '_post_prepare_script'):
self.command('post_prepare_script', self._post_prepare_script)
class GitClone(Source): class GitClone(Source):