Skip to content

Commit

Permalink
Build with dune. (#331)
Browse files Browse the repository at this point in the history
  • Loading branch information
toots authored Nov 30, 2024
1 parent 39adb1f commit 302cd8d
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 50 deletions.
37 changes: 0 additions & 37 deletions packages/curl-windows/curl-windows.0.9.2/opam

This file was deleted.

2 changes: 1 addition & 1 deletion packages/flexdll-windows/flexdll-windows.0.42/opam
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,6 @@ extra-files: [
["patches/no-gcc_eh.patch" "md5=65bdd2a32d0777a9d8b315df91632166"]
]
url {
src: "https://github.com/alainfrisch/flexdll/archive/0.42.tar.gz"
src: "https://github.com/ocaml/flexdll/archive/0.42.tar.gz"
checksum: "9464ae7a7e566ba7c96336cf2f34cc73"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
diff --git a/curl-helper.c b/curl-helper.c
index 6e3c748..9558cfa 100644
--- a/curl-helper.c
+++ b/curl-helper.c
@@ -3329,10 +3329,13 @@ SETOPT_LONG( BUFFERSIZE)
SETOPT_STRING( AWS_SIGV4)
#endif

+#undef TCP_KEEPALIVE
SETOPT_BOOL( TCP_KEEPALIVE)

+#undef TCP_KEEPIDLE
SETOPT_LONG( TCP_KEEPIDLE)

+#undef TCP_KEEPINTVL
SETOPT_LONG( TCP_KEEPINTVL)

/**
35 changes: 23 additions & 12 deletions packages/ocurl-windows/ocurl-windows.0.9.2/opam
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,32 @@ dev-repo: "git+https://github.com/ygrek/ocurl.git"
bug-reports: "https://github.com/ygrek/ocurl/issues"
tags: ["org:ygrek" "clib:curl"]
build: [
["./configure" "--host=%{conf-gcc-windows:host}%" "--prefix=%{prefix}%" "OCAMLFIND_TOOLCHAIN=windows"]
["env" "OCAMLFIND_TOOLCHAIN=windows" make "OCAMLOPT=ocamlfind ocamlopt" "OCAMLC=ocamlfind ocamlc"]
[ "./configure"
"--host=%{conf-gcc-windows:host}%"
"--prefix=%{prefix}%"
"OCAMLFIND_TOOLCHAIN=windows"
]
[
"dune"
"build"
"-p"
"curl"
"-x"
"windows"
"-j"
jobs
"@install"
]
]
install: [
["env" "OCAMLFIND_TOOLCHAIN=windows"
make "install"]
patches: [
"patches/undef.patch"
]
extra-files: [
["patches/undef.patch" "md5=6a9b6d85af9f73c6c22ae918baa36ed9"]
]
depends: [
"ocaml-windows" {>= "4.02.0"}
"dune"
"ocamlfind" {build}
]
depopts: ["lwt" "lwt_ppx"]
Expand All @@ -26,11 +43,5 @@ depexts: [
synopsis: "Bindings to libcurl"
description: "libcurl is a client-side URL transfer library, supporting HTTP and a multitude of other network protocols (FTP/SMTP/RTSP/etc). This library wrap easy synchronous API (Curl), synchronous parallel and generic asynchronous API (Curl.Multi), and provides an Lwt-enabled asynchronous interface (Curl_lwt)."
url {
src: "https://ygrek.org/p/release/ocurl/ocurl-0.9.2.tar.gz"
checksum: [
"md5=8a4149c6cfa79dabdfde24f308ad1f0c"
"sha256=e0359718c874dacd55c0b596e5dee1d23b4c394b9b5a604f1a6d618217d67763"
"sha512=5d670e32cdd492fa0e495b9b6b5171a9811542a520a777ed87d245ffc28cc5211d94a097750e632ee939ccc6eb91afd4b186b84d72168500e48790800b637400"
]
mirrors: "https://github.com/ygrek/ocurl/releases/download/0.9.2/ocurl-0.9.2.tar.gz"
src: "git+https://github.com/ygrek/ocurl.git#1bc75b8"
}

0 comments on commit 302cd8d

Please sign in to comment.