this repo has no description

Have a try at releasing LLVM 16+nnp

Alan Hu 778eb0f5 49cc3664

Changed files
+89
packages
conf-llvm
conf-llvm.16
llvm
llvm.16.0.6+nnp
+27
packages/conf-llvm/conf-llvm.16/files/configure.sh
···
···
+
#!/bin/bash
+
+
set -e
+
set -x
+
+
version=${1/%.?.?/}
+
+
if hash brew 2>/dev/null; then
+
brew_llvm_config="$(brew --cellar)"/llvm*/${version}*/bin/llvm-config
+
fi
+
+
shopt -s nullglob
+
for llvm_config in llvm-config-$version llvm-config-${version}.0 llvm-config${version}0 llvm-config-mp-$version llvm-config-mp-${version}.0 llvm${version}-config llvm-config-${version}-32 llvm-config-${version}-64 llvm-config $brew_llvm_config; do
+
llvm_version="`$llvm_config --version`" || true
+
case $llvm_version in
+
$version*)
+
echo "config: \"$llvm_config\"" >> conf-llvm.config
+
echo "version: \"$llvm_version\"" >> conf-llvm.config
+
exit 0;;
+
*)
+
echo "Note: '$llvm_config' doesn't match the required version. Got '$llvm_version' but required '$version'."
+
continue;;
+
esac
+
done
+
+
echo "Error: LLVM ${version} is not installed."
+
exit 1
+26
packages/conf-llvm/conf-llvm.16/opam
···
···
+
opam-version: "2.0"
+
maintainer: "Kate <kit.ty.kate@disroot.org>"
+
authors: "The LLVM team"
+
homepage: "http://llvm.org"
+
bug-reports: "https://llvm.org/bugs/"
+
license: "MIT"
+
build: [
+
["bash" "configure.sh" version]
+
]
+
depends: [
+
"conf-bash" {build}
+
]
+
depexts: [
+
["llvm@16"] {os-distribution = "homebrew" & os = "macos"}
+
["llvm-16"] {os-distribution = "macports" & os = "macos"}
+
["llvm-16-dev" "zlib1g-dev" "libzstd-dev"] {os-family = "debian"}
+
["llvm16-dev"] {os-distribution = "alpine"}
+
["llvm16"] {os-family = "arch"}
+
["llvm16-devel"] {os-family = "suse"}
+
["llvm16-devel"] {os-distribution = "fedora"}
+
["llvm16-devel" "epel-release"] {os-distribution = "centos"}
+
["devel/llvm16"] {os = "freebsd"}
+
]
+
synopsis: "Virtual package relying on llvm library installation"
+
extra-files: ["configure.sh" "md5=633155a6495a7afd1c87ffd0b94e8cf9"]
+
flags: conf
+36
packages/llvm/llvm.16.0.6+nnp/opam
···
···
+
opam-version: "2.0"
+
synopsis: "The OCaml bindings distributed with LLVM"
+
description: "Note: LLVM should be installed first."
+
maintainer: "Alan Hu <alanh@ccs.neu.edu>"
+
authors: [
+
"Alan Hu <alanh@ccs.neu.edu>"
+
"Kate <kit-ty-kate@outlook.com>"
+
"Gordon Henriksen <gordonhenriksen@mac.com>"
+
"whitequark <whitequark@whitequark.org>"
+
"The LLVM team"
+
]
+
license: "Apache-2.0 WITH LLVM-exception"
+
homepage: "http://llvm.moe"
+
doc: "http://llvm.moe/ocaml"
+
bug-reports: "http://llvm.org/bugs/"
+
depends: [
+
"ocaml" {>= "4.00.0"}
+
"dune" {>= "2.7"}
+
"ctypes" {>= "0.4"}
+
"conf-llvm" {build & = "16"}
+
]
+
build: [
+
["./setup.sh" conf-llvm:config]
+
["dune" "build" "--release" "-j" jobs]
+
["rm" "%{name}%.install"]
+
]
+
install: ["./install.sh" prefix]
+
dev-repo: "git+https://github.com/alan-j-hu/llvm-dune.git"
+
url {
+
src:
+
"https://github.com/alan-j-hu/llvm-dune/releases/download/v16.0.6%2Bnnp/llvm-dune-full-minified-16.0.6.tar.gz"
+
checksum: [
+
"md5=d2bf13c08c943c69f1a29ec5b830c143"
+
"sha512=6abc12221eeea6bb26f457dee5f8a077d945583a48891bef7249e6129b8125a5151b92dec0cefc09b124fe988cea8c521123c95d74dd4cd9d87a282c17865fe2"
+
]
+
}