homebrew-core/Formula/sshfs.rb
Sorin Ionescu 25229af0f8 remove useless FUSE-related caveats
Closes Homebrew/homebrew#26660.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2014-02-14 18:28:59 +00:00

47 lines
1.4 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
end