From 4a73ac35655a3de8d12df374750cf12fafb3024b Mon Sep 17 00:00:00 2001 From: Andrew Chester Date: Sat, 26 Dec 2015 21:26:17 -0500 Subject: [PATCH] jerasure 2.0 (new formula) --- Formula/jerasure.rb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 Formula/jerasure.rb diff --git a/Formula/jerasure.rb b/Formula/jerasure.rb new file mode 100644 index 0000000000..90608c47b6 --- /dev/null +++ b/Formula/jerasure.rb @@ -0,0 +1,25 @@ +class Jerasure < Formula + desc "Library in C that supports erasure coding in storage applications" + homepage "http://jerasure.org/" + url "http://lab.jerasure.org/jerasure/jerasure/repository/archive.tar.gz?ref=v2.0" + version "2.0" + sha256 "61b2fbb25affeddc2d94d6f67778098597b14ff5440f39d8fba3dbdbaa6739b6" + + depends_on "autoconf" => :build + depends_on "automake" => :build + depends_on "libtool" => :build + depends_on "gf-complete" + + def install + system "autoreconf", "--force", "--install" + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}" + system "make", "install" + end + + test do + system bin/"jerasure_01", "2", "5", "3" + end +end