Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 4 additions & 9 deletions Formula/cartesi-machine-emulator.rb
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
class CartesiMachineEmulator < Formula
desc "Off-chain implementation of the Cartesi Machine"
homepage "https://github.com/cartesi/machine-emulator"
url "https://github.com/cartesi/machine-emulator/archive/refs/tags/v0.20.0.tar.gz"
sha256 "3746abb72d45dd2388f79fc24b048fe306db8e1f9f7e072176e51b95c4453949"
url "https://github.com/cartesi/machine-emulator/archive/refs/tags/v0.21.0.tar.gz"
sha256 "44fc83cb08a1907e66ab225ccf421b0fdad3f145be35b9a9ffe561d3563e3eda"
license "LGPL-3.0-only"

bottle do
root_url "https://ghcr.io/v2/cartesi/tap"
sha256 arm64_tahoe: "f28b1a0f1549e9afcd175be533051e6bec3c4a27f87e7ef24c0a17dc6f152838"
end

depends_on "boost" => :build
depends_on "pkg-config" => :build
depends_on "libomp"
depends_on "libslirp"
depends_on "lua@5.4"

patch :p1 do
url "https://github.com/cartesi/machine-emulator/releases/download/v0.20.0/add-generated-files.diff"
sha256 "d9c2afcefc2759e7cd37bbedc83d54c81515f0fddb671103b489b8789aee33bb"
url "https://github.com/cartesi/machine-emulator/releases/download/v0.21.0/add-generated-files.diff"
sha256 "596c5e171cac2e784aef01a26d47d19964b8593f74e37e863e0fcc1c9446be23"
end

def install
Expand Down
14 changes: 4 additions & 10 deletions Formula/cartesi-machine-linux-image.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
class CartesiMachineLinuxImage < Formula
desc "Kernel image for the Cartesi Machine"
homepage "https://github.com/cartesi/machine-linux-image"
VERSION = "0.20.0".freeze
LINUX_IMAGE = "linux-6.5.13-ctsi-1-v#{VERSION}.bin".freeze
url "https://github.com/cartesi/image-kernel/releases/download/v#{VERSION}/#{LINUX_IMAGE}"
sha256 "65dd100ff6204346ac2f50f772721358b5c1451450ceb39a154542ee27b4c947"
VERSION = "0.21.0".freeze
LINUX_IMAGE = "linux-6.5.13-ctsi-2-v#{VERSION}.bin".freeze
url "https://github.com/cartesi/machine-linux-image/releases/download/v#{VERSION}/#{LINUX_IMAGE}"
sha256 "5c900060da2db2bfa84cd39cd9cd722988c83c42225f3cac55f2d3157e48f32f"
license "GPL-2.0-only"

bottle do
root_url "https://ghcr.io/v2/cartesi/tap"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_tahoe: "ac3a16d05cdc90a34f7c4dd868cd91163c0ea0be5045d35ccb9cbe4318b8cca3"
end

def install
share.install self.class::LINUX_IMAGE
(etc/"cartesi/images").install_symlink share/self.class::LINUX_IMAGE => "linux.bin"
Expand Down
15 changes: 5 additions & 10 deletions Formula/cartesi-machine-rootfs-image.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
class CartesiMachineRootfsImage < Formula
desc "Rootfs image for the Cartesi Machine"
homepage "https://github.com/cartesi/machine-guest-tools"
VERSION = "v0.20.0-test1".freeze
ROOTFS_IMAGE = "rootfs-ubuntu.ext2".freeze
url "https://github.com/cartesi/machine-rootfs-image/releases/download/#{VERSION}/#{ROOTFS_IMAGE}"
sha256 "a38dbf39bdadc644bb31f1fc427be037b3082c9007afe1d9f2220b20d2789271"
VERSION = "v0.18.0".freeze
ROOTFS_IMAGE = "rootfs-tools.ext2".freeze
url "https://github.com/cartesi/machine-guest-tools/releases/download/#{VERSION}/#{ROOTFS_IMAGE}"
version "0.21.0"
sha256 "6c159937485c99f695021c4f2ea2a57bdadcf4e4bce8e71af5bee3bb9552802e"
license "GPL-2.0-only"

bottle do
root_url "https://ghcr.io/v2/cartesi/tap"
rebuild 1
sha256 cellar: :any_skip_relocation, arm64_tahoe: "aee58d733584f6f45609a4fb1055a51baf36542fbfd4e51e0e6327056e333cab"
end

def install
share.install self.class::ROOTFS_IMAGE
(etc/"cartesi/images").install_symlink share/self.class::ROOTFS_IMAGE => "rootfs.ext2"
Expand Down
11 changes: 2 additions & 9 deletions Formula/cartesi-machine.rb
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
class CartesiMachine < Formula
desc "Meta package for the Cartesi Machine"
homepage "https://cartesi.io"
url "https://github.com/cartesi/machine-emulator/archive/refs/tags/v0.19.0.tar.gz"
sha256 "1a33fb7e0dd7030656ddbb214dcd2f5a569f64e906edb20f149b66b34e1e0dd3"
url "https://github.com/cartesi/machine-emulator/archive/refs/tags/v0.21.0.tar.gz"
sha256 "44fc83cb08a1907e66ab225ccf421b0fdad3f145be35b9a9ffe561d3563e3eda"
license "LGPL-3.0-only"

bottle do
root_url "https://ghcr.io/v2/cartesi/tap"
sha256 cellar: :any_skip_relocation, arm64_sonoma: "8edb6724dffd2ad487d61da3eaab1781f2eb96a65a71af696c812e6286b39bfa"
sha256 cellar: :any_skip_relocation, ventura: "d2c7400e88c12432cf55971ea9ae6edbaf72fa30c14ceeafd0b3f17148b6ffcb"
sha256 cellar: :any_skip_relocation, x86_64_linux: "b3da1acd61897dfd758e257c433140d5e8f53260beec15cb1b21933f90d41e48"
end

depends_on "cartesi-machine-emulator"
depends_on "cartesi-machine-linux-image"
depends_on "cartesi-machine-rootfs-image"
Expand Down