homebrew-core/Formula/deja-gnu.rb
2019-02-27 15:03:39 +08:00

36 lines
1.2 KiB
Ruby

class DejaGnu < Formula
desc "Framework for testing other programs"
homepage "https://www.gnu.org/software/dejagnu/"
url "https://ftp.gnu.org/gnu/dejagnu/dejagnu-1.6.2.tar.gz"
mirror "https://ftpmirror.gnu.org/dejagnu/dejagnu-1.6.2.tar.gz"
sha256 "0d0671e1b45189c5fc8ade4b3b01635fb9eeab45cf54f57db23e4c4c1a17d261"
bottle do
cellar :any_skip_relocation
sha256 "eea1adea3a1c062fd6ba0e85fefebe9f9036736a9d3a3744cec79123390270f3" => :mojave
sha256 "eea1adea3a1c062fd6ba0e85fefebe9f9036736a9d3a3744cec79123390270f3" => :high_sierra
sha256 "5c1100eaf8ae4f28b1c4311241ddff8e0d195d0d241e106051bc60490d28d0e5" => :sierra
end
head do
url "https://git.savannah.gnu.org/git/dejagnu.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
end
def install
ENV.deparallelize # Or fails on Mac Pro
system "autoreconf", "-iv" if build.head?
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
# DejaGnu has no compiled code, so go directly to "make check"
system "make", "check"
system "make", "install"
end
test do
system "#{bin}/runtest"
end
end