From ae79b8fd49400a5b938c715709c7c84679c363cf Mon Sep 17 00:00:00 2001 From: Chad Nelson Date: Thu, 27 Feb 2025 15:57:06 -0700 Subject: [PATCH] updated urls --- Formula/msg-cli.rb | 58 ++++++++++++++++++++++++++++++++++++++++++++++ README.org | 10 ++++++++ 2 files changed, 68 insertions(+) create mode 100644 Formula/msg-cli.rb create mode 100644 README.org diff --git a/Formula/msg-cli.rb b/Formula/msg-cli.rb new file mode 100644 index 0000000..dccd291 --- /dev/null +++ b/Formula/msg-cli.rb @@ -0,0 +1,58 @@ +# Documentation: https://docs.brew.sh/Formula-Cookbook +# https://rubydoc.brew.sh/Formula +# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! +class MsgCli < Formula + desc "MacOS Subsystem for Guix - Creates a virtual machine for running a local guix environment on your mac" + homepage "https://superkamiguru.org/projects/msg.html" + url "https://forge.superkamiguru.org/MSG/msg-cli/archive/v0.1.0.tar.gz" + sha256 "8092e3e240dd79e8254158b6b73a401845b84268a2c6fa80f6a5e9ced51e52f4" + license "AGPL-3.0-or-later" + + bottle do + root_url "https://forge.superkamiguru.org/MSG/homebrew-msg/releases/tag/msg-cli_v0.1.0" + sha256 arm64_sequoia: "e840f2176ffabecb65b0c3e1cbd9c9509ae2d1f33007197681bac0dad0f9e513" + end + + # depends_on "cmake" => :build + depends_on "wget" + depends_on "qemu" + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + depends_on "guile-next" + depends_on "texinfo" + # Additional dependency + # resource "" do + # url "" + # sha256 "" + # end + + def install + # Remove unrecognized options if they cause configure to fail + # https://rubydoc.brew.sh/Formula.html#std_configure_args-instance_method + ENV["GUILE_AUTO_COMPILE"] = "0" + + # We need this so we can find other modules. + ENV["GUILE_LOAD_PATH"] = HOMEBREW_PREFIX/"share/guile/site/3.0" + ENV["GUILE_LOAD_COMPILED_PATH"] = HOMEBREW_PREFIX/"lib/guile/3.0/site-ccache" + ENV["GUILE_SYSTEM_EXTENSIONS_PATH"] = HOMEBREW_PREFIX/"lib/guile/3.0/extensions" + system "autoreconf", "-vif" + system "./configure", "--prefix=#{prefix}" + system "make" + system "make", "install" + # system "cmake", "-S", ".", "-B", "build", *std_cmake_args + end + + test do + # `test do` will create, run in and delete a temporary directory. + # + # This test will fail and we won't accept that! For Homebrew/homebrew-core + # this will need to be a test that verifies the functionality of the + # software. Run the test with `brew test msg-cli`. Options passed + # to `brew install` such as `--HEAD` also need to be provided to `brew test`. + # + # The installed folder is not in the path, so use the entire path to any + # executables being tested: `system bin/"program", "do", "something"`. + system "false" + end +end diff --git a/README.org b/README.org new file mode 100644 index 0000000..ed8dab8 --- /dev/null +++ b/README.org @@ -0,0 +1,10 @@ +* How to install formula +** To install without adding tap +#+begin_src sh +brew install MSG/apps/ https://forge.superkamiguru.org/MSG/homebrew-apps +#+end_src + +** Install with adding tap +#+begin_src sh +brew tap MSG/apps https://forge.superkamiguru.org/MSG/homebrew-apps +#+end_src