homebrew-core/Formula/s3fs.rb

52 lines
1.6 KiB
Ruby
Raw Normal View History

2017-03-19 18:34:20 +00:00
class S3fs < Formula
desc "FUSE-based file system backed by Amazon S3"
homepage "https://github.com/s3fs-fuse/s3fs-fuse/wiki"
url "https://github.com/s3fs-fuse/s3fs-fuse/archive/v1.82.tar.gz"
sha256 "8a40f0b11b558b6d733eeff4fcc025cc416df37b6732001bb0c630f6d6d760dd"
2017-03-19 18:34:20 +00:00
head "https://github.com/s3fs-fuse/s3fs-fuse.git"
2017-04-19 13:11:59 +00:00
bottle do
cellar :any
2017-05-14 07:35:26 +00:00
sha256 "1a696835e0c5305cc0f42d7571b2f027227b12a85ab3f866146b219bc6e68fb5" => :sierra
sha256 "74f80941f3e02fdb0ae4aa548dc34815a101ae4fde820a12389d33b15edaf680" => :el_capitan
sha256 "d0eff9a3aa81a038eab132fc3d8481580d7d14847d924658608bbd70e4bf6ce4" => :yosemite
2017-04-19 13:11:59 +00:00
end
2017-03-19 18:34:20 +00:00
depends_on "pkg-config" => :build
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "gnutls"
depends_on "nettle"
depends_on "libgcrypt"
depends_on :osxfuse
def install
# Fix "error: no matching function for call to 'clock_gettime'"
# Reported 14 May 2017 https://github.com/s3fs-fuse/s3fs-fuse/issues/600
if MacOS.version >= :sierra
inreplace "src/cache.cpp", "return clock_gettime(clk_id, ts);",
"return clock_gettime((clockid_t)clk_id, ts);"
end
2017-03-19 18:34:20 +00:00
system "./autogen.sh"
system "./configure", "--disable-dependency-tracking", "--with-gnutls", "--prefix=#{prefix}"
system "make", "install"
end
def caveats; <<-EOS.undent
Be aware that s3fs has some caveats concerning S3 "directories"
that have been created by other tools. See the following issue for
details:
https://code.google.com/p/s3fs/issues/detail?id=73
EOS
end
test do
system "#{bin}/s3fs", "--version"
end
end