2011-03-10 05:11:03 +00:00
|
|
|
class Afflib < Formula
|
2015-05-19 00:00:59 +00:00
|
|
|
desc "Advanced Forensic Format"
|
2014-12-07 04:41:09 +00:00
|
|
|
homepage "https://github.com/sshock/AFFLIBv3"
|
2016-12-31 11:23:59 +00:00
|
|
|
url "https://github.com/sshock/AFFLIBv3/archive/v3.7.15.tar.gz"
|
|
|
|
sha256 "cc705a3b4108594fe36f1d843f4a7c60c93fe79375fda3018c21f5cd24949f1c"
|
2010-09-20 20:02:55 +00:00
|
|
|
|
2014-07-03 12:32:20 +00:00
|
|
|
bottle do
|
2014-12-07 04:53:40 +00:00
|
|
|
cellar :any
|
2016-12-31 11:28:50 +00:00
|
|
|
sha256 "84aefa7e2449d8162aca396921a568c556f2191db72fd5f03ee2daf6cf9485bd" => :sierra
|
|
|
|
sha256 "2efac098c764845cae4a33c4788fd2f811a6a62a9345e4dcdebe4097cd1e09f3" => :el_capitan
|
|
|
|
sha256 "7a70c24489fcd92a6f3845dd945eb0822d4018ef937747c720522a1e70e90fdb" => :yosemite
|
2014-07-03 12:32:20 +00:00
|
|
|
end
|
|
|
|
|
2014-06-01 01:15:09 +00:00
|
|
|
depends_on "autoconf" => :build
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
2016-11-22 09:23:58 +00:00
|
|
|
depends_on "pkg-config" => :build
|
2014-12-07 04:41:09 +00:00
|
|
|
depends_on "openssl"
|
2016-11-27 08:06:37 +00:00
|
|
|
depends_on :python if MacOS.version <= :snow_leopard
|
2016-11-22 09:23:58 +00:00
|
|
|
depends_on :osxfuse => :optional
|
2010-09-20 20:02:55 +00:00
|
|
|
|
|
|
|
def install
|
2016-11-27 08:06:37 +00:00
|
|
|
args = ["--enable-s3", "--enable-python"]
|
2014-01-08 15:21:27 +00:00
|
|
|
|
2014-03-01 21:52:25 +00:00
|
|
|
if build.with? "osxfuse"
|
2016-11-22 09:23:58 +00:00
|
|
|
ENV.append "CPPFLAGS", "-I/usr/local/include/osxfuse"
|
|
|
|
ENV.append "LDFLAGS", "-L/usr/local/lib"
|
2014-01-08 15:21:27 +00:00
|
|
|
args << "--enable-fuse"
|
2016-11-22 09:23:58 +00:00
|
|
|
else
|
|
|
|
args << "--disable-fuse"
|
2014-01-08 15:21:27 +00:00
|
|
|
end
|
|
|
|
|
2016-11-26 08:36:00 +00:00
|
|
|
system "autoreconf", "-fiv"
|
2016-11-22 09:23:58 +00:00
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}",
|
|
|
|
*args
|
2015-02-23 14:07:21 +00:00
|
|
|
system "make", "install"
|
|
|
|
end
|
|
|
|
|
|
|
|
test do
|
|
|
|
system "#{bin}/affcat", "-v"
|
2010-09-20 20:02:55 +00:00
|
|
|
end
|
|
|
|
end
|