libfuse 2.9.8 (new formula) (#63597)

master
Dawid Dziurla 2020-10-29 11:27:44 +01:00 committed by GitHub
parent 8adb27d135
commit 3e64c3d505
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 45 additions and 0 deletions

View File

@ -7,6 +7,7 @@ on:
- "Formula/libaio.rb"
- "Formula/ladspa-sdk.rb"
- "Formula/libdrm.rb"
- "Formula/libfuse.rb"
- "Formula/libmnl.rb"
- "Formula/libnetfilter-queue.rb"
- "Formula/libnfnetlink.rb"

44
Formula/libfuse.rb Normal file
View File

@ -0,0 +1,44 @@
class Libfuse < Formula
desc "Reference implementation of the Linux FUSE interface"
homepage "https://github.com/libfuse/libfuse"
url "https://github.com/libfuse/libfuse/releases/download/fuse-2.9.8/fuse-2.9.8.tar.gz"
sha256 "5e84f81d8dd527ea74f39b6bc001c874c02bad6871d7a9b0c14efb57430eafe3"
license any_of: ["LGPL-2.1-only", "GPL-2.0-only"]
head "https://github.com/libfuse/libfuse.git"
depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on :linux
def install
ENV["MOUNT_FUSE_PATH"] = sbin
ENV["UDEV_RULES_PATH"] = etc/"udev/rules.d"
ENV["INIT_D_PATH"] = etc/"init.d"
system "./configure",
"--prefix=#{prefix}",
"--disable-silent-rules",
"--enable-lib",
"--enable-util",
"--enable-example",
"--disable-rpath"
system "make"
system "make", "install"
(pkgshare/"doc").install Dir["./doc/how-fuse-works", "./doc/kernel.txt"]
end
test do
(testpath/"fuse-test.c").write <<~EOS
#include <fuse.h>
#include <stdio.h>
int main() {
printf("%d%d\\n", FUSE_MAJOR_VERSION, FUSE_MINOR_VERSION);
printf("%d\\n", fuse_version());
return 0;
}
EOS
system ENV.cc, "fuse-test.c", "-L#{lib}", "-I#{include}", "-D_FILE_OFFSET_BITS=64", "-lfuse", "-o", "fuse-test"
system "./fuse-test"
end
end