Build libcurl with meson.
This commit is contained in:
parent
04d0ba6a92
commit
23a6b93fcc
|
@ -3,7 +3,7 @@ import os
|
||||||
from .base import (
|
from .base import (
|
||||||
Dependency,
|
Dependency,
|
||||||
ReleaseDownload,
|
ReleaseDownload,
|
||||||
MakeBuilder,
|
MesonBuilder,
|
||||||
)
|
)
|
||||||
|
|
||||||
from kiwixbuild.utils import Remotefile, pj, Defaultdict, SkipCommand, run_command
|
from kiwixbuild.utils import Remotefile, pj, Defaultdict, SkipCommand, run_command
|
||||||
|
@ -15,30 +15,29 @@ class LibCurl(Dependency):
|
||||||
|
|
||||||
class Source(ReleaseDownload):
|
class Source(ReleaseDownload):
|
||||||
name = "libcurl"
|
name = "libcurl"
|
||||||
archive = Remotefile(
|
src_archive = Remotefile(
|
||||||
"curl-7.67.0.tar.xz",
|
"curl-8.4.0.tar.xz",
|
||||||
"f5d2e7320379338c3952dcc7566a140abb49edb575f9f99272455785c40e536c",
|
"16c62a9c4af0f703d28bda6d7bbf37ba47055ad3414d70dec63e2e6336f2a82d",
|
||||||
"https://curl.haxx.se/download/curl-7.67.0.tar.xz",
|
"https://curl.se/download/curl-8.4.0.tar.xz",
|
||||||
)
|
)
|
||||||
|
meson_archive = Remotefile(
|
||||||
|
"curl_8.4.0-2_patch.zip",
|
||||||
|
"bbb6ae75225c36ef9bb336cface729794c7c070c623a003fff40bd416042ff6e",
|
||||||
|
"https://public.kymeria.fr/KIWIX/curl_8.4.0-2_patch.zip",
|
||||||
|
)
|
||||||
|
archives = [src_archive, meson_archive]
|
||||||
|
|
||||||
class Builder(MakeBuilder):
|
class Builder(MesonBuilder):
|
||||||
dependencies = ["zlib"]
|
dependencies = ["zlib"]
|
||||||
configure_options = [
|
configure_options = [
|
||||||
*[
|
f"-D{p}=disabled"
|
||||||
f"--without-{p}"
|
|
||||||
for p in (
|
for p in (
|
||||||
"libssh2",
|
"ssh",
|
||||||
"ssl",
|
"ssl",
|
||||||
"libmetalink",
|
"rtmp",
|
||||||
"librtmp",
|
"http2",
|
||||||
"nghttp2",
|
"idn",
|
||||||
"libidn2",
|
|
||||||
"brotli",
|
"brotli",
|
||||||
)
|
|
||||||
],
|
|
||||||
*[
|
|
||||||
f"--disable-{p}"
|
|
||||||
for p in (
|
|
||||||
"ftp",
|
"ftp",
|
||||||
"file",
|
"file",
|
||||||
"ldap",
|
"ldap",
|
||||||
|
@ -52,7 +51,8 @@ class LibCurl(Dependency):
|
||||||
"smb",
|
"smb",
|
||||||
"smtp",
|
"smtp",
|
||||||
"gopher",
|
"gopher",
|
||||||
"manual",
|
|
||||||
)
|
)
|
||||||
],
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
def _test(self, context):
|
||||||
|
context.skip("No Test")
|
||||||
|
|
Loading…
Reference in New Issue