From d68990400482d4c38092aea1d688d349e21545de Mon Sep 17 00:00:00 2001 From: Chad Nelson Date: Thu, 27 Feb 2025 15:57:06 -0700 Subject: [PATCH] updated urls updated README updated bottle url updated sha256 updated sha256 updated url updated sha256 updated bottle updated sha256 updated sha256 removed bottle from directory updated sha256 updated bottle sha updated formula location updated sha updated sha updated url updated build updated build updated build updated build updated build updated build updated build removed bottles updated update sha testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing testing --- .DS_Store | Bin 0 -> 6148 bytes Formula/msg-cli.rb | 62 +++++++++++++++++++++++++++++++++++++++++++++ README.org | 5 ++++ 3 files changed, 67 insertions(+) create mode 100644 .DS_Store create mode 100644 Formula/msg-cli.rb create mode 100644 README.org diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 :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}", "--libdir=#{prefix}/lib" + system "make" + system "make", "install" + # system "cmake", "-S", ".", "-B", "build", *std_cmake_args + end + + def post_install + system "guild", "compile", "-o", "#{prefix}/lib/guile/3.0/site-ccache/msg/machine.go", "#{prefix}/share/guile/site/3.0/msg/machine.scm" + 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..60b52b8 --- /dev/null +++ b/README.org @@ -0,0 +1,5 @@ +* How to install formula +** Install by adding tap +#+begin_src sh +brew tap MSG/apps https://forge.superkamiguru.org/MSG/homebrew-apps +#+end_src