forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeja-gnu.rb
36 lines (32 loc) · 1.24 KB
/
deja-gnu.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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