Use git source for xapian.

We have move the meson build system (and various fixes) in a git
repository.
This commit is contained in:
Matthieu Gautier 2024-07-22 12:15:53 +02:00
parent b589496076
commit 942dba4d9c
1 changed files with 25 additions and 24 deletions

View File

@ -1,8 +1,4 @@
from .base import ( from .base import Dependency, GitClone, ReleaseDownload, MakeBuilder, MesonBuilder
Dependency,
ReleaseDownload,
MakeBuilder, MesonBuilder
)
from kiwixbuild.utils import Remotefile from kiwixbuild.utils import Remotefile
from kiwixbuild._global import neutralEnv from kiwixbuild._global import neutralEnv
@ -11,17 +7,21 @@ from kiwixbuild._global import neutralEnv
class Xapian(Dependency): class Xapian(Dependency):
name = "xapian-core" name = "xapian-core"
class Source(ReleaseDownload): class Source(GitClone):
src_archive = Remotefile( git_remote = "https://github.com/openzim/xapian-meson.git"
"xapian-core-1.4.23.tar.xz", git_dir = "xapian-core"
"30d3518172084f310dab86d262b512718a7f9a13635aaa1a188e61dc26b2288c"
) # class Source(ReleaseDownload):
meson_patch = Remotefile( # src_archive = Remotefile(
"xapian-core-1.4.23-1_patch.zip", # "xapian-core-1.4.23.tar.xz",
"", # "30d3518172084f310dab86d262b512718a7f9a13635aaa1a188e61dc26b2288c"
"https://public.kymeria.fr/KIWIX/xapian-core-1.4.23-1_patch.zip" # )
) # meson_patch = Remotefile(
archives = [src_archive, meson_patch] # "xapian-core-1.4.23-1_patch.zip",
# "",
# "https://public.kymeria.fr/KIWIX/xapian-core-1.4.23-1_patch.zip"
# )
# archives = [src_archive, meson_patch]
# class Builder(MakeBuilder): # class Builder(MakeBuilder):
# configure_options = [ # configure_options = [
@ -38,6 +38,7 @@ class Xapian(Dependency):
"-Denable-backend-chert=false", "-Denable-backend-chert=false",
"-Denable-backend-remote=false" "-Denable-backend-remote=false"
] ]
subsource_dir = "xapian-core"
@classmethod @classmethod
def get_dependencies(cls, configInfo, allDeps): def get_dependencies(cls, configInfo, allDeps):