class GuileHall < Formula desc "Hall is a project manager for Guile modules and applications" homepage "https://gitlab.com/a-sassmannshausen/guile-hall/" url "https://gitlab.com/api/v4/projects/7016408/repository/archive?sha=cc0c9016220de42084f9b61f7353edeb62dbff82" sha256 "997331e60cd009be93fd7d6d3dacaa4eec87499cd6345ee14602ae323318ae62" depends_on "autoconf" => :build depends_on "automake" => :build depends_on "pkg-config" => :build depends_on "texinfo" => :build depends_on "msg/apps/guile-next" depends_on "guile-lib" depends_on "msg/apps/guile-config" bottle do root_url "https://forge.superkamiguru.org/MSG/homebrew-apps/releases/download/guile-hall_main" sha256 arm64_sequoia: "59a2f2434d8c3563abaaf3d88bfc9f17753e4fe095dcfddc4247081a1fd828d6" end def install 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", "install" end def caveats <<~EOS Remember to add the following to your .bashrc or equivalent in order to use this module: export GUILE_LOAD_PATH="#{HOMEBREW_PREFIX}/share/guile/site/3.0" export GUILE_LOAD_COMPILED_PATH="#{HOMEBREW_PREFIX}/lib/guile/3.0/site-ccache" export GUILE_SYSTEM_EXTENSIONS_PATH="#{HOMEBREW_PREFIX}/lib/guile/3.0/extensions" EOS end test do ENV["GUILE_AUTO_COMPILE"] = "0" 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 "#{bin}/hall" end end