Skip to content

Commit 4ebdae5

Browse files
committed
Release LLVM 19
1 parent bd0bcfe commit 4ebdae5

File tree

4 files changed

+203
-0
lines changed
  • packages
    • conf-llvm-shared/conf-llvm-shared.19
    • conf-llvm-static/conf-llvm-static.19
    • llvm

4 files changed

+203
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
opam-version: "2.0"
2+
maintainer: "Alan <[email protected]>"
3+
authors: "The LLVM team"
4+
homepage: "http://llvm.org"
5+
bug-reports: "https://llvm.org/bugs/"
6+
license: "MIT"
7+
build: [
8+
["bash" "configure.sh" version "shared"]
9+
]
10+
depends: [
11+
"conf-bash" {build}
12+
]
13+
depexts: [
14+
["llvm@19" "zstd"] {os-distribution = "homebrew" & os = "macos"}
15+
["llvm-19"] {os-distribution = "macports" & os = "macos"}
16+
["llvm-19-dev" "zlib1g-dev" "libzstd-dev"] {os-family = "debian"}
17+
["llvm19-dev"] {os-distribution = "alpine"}
18+
["llvm19"] {os-family = "arch"}
19+
["llvm19-devel"] {os-family = "suse" | os-family = "opensuse"}
20+
["llvm19-devel"] {os-distribution = "fedora" & os-version >= "42"}
21+
["llvm-devel"] {os-distribution = "fedora" & os-version = "41"}
22+
["llvm19-devel" "epel-release"] {os-distribution = "centos"}
23+
["devel/llvm19"] {os = "freebsd"}
24+
]
25+
synopsis: "Virtual package relying on llvm shared library installation"
26+
flags: conf
27+
extra-source "configure.sh" {
28+
src:
29+
"https://raw.githubusercontent.com/ocaml/opam-source-archives/refs/heads/main/patches/conf-llvm/configure.sh.18"
30+
checksum: [
31+
"sha256=3675ad30b93aab67f1d57aa7c700800a3b5954768610ef9ef29bba7483f16936"
32+
"md5=409c0a03dcea76a45719b80a06e2bd71"
33+
]
34+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
opam-version: "2.0"
2+
maintainer: "Alan <[email protected]>"
3+
authors: "The LLVM team"
4+
homepage: "http://llvm.org"
5+
bug-reports: "https://llvm.org/bugs/"
6+
license: "MIT"
7+
build: [
8+
["bash" "configure.sh" version "static"]
9+
]
10+
depends: [
11+
"conf-bash" {build}
12+
]
13+
depexts: [
14+
["llvm@19" "zstd"] {os-distribution = "homebrew" & os = "macos"}
15+
["llvm-19"] {os-distribution = "macports" & os = "macos"}
16+
["llvm-19-dev" "zlib1g-dev" "libzstd-dev"] {os-family = "debian"}
17+
["llvm19-dev"] {os-distribution = "alpine"}
18+
["llvm19"] {os-family = "arch"}
19+
["llvm19-devel"] {os-family = "suse" | os-family = "opensuse"}
20+
["llvm19-devel"] {os-distribution = "fedora" & os-version >= "42"}
21+
["llvm-devel"] {os-distribution = "fedora" & os-version = "41"}
22+
["llvm19-devel" "epel-release"] {os-distribution = "centos"}
23+
["devel/llvm19"] {os = "freebsd"}
24+
]
25+
synopsis: "Virtual package relying on llvm static library installation"
26+
flags: conf
27+
extra-source "configure.sh" {
28+
src:
29+
"https://raw.githubusercontent.com/ocaml/opam-source-archives/refs/heads/main/patches/conf-llvm/configure.sh.18"
30+
checksum: [
31+
"sha256=3675ad30b93aab67f1d57aa7c700800a3b5954768610ef9ef29bba7483f16936"
32+
"md5=409c0a03dcea76a45719b80a06e2bd71"
33+
]
34+
}
35+

packages/llvm/llvm.19-shared/opam

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
opam-version: "2.0"
2+
maintainer: "Alan <[email protected]>"
3+
authors: [
4+
"whitequark <[email protected]>"
5+
"The LLVM team"
6+
]
7+
license: "MIT"
8+
bug-reports: "http://llvm.org/bugs/"
9+
dev-repo: "git+http://llvm.org/git/llvm.git"
10+
doc: "http://llvm.org"
11+
homepage: "http://llvm.org"
12+
build: [
13+
["bash" "-ex" "install.sh" "build"
14+
"--llvm-config" "%{conf-llvm-shared:config}%"
15+
"--libdir" lib
16+
"--cmake" "%{conf-cmake:cmd}%"
17+
"--make" make
18+
"--link-mode" "shared"
19+
"--use-homebrew" {os-distribution = "homebrew"}
20+
]
21+
]
22+
install: [
23+
["bash" "-ex" "install.sh" "install"
24+
"--llvm-config" "%{conf-llvm-shared:config}%"
25+
"--libdir" lib
26+
"--cmake" "%{conf-cmake:cmd}%"
27+
"--make" make
28+
"--link-mode" "shared"
29+
"--use-homebrew" {os-distribution = "homebrew"}
30+
]
31+
]
32+
depends: [
33+
"ocaml" {>= "4.00.0"}
34+
"ctypes" {>= "0.4"}
35+
"ocamlfind" {build}
36+
"conf-llvm-shared" {build & = "19"}
37+
"conf-cmake" {build}
38+
]
39+
patches: [
40+
"AddOCaml.cmake.patch"
41+
]
42+
synopsis: "The OCaml bindings distributed with LLVM"
43+
description: "Note: LLVM should be installed first."
44+
url {
45+
src: "https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.7/llvm-project-19.1.7.src.tar.xz"
46+
checksum: [
47+
"sha256=82401fea7b79d0078043f7598b835284d6650a75b93e64b6f761ea7b63097501"
48+
"md5=0333b37c90e183d5298470d5b70a87e4"
49+
]
50+
}
51+
extra-source "install.sh" {
52+
src:
53+
"https://raw.githubusercontent.com/ocaml/opam-source-archives/main/patches/llvm/install.sh.18"
54+
checksum: [
55+
"sha256=c1f95d0c7ae539fcbe97327c4ed64e7a86009143c34f7e721319407975965bae"
56+
"md5=6e458426d1008d4696662cf7d3432d8b"
57+
]
58+
}
59+
extra-source "AddOCaml.cmake.patch" {
60+
src:
61+
"https://raw.githubusercontent.com/ocaml/opam-source-archives/353cd1c3bbfd32a3ba6309e631bcdd6949c5b2ce/patches/llvm/AddOCaml.cmake.patch.19"
62+
checksum: [
63+
"sha256=e7f8c13b60eeac6dc81ebd6ab9ddd8b6f6272d3351ae608881101b2aef949c8d"
64+
"md5=2fad2f9e7613690301d35db8b09c784f"
65+
]
66+
}
67+

packages/llvm/llvm.19-static/opam

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
opam-version: "2.0"
2+
maintainer: "Alan <[email protected]>"
3+
authors: [
4+
"whitequark <[email protected]>"
5+
"The LLVM team"
6+
]
7+
license: "MIT"
8+
bug-reports: "http://llvm.org/bugs/"
9+
dev-repo: "git+http://llvm.org/git/llvm.git"
10+
doc: "http://llvm.org"
11+
homepage: "http://llvm.org"
12+
build: [
13+
["bash" "-ex" "install.sh" "build"
14+
"--llvm-config" "%{conf-llvm-static:config}%"
15+
"--libdir" lib
16+
"--cmake" "%{conf-cmake:cmd}%"
17+
"--make" make
18+
"--link-mode" "static"
19+
"--use-homebrew" {os-distribution = "homebrew"}
20+
]
21+
]
22+
install: [
23+
["bash" "-ex" "install.sh" "install"
24+
"--llvm-config" "%{conf-llvm-static:config}%"
25+
"--libdir" lib
26+
"--cmake" "%{conf-cmake:cmd}%"
27+
"--make" make
28+
"--link-mode" "static"
29+
"--use-homebrew" {os-distribution = "homebrew"}
30+
]
31+
]
32+
depends: [
33+
"ocaml" {>= "4.00.0"}
34+
"ctypes" {>= "0.4"}
35+
"ocamlfind" {build}
36+
"conf-llvm-static" {build & = "19"}
37+
"conf-cmake" {build}
38+
]
39+
patches: [
40+
"AddOCaml.cmake.patch"
41+
]
42+
synopsis: "The OCaml bindings distributed with LLVM"
43+
description: "Note: LLVM should be installed first."
44+
url {
45+
src: "https://github.com/llvm/llvm-project/releases/download/llvmorg-19.1.7/llvm-project-19.1.7.src.tar.xz"
46+
checksum: [
47+
"sha256=82401fea7b79d0078043f7598b835284d6650a75b93e64b6f761ea7b63097501"
48+
"md5=0333b37c90e183d5298470d5b70a87e4"
49+
]
50+
}
51+
extra-source "install.sh" {
52+
src:
53+
"llvm/install.sh"
54+
checksum: [
55+
"sha256=c1f95d0c7ae539fcbe97327c4ed64e7a86009143c34f7e721319407975965bae"
56+
"md5=6e458426d1008d4696662cf7d3432d8b"
57+
]
58+
}
59+
extra-source "AddOCaml.cmake.patch" {
60+
src:
61+
"https://raw.githubusercontent.com/ocaml/opam-source-archives/353cd1c3bbfd32a3ba6309e631bcdd6949c5b2ce/patches/llvm/AddOCaml.cmake.patch.19"
62+
checksum: [
63+
"sha256=e7f8c13b60eeac6dc81ebd6ab9ddd8b6f6272d3351ae608881101b2aef949c8d"
64+
"md5=2fad2f9e7613690301d35db8b09c784f"
65+
]
66+
}
67+

0 commit comments

Comments
 (0)