homebrew-core/Formula/ddd.rb

56 lines
1.9 KiB
Ruby
Raw Normal View History

2017-01-25 10:24:16 +00:00
class Ddd < Formula
desc "Graphical front-end for command-line debuggers"
homepage "https://www.gnu.org/s/ddd/"
2017-04-23 05:13:15 +00:00
url "https://ftp.gnu.org/gnu/ddd/ddd-3.3.12.tar.gz"
mirror "https://ftpmirror.gnu.org/ddd/ddd-3.3.12.tar.gz"
2017-01-25 10:24:16 +00:00
sha256 "3ad6cd67d7f4b1d6b2d38537261564a0d26aaed077bf25c51efc1474d0e8b65c"
revision 1
2017-01-27 02:33:28 +00:00
bottle do
sha256 "c37e9851b799befc425280b8e62e2c7b12dc79ecf46eaed9e740f9e2ef87d373" => :sierra
sha256 "0effedf657591027f917ea1dd048e32e136da61490ba64a51e1b8dddad17acdf" => :el_capitan
sha256 "9753fcc17d509faf60b8566da742c8eaaefc2e52e5d360366b6fa827a61c733b" => :yosemite
end
2017-01-25 10:24:16 +00:00
depends_on "openmotif"
depends_on :x11
# Needed for OSX 10.9 DP6 build failure:
# https://savannah.gnu.org/patch/?8178
if MacOS.version >= :mavericks
patch :p0 do
url "https://savannah.gnu.org/patch/download.php?file_id=29114"
sha256 "aaacae79ce27446ead3483123abef0f8222ebc13fd61627bfadad96016248af6"
end
end
# 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
test do
output = shell_output("#{bin}/ddd --version")
output.force_encoding("ASCII-8BIT") if output.respond_to?(:force_encoding)
assert_match version.to_s, output
end
end