e2fsprogs 1.42.12

Closes Homebrew/homebrew#38921.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Alex Dunn 2015-04-21 19:02:04 -07:00 committed by Mike McQuaid
parent ff729e7292
commit f6526c3a56

View file

@ -1,9 +1,8 @@
require "formula"
class E2fsprogs < Formula
homepage "http://e2fsprogs.sourceforge.net/"
url "https://downloads.sourceforge.net/e2fsprogs/e2fsprogs-1.42.11.tar.gz"
sha1 "3d30eb40f3ca69dcef373a505a061b582e1026c2"
url "https://downloads.sourceforge.net/project/e2fsprogs/e2fsprogs/v1.42.12/e2fsprogs-1.42.12.tar.gz"
mirror "https://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.42.12/e2fsprogs-1.42.12.tar.gz"
sha256 "e17846d91a0edd89fa59b064bde8f8e5cec5851e35f587bcccb4014dbd63186c"
head "https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git"
@ -12,18 +11,15 @@ class E2fsprogs < Formula
depends_on "pkg-config" => :build
depends_on "gettext"
# MacPorts patch to compile libs correctly.
# Fix a bare return for clang.
patch :p0 do
url "https://trac.macports.org/export/92117/trunk/dports/sysutils/e2fsprogs/files/patch-lib__Makefile.darwin-lib"
sha1 "d6ebd54e504187a6f59e0e0f347aa373692b78d9"
end
def install
ENV.deparallelize
system "./configure", "--prefix=#{prefix}", "--disable-e2initrd-helper"
system "make"
system "make install"
system "make install-libs"
system "make", "install"
system "make", "install-libs"
end
test do
assert_equal 36, shell_output("#{bin}/uuidgen").strip.length
system bin/"lsattr", "-al"
end
end