Skip to content

Commit

Permalink
Add opam for z3 and z3-static
Browse files Browse the repository at this point in the history
  • Loading branch information
arbipher committed Oct 21, 2021
1 parent b695291 commit b3f96a3
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
37 changes: 37 additions & 0 deletions z3-static.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
opam-version: "2.0"
maintainer: "[email protected]"
authors: "MSR"
homepage: "https://github.com/Z3prover/z3"
bug-reports: "https://github.com/Z3prover/z3/issues"
license: "MIT"
dev-repo: "git+https://github.com/Z3prover/z3.git"
build: [
[ "python2.7" "scripts/mk_make.py" "--ml" "--staticlib"]
[ make "-C" "build" "-j" jobs ]
]

install: [
[ "sh" "-exc" "ocamlfind install z3-static build/api/ml/* build/libz3-static.a"]
[ "cp" "build/z3" "%{bin}%/z3-static"]
]

depends: [
"ocaml"
"ocamlfind" {build}
"zarith"
"conf-gmp"
"conf-python-2-7" {build}
]
x-ci-accept-failures: [
"centos-7" "oraclelinux-7" # C compiler is too old
"oraclelinux-8" # Does not ship python 2.7
]
synopsis: "Z3 solver"
url {
src:
"https://github.com/Z3Prover/z3/archive/refs/tags/z3-4.8.12.tar.gz"
checksum: [
"sha256=e3aaefde68b839299cbc988178529535e66048398f7d083b40c69fe0da55f8b7"
"sha512=0b377923bdaffaca1846aa2abd61003bbecadfcdfc908ed3097d0aac8f32028ac39d93fb4a9c2e2c2bfffbdbee80aa415875f17de6c2ee2ae8e2b7921f788c6e"
]
}
37 changes: 37 additions & 0 deletions z3.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
opam-version: "2.0"
maintainer: "[email protected]"
authors: "MSR"
homepage: "https://github.com/Z3prover/z3"
bug-reports: "https://github.com/Z3prover/z3/issues"
license: "MIT"
dev-repo: "git+https://github.com/Z3prover/z3.git"
build: [
[ "python2.7" "scripts/mk_make.py" "--ml"]
[ make "-C" "build" "-j" jobs ]
]

install: [
[ "sh" "-exc" "ocamlfind install z3 build/api/ml/* build/libz3.*"]
[ "cp" "build/z3" "%{bin}%/z3"]
]

depends: [
"ocaml"
"ocamlfind" {build}
"zarith"
"conf-gmp"
"conf-python-2-7" {build}
]
x-ci-accept-failures: [
"centos-7" "oraclelinux-7" # C compiler is too old
"oraclelinux-8" # Does not ship python 2.7
]
synopsis: "Z3 solver"
url {
src:
"https://github.com/Z3Prover/z3/archive/refs/tags/z3-4.8.12.tar.gz"
checksum: [
"sha256=e3aaefde68b839299cbc988178529535e66048398f7d083b40c69fe0da55f8b7"
"sha512=0b377923bdaffaca1846aa2abd61003bbecadfcdfc908ed3097d0aac8f32028ac39d93fb4a9c2e2c2bfffbdbee80aa415875f17de6c2ee2ae8e2b7921f788c6e"
]
}

0 comments on commit b3f96a3

Please sign in to comment.