homebrew-core/Formula/sshfs.rb

48 lines
1.4 KiB
Ruby
Raw Normal View History

require 'formula'
class Sshfs < Formula
2014-01-05 06:48:04 +00:00
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"
2013-04-16 18:55:36 +00:00
depends_on 'autoconf' => :build
depends_on 'automake' => :build
2012-07-07 18:08:22 +00:00
depends_on :libtool
depends_on 'pkg-config' => :build
2014-01-05 06:48:04 +00:00
depends_on 'osxfuse'
depends_on 'glib'
depends_on :xcode
2014-01-17 18:55:53 +00:00
bottle do
cellar :any
sha1 '57778d401e579bc32a6153419a3bbb34ef76b2aa' => :mavericks
sha1 '7ef7bbf791ca3031f992ff6907a79bef65fbc51f' => :mountain_lion
sha1 'a98aff34dca5da77ff894ff230885f1025ea45ba' => :lion
end
2014-01-05 06:48:04 +00:00
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"
2014-01-13 20:56:11 +00:00
end
def install
2014-01-05 06:48:04 +00:00
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'
2014-01-05 06:48:04 +00:00
inreplace 'configure.ac', 'AM_INIT_AUTOMAKE', 'AM_INIT_AUTOMAKE([subdir-objects])'
system "autoreconf", "--force", "--install"
2014-01-05 06:48:04 +00:00
system "./configure", *args
system "make install"
end
end