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
sha256 "ee4073bc8c15f2bef27189c02202e830b71aa13d1570aeb6f0462d01731ab17f" => :sierra
sha256 "6f56e9ab765e3531ce375704281f304dd823aee9397abd5258bf4fc4225d3fd0" => :el_capitan
sha256 "894aed9c105da125630d90a0e3017390eb60d7929fb942e86ba0dcfa55b38403" => :yosemite
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