2011-09-02 23:36:10 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Sshfs < Formula
|
|
|
|
homepage 'http://fuse.sourceforge.net/sshfs.html'
|
|
|
|
url 'https://github.com/fuse4x/sshfs.git', :tag => 'sshfs_2_3_0'
|
|
|
|
version '2.3.0'
|
|
|
|
|
|
|
|
depends_on 'pkg-config' => :build
|
|
|
|
depends_on 'fuse4x'
|
|
|
|
depends_on 'glib'
|
2012-02-27 03:44:55 +00:00
|
|
|
depends_on "automake" if MacOS.xcode_version >= "4.3"
|
2011-09-02 23:36:10 +00:00
|
|
|
|
2012-02-29 01:44:13 +00:00
|
|
|
if MacOS.xcode_version >= "4.3"
|
|
|
|
# remove the autoreconf if possible, no comment provided about why it is there
|
|
|
|
# so we have no basis to make a decision at this point.
|
|
|
|
depends_on "automake" => :build
|
|
|
|
depends_on "libtool" => :build
|
|
|
|
end
|
|
|
|
|
2011-09-02 23:36:10 +00:00
|
|
|
def install
|
2012-02-27 03:44:55 +00:00
|
|
|
system "autoreconf", "--force", "--install"
|
2011-09-02 23:36:10 +00:00
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
|
|
|
"--prefix=#{prefix}"
|
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
|
|
|
|
def caveats
|
|
|
|
<<-EOS.undent
|
|
|
|
Make sure to follow the directions given by `brew info fuse4x-kext`
|
|
|
|
before trying to use a FUSE-based filesystem.
|
|
|
|
EOS
|
|
|
|
end
|
|
|
|
end
|