Update url of libzim and zimwriterfs.

The openzim repository has been split into different smaller repositories.
Especially libzim and zimwriterfs.
This commit is contained in:
Matthieu Gautier 2017-04-08 17:49:27 +02:00
parent 308cfa6986
commit 82625ed62e
1 changed files with 13 additions and 16 deletions

View File

@ -230,23 +230,14 @@ class Icu_cross_compile(Icu):
return super().configure_option + " --with-cross-build=" + icu_native_dep.builder.build_path return super().configure_option + " --with-cross-build=" + icu_native_dep.builder.build_path
class OpenzimSource(GitClone):
git_remote = "https://gerrit.wikimedia.org/r/p/openzim.git"
git_dir = "openzim"
def _post_prepare_script(self, context):
context.try_skip(self.git_path)
command = "./autogen.sh"
self.buildEnv.run_command(command, pj(self.git_path, 'zimwriterfs'), context)
class Libzim(Dependency): class Libzim(Dependency):
name = "libzim" name = "libzim"
Source = OpenzimSource class Source(GitClone):
git_remote = "https://github.com/openzim/libzim.git"
git_dir = "libzim"
class Builder(MesonBuilder): Builder = MesonBuilder
subsource_dir = "zimlib"
class Zimwriterfs(Dependency): class Zimwriterfs(Dependency):
@ -261,10 +252,16 @@ class Zimwriterfs(Dependency):
else: else:
return base_dependencies + ["icu4c"] return base_dependencies + ["icu4c"]
Source = OpenzimSource class Source(GitClone):
git_remote = "https://github.com/openzim/zimwriterfs.git"
git_dir = "zimwriterfs"
class Builder(MakeBuilder): def _post_prepare_script(self, context):
subsource_dir = "zimwriterfs" context.try_skip(self.git_path)
command = "./autogen.sh"
self.buildEnv.run_command(command, self.git_path, context)
Builder = MakeBuilder
class Kiwixlib(Dependency): class Kiwixlib(Dependency):