From f6526c3a5627ddebe982926a7c336c107b2787a5 Mon Sep 17 00:00:00 2001 From: Alex Dunn Date: Tue, 21 Apr 2015 19:02:04 -0700 Subject: [PATCH] e2fsprogs 1.42.12 Closes Homebrew/homebrew#38921. Signed-off-by: Mike McQuaid --- Formula/e2fsprogs.rb | 24 ++++++++++-------------- 1 file changed, 10 insertions(+), 14 deletions(-) diff --git a/Formula/e2fsprogs.rb b/Formula/e2fsprogs.rb index 005b9f3349..6f5ef48679 100644 --- a/Formula/e2fsprogs.rb +++ b/Formula/e2fsprogs.rb @@ -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