this repo has no description

Merge pull request #22050 from wasmerio/attempt2

Package: Wasmer

Kate 5abf1902 d2c35d6b

Changed files
+96
packages
libwasmer
libwasmer.3.0.0~beta
wasmer
wasmer.1.2.1
files
+5
packages/libwasmer/libwasmer.3.0.0~beta/files/config.toml
···
···
+
[source.crates-io]
+
replace-with = "vendored-sources"
+
+
[source.vendored-sources]
+
directory = "vendor"
+6
packages/libwasmer/libwasmer.3.0.0~beta/files/libwasmer.install
···
···
+
lib: [
+
"?package/lib/libwasmer.so"
+
"?package/lib/libwasmer.dylib"
+
"?package/lib/libwasmer.dll"
+
"?package/lib/libwasmer.dll.lib"
+
]
+43
packages/libwasmer/libwasmer.3.0.0~beta/opam
···
···
+
opam-version: "2.0"
+
+
authors: ["wasmer"]
+
maintainer: ["engineering@wasmer.io"]
+
license: "MIT"
+
homepage: "https://wasmer.io/"
+
+
doc: "https://docs.wasmer.io/"
+
bug-reports: "https://github.com/wasmerio/wasmer-ocaml/issues"
+
dev-repo: "git+https://github.com/wasmerio/wasmer-ocaml.git"
+
tags: ["org:wasmer"]
+
+
synopsis: "The official Wasmer library"
+
description: """
+
This package is used by the wasmer package to trigger the installation
+
of the Wasmer library.
+
+
If the build fails because of a Rust version problem, install the Rust
+
toolchain manually (libwasmer requires Rust version 1.59+, see
+
https://rustup.rs/ )."""
+
+
depends: [
+
"conf-rust-2021"
+
]
+
+
url {
+
src: "https://github.com/wasmerio/wasmer/archive/refs/tags/3.0.0-beta.tar.gz"
+
checksum: [
+
"md5=0741bb953e47349954b731c4da1386d4"
+
"sha512=38ec15c601c67468bca255a5a757afaedd6e1924662e3d108e63380a06f26e9f73f1aa0ef0700547885b52205a7d3f84c25bf266704b292b84585103c8369212"
+
]
+
}
+
extra-source "vendor.tar.gz" {
+
src: "https://github.com/wasmerio/wasmer-ocaml/releases/download/v1.2.1%2Bdunefix/libwasmer-vendor.tar.gz"
+
}
+
build: [
+
["mkdir" ".cargo"]
+
["mv" "config.toml" ".cargo"]
+
["sh" "-c" "gunzip vendor.tar.gz && tar xf vendor.tar"]
+
[make "build-capi"]
+
[make "package-capi"]
+
["cp" "package/lib/libwasmer.dylib" "package/lib/libwasmer.so"] {os = "macos"}
+
]
+6
packages/wasmer/wasmer.1.2.1/files/lib-dune
···
···
+
(library
+
(name wasmer)
+
(public_name wasmer)
+
(libraries ctypes ctypes.foreign)
+
(library_flags ("-cclib" "-Wl,-rpath,%{ocaml-config:standard_library}/../libwasmer" "-cclib" "-Wl,--no-as-needed" "-cclib" "%{ocaml-config:standard_library}/../libwasmer/libwasmer%{ocaml-config:ext_dll}" "-cclib" "-Wl,--as-needed"))
+
(flags -w -27-32))
+36
packages/wasmer/wasmer.1.2.1/opam
···
···
+
opam-version: "2.0"
+
+
authors: ["rajdakin"]
+
maintainer: ["engineering@wasmer.io"]
+
license: "MIT"
+
homepage: "https://github.com/wasmerio/wasmer-ocaml"
+
bug-reports: "https://github.com/wasmerio/wasmer-ocaml/issues"
+
dev-repo: "git+https://github.com/wasmerio/wasmer-ocaml.git"
+
tags: ["org:wasmer"]
+
+
url {
+
src: "https://github.com/wasmerio/wasmer-ocaml/archive/refs/tags/v1.2.1+dunefix.tar.gz"
+
checksum: [
+
"md5=be37208390097ed6b7c7d9ede3c1a2a7"
+
"sha512=2422c3b32ae053a9f39336b1c9829ec9a508dd7d303e9a68853287ab7dea90b7cbc57f54a04b20a9fb6217527e1c89e8f806349407db5f8679d90fdf7dd3038e"
+
]
+
}
+
+
synopsis: "OCaml bindings for Wasmer"
+
description: "The official Wasmer bindings for OCaml"
+
+
depends: [
+
"ocaml" {>= "4.14.1"}
+
"dune" {>= "2.0"}
+
"ctypes"
+
"ctypes-foreign"
+
"libwasmer"
+
]
+
build: [
+
["mv" "lib-dune" "lib/dune"]
+
["sed" "-i" ".orig" "s` \"-cclib\" \"-Wl,--no-as-needed\"``" "lib/dune"] {os = "macos"}
+
["sed" "-i" ".orig" "s` \"-cclib\" \"-Wl,--as-needed\"``" "lib/dune"] {os = "macos"}
+
["dune" "subst"] {dev}
+
["dune" "build" "-p" name "-j" jobs]
+
["dune" "runtest" "-p" name "-j" jobs] {with-test}
+
]