Added updated guile-hall file

This commit is contained in:
Chad Nelson 2025-03-01 08:12:04 -07:00
parent f718d8946f
commit 9282d035aa

45
Formula/guile-hall.rb Normal file
View file

@ -0,0 +1,45 @@
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 "guile"
depends_on "guile-lib"
depends_on "guile-config"
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