forked from Homebrew/homebrew-core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeja-gnu.rb
46 lines (41 loc) · 2.32 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
37
38
39
40
41
42
43
44
45
46
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.3.tar.gz"
mirror "https://ftpmirror.gnu.org/dejagnu/dejagnu-1.6.3.tar.gz"
sha256 "87daefacd7958b4a69f88c6856dbd1634261963c414079d0c371f589cd66a2e3"
license "GPL-3.0"
bottle do
sha256 cellar: :any_skip_relocation, arm64_sonoma: "ada72df0280151e894c2d132b423a69cce43ffd27de25cf94439f78aa4df4da3"
sha256 cellar: :any_skip_relocation, arm64_ventura: "aae2cc17f126ef380eadd7d9a4909320f38d3b62c5722a2f9a777090cfe61720"
sha256 cellar: :any_skip_relocation, arm64_monterey: "aae2cc17f126ef380eadd7d9a4909320f38d3b62c5722a2f9a777090cfe61720"
sha256 cellar: :any_skip_relocation, arm64_big_sur: "aae2cc17f126ef380eadd7d9a4909320f38d3b62c5722a2f9a777090cfe61720"
sha256 cellar: :any_skip_relocation, sonoma: "70be5d53c34797017fc00015b5a5e65354ce22b49aefd63bc4c8066080a0ca93"
sha256 cellar: :any_skip_relocation, ventura: "0369e312459148a10582a3d6f100167b44a80cfec0f03223099ecdaab7097551"
sha256 cellar: :any_skip_relocation, monterey: "0369e312459148a10582a3d6f100167b44a80cfec0f03223099ecdaab7097551"
sha256 cellar: :any_skip_relocation, big_sur: "0369e312459148a10582a3d6f100167b44a80cfec0f03223099ecdaab7097551"
sha256 cellar: :any_skip_relocation, catalina: "0369e312459148a10582a3d6f100167b44a80cfec0f03223099ecdaab7097551"
sha256 cellar: :any_skip_relocation, mojave: "0369e312459148a10582a3d6f100167b44a80cfec0f03223099ecdaab7097551"
sha256 cellar: :any_skip_relocation, x86_64_linux: "aae2cc17f126ef380eadd7d9a4909320f38d3b62c5722a2f9a777090cfe61720"
end
head do
url "https://git.savannah.gnu.org/git/dejagnu.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
end
uses_from_macos "expect"
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