2022-01-19 10:14:03 +00:00
|
|
|
class Juliaup < Formula
|
|
|
|
desc "Julia installer and version multiplexer"
|
|
|
|
homepage "https://github.com/JuliaLang/juliaup"
|
2022-01-22 19:51:39 +00:00
|
|
|
url "https://github.com/JuliaLang/juliaup/archive/v1.5.34.tar.gz"
|
|
|
|
sha256 "1b7abf27e161294ceb61c854abcad208ab1aa22d803fbf311be41a65cd19c73a"
|
2022-01-19 10:14:03 +00:00
|
|
|
license "MIT"
|
|
|
|
head "https://github.com/JuliaLang/juliaup.git", branch: "master"
|
|
|
|
|
2022-01-21 22:58:04 +00:00
|
|
|
livecheck do
|
|
|
|
url :stable
|
|
|
|
strategy :github_latest
|
|
|
|
end
|
|
|
|
|
2022-01-19 10:38:35 +00:00
|
|
|
bottle do
|
2022-01-22 21:05:33 +00:00
|
|
|
sha256 cellar: :any_skip_relocation, arm64_monterey: "f753fcd3b687234dd596b80b5fe99b4a13574f2028de8214f2ebc4c48e91983c"
|
|
|
|
sha256 cellar: :any_skip_relocation, arm64_big_sur: "142fdb7d1da7c043b3971979e28f1e159f3231107decdd43feab716377ec6c95"
|
|
|
|
sha256 cellar: :any_skip_relocation, monterey: "08094e8b69acfd4cfe98c07a29fe35a4d5fe0bdf78c41a7714d8dbfd8c5f1ace"
|
|
|
|
sha256 cellar: :any_skip_relocation, big_sur: "38ba429dc7eb515ca232ac650597ce2017000aaa3e13f4d45c5495cdc9e5a1d9"
|
|
|
|
sha256 cellar: :any_skip_relocation, catalina: "45a366cc7092185f241f1a9caca62bc762c402503ee89ba7c0c494e9891a99bc"
|
|
|
|
sha256 cellar: :any_skip_relocation, x86_64_linux: "a6431c7abc5680ea46e08828565a98117d205009310a7612e9b27386b140a62e"
|
2022-01-19 10:38:35 +00:00
|
|
|
end
|
|
|
|
|
2022-01-19 10:14:03 +00:00
|
|
|
depends_on "rust" => :build
|
|
|
|
|
2022-01-20 21:16:00 +00:00
|
|
|
conflicts_with "julia", because: "both install `julia` binaries"
|
|
|
|
|
2022-01-19 10:14:03 +00:00
|
|
|
def install
|
2022-01-20 20:48:46 +00:00
|
|
|
system "cargo", "install", "--bin", "juliaup", *std_cargo_args
|
|
|
|
system "cargo", "install", "--bin", "julialauncher", *std_cargo_args
|
|
|
|
|
|
|
|
bin.install_symlink "julialauncher" => "julia"
|
2022-01-19 10:14:03 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
expected = "Default Channel Version Update"
|
|
|
|
assert_equal expected, shell_output("#{bin}/juliaup status").lines.first.strip
|
|
|
|
end
|
|
|
|
end
|