40 lines
1.2 KiB
Ruby
40 lines
1.2 KiB
Ruby
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.87.tar.gz"
|
|
sha256 "c5e064efb8fb5134a463731a7cf8d7174c93a296957145200347d2f4d9d11985"
|
|
license "GPL-2.0-or-later"
|
|
head "https://github.com/s3fs-fuse/s3fs-fuse.git"
|
|
|
|
bottle do
|
|
sha256 cellar: :any, catalina: "5183ab606057fbe8e46a737b25c1ad4e82dd67389f48827d7bfd567c67cf8417"
|
|
sha256 cellar: :any, mojave: "d691bdeb4abd443bc1f1f3de46c286a97829f95ba3d47b026e535a6688085d07"
|
|
sha256 cellar: :any, high_sierra: "f475d03b68102dd400a22de99b9ddc044653f6658e2cb84349adf507ffbddcad"
|
|
end
|
|
|
|
depends_on "autoconf" => :build
|
|
depends_on "automake" => :build
|
|
depends_on "pkg-config" => :build
|
|
depends_on "gnutls"
|
|
depends_on "libgcrypt"
|
|
depends_on "nettle"
|
|
|
|
on_macos do
|
|
disable! date: "2021-04-08", because: "requires FUSE"
|
|
end
|
|
|
|
on_linux do
|
|
depends_on "libfuse"
|
|
end
|
|
|
|
def install
|
|
system "./autogen.sh"
|
|
system "./configure", "--disable-dependency-tracking", "--with-gnutls", "--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
system "#{bin}/s3fs", "--version"
|
|
end
|
|
end
|