homebrew-core/Formula/fuse4x.rb
Dominyk Tiller 7099f54ef7 Add unsigned kext requirement.
Creates a new requirement that dictates packages are unable to install due to requiring a signed kext to function.

Closes Homebrew/homebrew#33404.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-10-23 08:57:12 +01:00

32 lines
1 KiB
Ruby

require "formula"
class Fuse4x < Formula
homepage "http://fuse4x.github.io"
url "https://github.com/fuse4x/fuse/archive/fuse4x_0_9_2.tar.gz"
sha1 "3a9700f716eff930dcd2426772c642a09adcc73a"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "gettext" => :build
depends_on ConflictsWithBinaryOsxfuse
depends_on UnsignedKextRequirement
depends_on "fuse4x-kext"
conflicts_with "osxfuse", :because => "both install `fuse.pc`"
def install
# Build universal if the hardware can handle it---otherwise 32 bit only
MacOS.prefer_64_bit? ? ENV.universal_binary : ENV.m32
inreplace "makeconf.sh", "libtoolize", "glibtoolize"
system "./makeconf.sh"
# force 64bit inodes on 10.5. On 10.6+ this is no-op.
ENV.append_to_cflags "-D_DARWIN_USE_64_BIT_INODE"
system "./configure", "--disable-dependency-tracking",
"--disable-static",
"--prefix=#{prefix}"
system "make", "install"
end
end