homebrew-core/Formula/deja-gnu.rb

37 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.1.tar.gz"
mirror "https://ftpmirror.gnu.org/dejagnu/dejagnu-1.6.1.tar.gz"
sha256 "bf5b28bb797e0ace4cfc0766a996339c795d8223bef54158be7887046bc01692"
bottle do
cellar :any_skip_relocation
sha256 "1fdb95415e4fb21b2488b8453d2e107da45755e1182259a87fe3ebb87d290b9b" => :high_sierra
sha256 "1fdb95415e4fb21b2488b8453d2e107da45755e1182259a87fe3ebb87d290b9b" => :sierra
sha256 "1fdb95415e4fb21b2488b8453d2e107da45755e1182259a87fe3ebb87d290b9b" => :el_capitan
end
head do
url "https://git.savannah.gnu.org/git/dejagnu.git"
depends_on "automake" => :build
depends_on "autoconf" => :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