61 lines
1.8 KiB
Ruby
61 lines
1.8 KiB
Ruby
class Afflib < Formula
|
|
desc "Advanced Forensic Format"
|
|
homepage "https://github.com/sshock/AFFLIBv3"
|
|
url "https://github.com/sshock/AFFLIBv3/archive/v3.7.10.tar.gz"
|
|
sha256 "906226df05d526b886a873367ca896f0058a6221c2e21c900411d0fc89754c2b"
|
|
|
|
bottle do
|
|
cellar :any
|
|
rebuild 1
|
|
sha256 "46c9fbfab349dbda7b1c0c6471d71e896154c65a68e7b50a93ae35b5d1f8c67d" => :sierra
|
|
sha256 "72864322573f03f56889c9d5d06ffe9b4204d4295d47ba17e4aa195c96b75b70" => :el_capitan
|
|
sha256 "ce2ec042b4841e8a336e5057830bd479a0c33369352865bd12f2b0ca097594a7" => :yosemite
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "libtool" => :build
|
|
depends_on "pkg-config" => :build
|
|
|
|
depends_on "openssl"
|
|
|
|
depends_on "python" => :optional
|
|
depends_on :osxfuse => :optional
|
|
|
|
patch do
|
|
url "https://github.com/sshock/AFFLIBv3/pull/13.patch"
|
|
sha256 "dc24b0be3c17938b5b6014ba0fcd885c5f79e758c2150e3727fbda1507cdb768"
|
|
end
|
|
patch do
|
|
url "https://github.com/sshock/AFFLIBv3/pull/14.patch"
|
|
sha256 "3a078e41bd764fd45c5833335f5650f815cbfaea5fce4dca684d270742c3b34a"
|
|
end
|
|
patch do
|
|
url "https://github.com/sshock/AFFLIBv3/pull/15.patch"
|
|
sha256 "e8028dd0ca8573c7d7e51234494782d01d85b1a167b25f12140d5ea21dccea3f"
|
|
end
|
|
|
|
def install
|
|
args = ["--enable-s3"]
|
|
|
|
args << "--enable-python" if build.with? "python"
|
|
|
|
if build.with? "osxfuse"
|
|
ENV.append "CPPFLAGS", "-I/usr/local/include/osxfuse"
|
|
ENV.append "LDFLAGS", "-L/usr/local/lib"
|
|
args << "--enable-fuse"
|
|
else
|
|
args << "--disable-fuse"
|
|
end
|
|
|
|
system "autoreconf -iv"
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--prefix=#{prefix}",
|
|
*args
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/affcat", "-v"
|
|
end
|
|
end
|