homebrew-core/Formula/bdw-gc.rb

40 lines
1.3 KiB
Ruby
Raw Normal View History

2011-03-10 05:11:03 +00:00
class BdwGc < Formula
desc "Garbage collector for C and C++"
2014-06-22 00:50:34 +00:00
homepage "http://www.hboehm.info/gc/"
url "http://www.hboehm.info/gc/gc_source/gc-7.4.2.tar.gz"
2015-07-14 10:10:55 +00:00
sha256 "63320ad7c45460e4a40e03f5aa4c6893783f21a16416c3282b994f933312afa2"
2014-02-22 19:34:39 +00:00
bottle do
2015-07-16 23:51:45 +00:00
revision 2
2015-09-14 07:07:58 +00:00
sha256 "ba0257546369cd1879d66d3f1302194ae39767ccb5b012a20d16fdf5595b4326" => :el_capitan
2015-07-16 23:51:45 +00:00
sha256 "bb654d5b6952c8b22ce74d0081f900f3fd8628bb79105ba1b1ddc672fea6b067" => :yosemite
sha256 "ebbedf4fe84fbc6ccf621c7da954623443f1bc7596ca8c95efe72d4cba353d25" => :mavericks
sha256 "e5725f4c6b23ce7dc75e3e8fff51cd1f9f90858bad20d1ce00cf33499edf8f6b" => :mountain_lion
2014-02-22 19:34:39 +00:00
end
head do
url "https://github.com/ivmai/bdwgc.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
end
2012-08-09 05:10:35 +00:00
option :universal
depends_on "pkg-config" => :build
depends_on "libatomic_ops" => :build
2011-03-21 21:24:22 +00:00
def install
2012-08-09 05:10:35 +00:00
ENV.universal_binary if build.universal?
system "./autogen.sh" if build.head?
system "./configure", "--disable-debug",
"--disable-dependency-tracking",
"--prefix=#{prefix}",
"--enable-cplusplus"
system "make"
system "make", "check"
system "make", "install"
end
end