homebrew-core/Formula/deja-gnu.rb

37 lines
1.2 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class DejaGnu < Formula
desc "Framework for testing other programs"
homepage "https://www.gnu.org/software/dejagnu/"
url "https://ftpmirror.gnu.org/dejagnu/dejagnu-1.6.tar.gz"
mirror "https://ftp.gnu.org/gnu/dejagnu/dejagnu-1.6.tar.gz"
sha256 "00b64a618e2b6b581b16eb9131ee80f721baa2669fa0cdee93c500d1a652d763"
2013-03-13 22:51:03 +00:00
2015-08-28 11:14:07 +00:00
bottle do
2016-02-23 22:18:35 +00:00
cellar :any_skip_relocation
2016-08-02 11:03:36 +00:00
sha256 "099657338971c6b84bf135f2935559a4753b2137edd807d777c999edaf0fb8d6" => :el_capitan
sha256 "0d589e4ec11e3d8de7f00abcbb4a62b50e578e15e6d8fafd42371ca9550b04c8" => :yosemite
sha256 "575e2565feb8d2d60c3163a1a8d38c4ba719fd5a523fc147a7812aed7f26fb88" => :mavericks
2015-08-28 11:14:07 +00:00
end
head do
url "http://git.savannah.gnu.org/r/dejagnu.git"
depends_on "automake" => :build
depends_on "autoconf" => :build
end
def install
ENV.j1 # Or fails on Mac Pro
system "autoreconf", "-iv" if build.head?
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
2013-01-27 22:08:30 +00:00
"--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