Files
homebrew-tap-local/Formula/m4.rb
T

33 lines
1.2 KiB
Ruby

class M4 < Formula
bottle do
root_url "https://homebrew.hyprnet/bottles"
sha256 cellar: :any_skip_relocation, arm64_sequoia: "80f871ba39104ef553d5a15e2c70639c69dd4fb76568842f5dc1ef451918c6a8"
sha256 cellar: :any_skip_relocation, arm64_tahoe: "81e05b29593d5a7a5dc4fe5f245fc62623a84b82c67183bf26385cb86939c6d4"
sha256 cellar: :any_skip_relocation, sequoia: "9956d5e742750c93d61a27ac209e7dfe7a6e0de2dfbc2ea73210741eb2e51461"
sha256 cellar: "/home/linuxbrew/.linuxbrew/Cellar", x86_64_linux: "ba0b5d546365710422739b622d9a2301f9096f78bc7d6dd5b3cb4cc4a55e184f"
end
desc "Macro processing language"
homepage "https://www.gnu.org/software/m4/"
url "https://ftpmirror.gnu.org/gnu/m4/m4-1.4.21.tar.xz"
mirror "https://ftp.gnu.org/gnu/m4/m4-1.4.21.tar.xz"
mirror "http://ftp.gnu.org/gnu/m4/m4-1.4.21.tar.xz"
sha256 "f25c6ab51548a73a75558742fb031e0625d6485fe5f9155949d6486a2408ab66"
license "GPL-3.0-or-later"
compatibility_version 1
keg_only :provided_by_macos
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make"
system "make", "install"
end
test do
assert_match "Homebrew",
pipe_output(bin/"m4", "define(TEST, Homebrew)\nTEST\n")
end
end