2009-12-20 22:42:33 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class E2fsprogs < Formula
|
2009-12-20 22:42:33 +00:00
|
|
|
homepage 'http://e2fsprogs.sourceforge.net/'
|
2014-06-18 19:18:35 +00:00
|
|
|
url 'https://downloads.sourceforge.net/e2fsprogs/e2fsprogs-1.42.10.tar.gz'
|
|
|
|
sha1 '06eba8a78ce1d5032fdcaf34f09025f01ceaca79'
|
2012-04-19 02:37:43 +00:00
|
|
|
|
|
|
|
head 'https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git'
|
2010-04-07 05:58:35 +00:00
|
|
|
|
|
|
|
keg_only "This brew installs several commands which override OS X-provided file system commands."
|
2009-12-20 22:42:33 +00:00
|
|
|
|
2012-04-19 02:26:08 +00:00
|
|
|
depends_on 'pkg-config' => :build
|
2012-09-23 20:36:46 +00:00
|
|
|
depends_on 'gettext'
|
2012-04-19 02:26:08 +00:00
|
|
|
|
2013-04-30 16:21:57 +00:00
|
|
|
# MacPorts patch to compile libs correctly.
|
|
|
|
# Fix a bare return for clang.
|
2014-03-14 15:03:23 +00:00
|
|
|
patch :p0 do
|
|
|
|
url "https://trac.macports.org/export/92117/trunk/dports/sysutils/e2fsprogs/files/patch-lib__Makefile.darwin-lib"
|
|
|
|
sha1 "d6ebd54e504187a6f59e0e0f347aa373692b78d9"
|
2012-04-19 02:26:08 +00:00
|
|
|
end
|
|
|
|
|
2009-12-20 22:42:33 +00:00
|
|
|
def install
|
2014-06-18 19:18:35 +00:00
|
|
|
ENV.deparallelize
|
2014-01-16 06:49:55 +00:00
|
|
|
system "./configure", "--prefix=#{prefix}", "--disable-e2initrd-helper"
|
2009-12-20 22:42:33 +00:00
|
|
|
system "make"
|
|
|
|
system "make install"
|
2012-04-19 02:26:08 +00:00
|
|
|
system "make install-libs"
|
2009-12-20 22:42:33 +00:00
|
|
|
end
|
|
|
|
end
|