forked from rdowinton/homebrew-x11
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathddd.rb
47 lines (39 loc) · 1.65 KB
/
ddd.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
47
class Ddd < Formula
homepage "https://www.gnu.org/s/ddd/"
url "http://ftpmirror.gnu.org/ddd/ddd-3.3.12.tar.gz"
mirror "https://ftp.gnu.org/gnu/ddd/ddd-3.3.12.tar.gz"
sha256 "3ad6cd67d7f4b1d6b2d38537261564a0d26aaed077bf25c51efc1474d0e8b65c"
revision 1
bottle do
sha256 "10fadf3297a98b3682f312594a67707f78b6feee6f8ddfa616f4943bd2f5e222" => :yosemite
sha256 "e35574c21a4cd7192596d676e79029964482f623ecaac9372e666f79b276263a" => :mavericks
sha256 "faea737b1f709c7d1a068c34a37a6f13a5c23fc7bf3e3fc6149479014c7c132b" => :mountain_lion
end
depends_on "openmotif"
depends_on :x11
# Needed for OSX 10.9 DP6 build failure:
# https://savannah.gnu.org/patch/?8178
patch :p0 do
url "https://savannah.gnu.org/patch/download.php?file_id=29114"
sha256 "aaacae79ce27446ead3483123abef0f8222ebc13fd61627bfadad96016248af6"
end if MacOS.version >= :mavericks
# https://savannah.gnu.org/bugs/?41997
patch do
url "https://savannah.gnu.org/patch/download.php?file_id=31132"
sha256 "f3683f23c4b4ff89ba701660031d4b5ef27594076f6ef68814903ff3141f6714"
end
def install
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--enable-builtin-app-defaults",
"--enable-builtin-manual",
"--prefix=#{prefix}"
# From MacPorts:
# make will build the executable "ddd" and the X resource file "Ddd" in the same directory,
# as HFS+ is case-insensitive by default, this will loosely FAIL
system "make EXEEXT=exe"
ENV.deparallelize
system "make install EXEEXT=exe"
mv bin/"dddexe", bin/"ddd"
end
end