homebrew-core/Formula/e2fsprogs.rb
Jaime Marquínez Ferrándiz 74c83fa9f6 Batch convert http download urls from SourceForge to https
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
2014-03-02 09:16:53 -08:00

29 lines
855 B
Ruby

require 'formula'
class E2fsprogs < Formula
homepage 'http://e2fsprogs.sourceforge.net/'
url 'https://downloads.sourceforge.net/e2fsprogs/e2fsprogs-1.42.9.tar.gz'
sha1 'fb8e3662302bcab1682d567d6ee0ff051faa1bbd'
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.
def patches
{:p0 => [
"https://trac.macports.org/export/92117/trunk/dports/sysutils/e2fsprogs/files/patch-lib__Makefile.darwin-lib"
]}
end
def install
system "./configure", "--prefix=#{prefix}", "--disable-e2initrd-helper"
system "make"
system "make install"
system "make install-libs"
end
end