39 lines
1.3 KiB
Ruby
39 lines
1.3 KiB
Ruby
class Zile < Formula
|
|
desc "Text editor development kit"
|
|
homepage "https://www.gnu.org/software/zile/"
|
|
url "https://ftpmirror.gnu.org/zile/zile-2.4.12.tar.gz"
|
|
mirror "https://ftp.gnu.org/gnu/zile/zile-2.4.12.tar.gz"
|
|
sha256 "292d8d38c23e77403cbd8c16bdea742aebb3573d9ab2545bd87f5c3e1bc75071"
|
|
|
|
bottle do
|
|
sha256 "8a1abde98fa079e54148bfab7a4c0311be435d14bd96794501a5fbc6330d9906" => :sierra
|
|
sha256 "7e9bea8f381836735410d87d0c66f879df347c895cdea89e34ead9ec09097976" => :el_capitan
|
|
sha256 "6314085b7f33206b28706e6682f27948a1b2b516d3002fc67bcd4947576880fe" => :yosemite
|
|
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
|
|
|
|
fails_with :llvm 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
|