Skip to content

Commit

Permalink
Build libcurl with meson.
Browse files Browse the repository at this point in the history
  • Loading branch information
mgautierfr committed Aug 21, 2024
1 parent 04d0ba6 commit 23a6b93
Showing 1 changed file with 37 additions and 37 deletions.
74 changes: 37 additions & 37 deletions kiwixbuild/dependencies/libcurl.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .base import (
Dependency,
ReleaseDownload,
MakeBuilder,
MesonBuilder,
)

from kiwixbuild.utils import Remotefile, pj, Defaultdict, SkipCommand, run_command
Expand All @@ -15,44 +15,44 @@ class LibCurl(Dependency):

class Source(ReleaseDownload):
name = "libcurl"
archive = Remotefile(
"curl-7.67.0.tar.xz",
"f5d2e7320379338c3952dcc7566a140abb49edb575f9f99272455785c40e536c",
"https://curl.haxx.se/download/curl-7.67.0.tar.xz",
src_archive = Remotefile(
"curl-8.4.0.tar.xz",
"16c62a9c4af0f703d28bda6d7bbf37ba47055ad3414d70dec63e2e6336f2a82d",
"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"]
configure_options = [
*[
f"--without-{p}"
for p in (
"libssh2",
"ssl",
"libmetalink",
"librtmp",
"nghttp2",
"libidn2",
"brotli",
)
],
*[
f"--disable-{p}"
for p in (
"ftp",
"file",
"ldap",
"ldaps",
"rtsp",
"dict",
"telnet",
"tftp",
"pop3",
"imap",
"smb",
"smtp",
"gopher",
"manual",
)
],
f"-D{p}=disabled"
for p in (
"ssh",
"ssl",
"rtmp",
"http2",
"idn",
"brotli",
"ftp",
"file",
"ldap",
"ldaps",
"rtsp",
"dict",
"telnet",
"tftp",
"pop3",
"imap",
"smb",
"smtp",
"gopher",
)
]

def _test(self, context):
context.skip("No Test")

0 comments on commit 23a6b93

Please sign in to comment.