blob: 005b9f3349458b2c12547ee5fe51135e04e66357 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  | 
require "formula"
class E2fsprogs < Formula
  homepage "http://e2fsprogs.sourceforge.net/"
  url "https://downloads.sourceforge.net/e2fsprogs/e2fsprogs-1.42.11.tar.gz"
  sha1 "3d30eb40f3ca69dcef373a505a061b582e1026c2"
  head "https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git"
  keg_only "This brew installs several commands which override OS X-provided file system commands."
  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"
  end
end
  |