aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-04-18 19:26:08 -0700
committerAdam Vandenberg2012-04-18 19:26:08 -0700
commit73065e52566996226cfe005279ddf3f522058832 (patch)
treebe3171004b15f17d2d8fa70c2bef2b93e4120435 /Library/Formula
parent0e1700210320e1ba18eaef5c518cf532bbb814e6 (diff)
downloadhomebrew-73065e52566996226cfe005279ddf3f522058832.tar.bz2
e2fsprogs: also install libs
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/e2fsprogs.rb19
1 files changed, 18 insertions, 1 deletions
diff --git a/Library/Formula/e2fsprogs.rb b/Library/Formula/e2fsprogs.rb
index bde7085b2..ff9ba5aa8 100644
--- a/Library/Formula/e2fsprogs.rb
+++ b/Library/Formula/e2fsprogs.rb
@@ -1,17 +1,34 @@
require 'formula'
class E2fsprogs < Formula
- url 'http://downloads.sourceforge.net/project/e2fsprogs/e2fsprogs/v1.42.2/e2fsprogs-1.42.2.tar.gz'
homepage 'http://e2fsprogs.sourceforge.net/'
+ url 'http://downloads.sourceforge.net/project/e2fsprogs/e2fsprogs/v1.42.2/e2fsprogs-1.42.2.tar.gz'
md5 '04f4561a54ad0419248316a00c016baa'
head 'https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git', :using => :git
keg_only "This brew installs several commands which override OS X-provided file system commands."
+ depends_on 'pkg-config' => :build
+
+ def patches
+ # MacPorts patch to compile libs correctly.
+ p = {:p0 => [
+ "https://trac.macports.org/export/92117/trunk/dports/sysutils/e2fsprogs/files/patch-lib__Makefile.darwin-lib"
+ ]}
+
+ # MacPorts patch to allow compilation on Leopard.
+ if MacOS.leopard?
+ p[:p0] << "https://trac.macports.org/export/92117/trunk/dports/sysutils/e2fsprogs/files/patch-lib-ext2fs-inline.c.diff"
+ end
+
+ p
+ end
+
def install
ENV.append_to_cflags "--std=gnu89 -Wno-return-type" if ENV.compiler == :clang
system "./configure", "--prefix=#{prefix}"
system "make"
system "make install"
+ system "make install-libs"
end
end