homebrew-core/Formula/zile.rb

37 lines
1.2 KiB
Ruby

class Zile < Formula
desc "Text editor development kit"
homepage "https://www.gnu.org/software/zile/"
url "https://ftp.gnu.org/gnu/zile/zile-2.4.14.tar.gz"
mirror "https://ftpmirror.gnu.org/zile/zile-2.4.14.tar.gz"
sha256 "7a78742795ca32480f2bab697fd5e328618d9997d6f417cf1b14e9da9af26b74"
revision 1
bottle do
sha256 "1594935cd47b6dc28f96067bb804a21a1015a2402212f0356e4b2254340d7ce2" => :high_sierra
sha256 "82876797a01a16f229767552fc0cf94b84571872f8c7143410dbfe321b6b1b38" => :sierra
sha256 "23d94b601f31e1802c2c2fc6423147856255f20d2cd250f924542811353267b0" => :el_capitan
end
# https://github.com/mistydemeo/tigerbrew/issues/215
fails_with :gcc_4_0 do
cause "src/funcs.c:1128: error: #pragma GCC diagnostic not allowed inside functions"
end
fails_with :gcc do
cause "src/funcs.c:1128: error: #pragma GCC diagnostic not allowed inside functions"
end
depends_on "pkg-config" => :build
depends_on "help2man" => :build
depends_on "bdw-gc"
def install
system "./configure", "--disable-dependency-tracking", "--prefix=#{prefix}"
system "make", "install"
end
test do
assert_match version.to_s, shell_output("#{bin}/zile --version")
end
end