homebrew-core/Formula/sshfs.rb
2014-01-17 10:55:53 -08:00

53 lines
1.6 KiB
Ruby

require 'formula'
class Sshfs < Formula
homepage 'http://osxfuse.github.io/'
url 'https://github.com/osxfuse/sshfs/archive/osxfuse-sshfs-2.4.1.tar.gz'
sha1 'cf614508db850a719529dec845ae59309f8a79c2'
option 'without-sshnodelay', "Don't compile NODELAY workaround for ssh"
depends_on 'autoconf' => :build
depends_on 'automake' => :build
depends_on :libtool
depends_on 'pkg-config' => :build
depends_on 'osxfuse'
depends_on 'glib'
depends_on :xcode
bottle do
cellar :any
sha1 '57778d401e579bc32a6153419a3bbb34ef76b2aa' => :mavericks
sha1 '7ef7bbf791ca3031f992ff6907a79bef65fbc51f' => :mountain_lion
sha1 'a98aff34dca5da77ff894ff230885f1025ea45ba' => :lion
end
def patches
# Fixes issue with semaphore type
# Reported upstream: https://github.com/osxfuse/sshfs/issues/6
"https://gist.github.com/denji/ce3c628d7def7f6ea490/raw/c441e0426dfb83decc0031ee54c48a8c22a35201/sshfs-fix.patch"
end
def install
args = %W[
--disable-dependency-tracking
--prefix=#{prefix}
]
args << "--disable-sshnodelay" if build.without? 'sshnodelay'
# Compatibility with Automake 1.13 and newer.
inreplace 'configure.ac', 'AM_CONFIG_HEADER', 'AC_CONFIG_HEADERS'
inreplace 'configure.ac', 'AM_INIT_AUTOMAKE', 'AM_INIT_AUTOMAKE([subdir-objects])'
system "autoreconf", "--force", "--install"
system "./configure", *args
system "make install"
end
def caveats; <<-EOS.undent
Make sure to follow the directions given by `brew info osxfuse`
before trying to use a FUSE-based filesystem.
EOS
end
end