require 'brewkit' class SshfsFuse ["http://macfuse.googlecode.com/svn/tags/macfuse-2.0.3|2/filesystems/sshfs/sshfs-fuse-2.2-macosx.patch"] } end def deps BinaryDep.new 'pkg-config' LibraryDep.new 'glib' #MacFuse is not compiling via brew yet... #LibraryDep.new 'macfuse' end def install # Steal compile flags from macfuse_buildtool.sh # Except that those flags include "-DSSH_NODELAY_WORKAROUND" which causes a bogus # warning message to be printed to the console, so cut out that crap. ENV['CFLAGS'] += " -D__FreeBSD__=10 -DDARWIN_SEMAPHORE_COMPAT" system "./configure --prefix='#{prefix}' --disable-dependency-tracking" system "make" system "make install" end end