homebrew-core/Formula/ext2fuse.rb

27 lines
1.1 KiB
Ruby
Raw Normal View History

2017-03-19 18:34:18 +00:00
class Ext2fuse < Formula
desc "Compact implementation of ext2 file system using FUSE"
homepage "http://sourceforge.net/projects/ext2fuse"
url "https://downloads.sourceforge.net/project/ext2fuse/ext2fuse/0.8.1/ext2fuse-src-0.8.1.tar.gz"
sha256 "431035797b2783216ec74b6aad5c721b4bffb75d2174967266ee49f0a3466cd9"
2017-04-19 13:11:58 +00:00
bottle do
cellar :any
sha256 "22f2c626da7fbf83036debd9d3a564334c7d12919828c90cdb820c69c7911e3f" => :sierra
sha256 "fcf23e3ef7bf5afed5f3a009c4e41e4fbe6852faac0dff0cc5c8f35b3b491571" => :el_capitan
sha256 "01064d0a21a3a1d60686657df9146194700c879e5b43447c4a6cbc80cc62705b" => :yosemite
end
2017-03-19 18:34:18 +00:00
depends_on :osxfuse
depends_on "e2fsprogs"
def install
ENV.append "LIBS", "-losxfuse"
ENV.append "CFLAGS", "-D__FreeBSD__=10 -DENABLE_SWAPFS -I/usr/local/include/osxfuse/fuse -I#{HOMEBREW_PREFIX}/opt/osxfuse/include/osxfuse/fuse"
ENV.append "CFLAGS", "--std=gnu89" if ENV.compiler == :clang
system "./configure", "--disable-debug", "--disable-dependency-tracking",
"--prefix=#{prefix}"
system "make", "install"
end
end