Skip to content

Commit

Permalink
libnfs 6.0.0
Browse files Browse the repository at this point in the history
libnfs: add dependency

libnfs: add build patch

libnfs: switch to cmake build

Signed-off-by: Rui Chen <[email protected]>
  • Loading branch information
bevanjkay authored and chenrui333 committed Dec 13, 2024
1 parent a88aa84 commit 856c7fd
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions Formula/lib/libnfs.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class Libnfs < Formula
desc "C client library for NFS"
homepage "https://github.com/sahlberg/libnfs"
url "https://github.com/sahlberg/libnfs/archive/refs/tags/libnfs-5.0.3.tar.gz"
sha256 "d945cb4f4c8f82ee1f3640893a168810f794a28e1010bb007ec5add345e9df3e"
url "https://github.com/sahlberg/libnfs/archive/refs/tags/libnfs-6.0.0.tar.gz"
sha256 "6fe64b5a47b2558484c8beb05819c1f1f3e52cc52a7b3a8b805faf398e9a9c24"
license "LGPL-2.1-or-later"

bottle do
Expand All @@ -16,17 +16,20 @@ class Libnfs < Formula
sha256 cellar: :any_skip_relocation, x86_64_linux: "da4022b87ad4d500dafafeccbf35e4bebcf2bbbcf23bb47a37c0b35edec09ec5"
end

depends_on "autoconf" => :build
depends_on "automake" => :build
depends_on "libtool" => :build
depends_on "cmake" => :build
uses_from_macos "krb5"

def install
system "./bootstrap"
system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
# Ref: https://github.com/sahlberg/libnfs/commit/2044497b7faba9404a3a17e81cbfdeb5e8aaaa9c
# Remove on next release
patch do
url "https://github.com/sahlberg/libnfs/commit/2044497b7faba9404a3a17e81cbfdeb5e8aaaa9c.patch?full_index=1"
sha256 "b31e61faa640ea1c5b590bc884c57fef2d6c40e9ee94596353648d057026bc1b"
end

system "make", "install"
def install

Check failure on line 29 in Formula/lib/libnfs.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew install --verbose --formula --build-bottle libnfs` failed on macOS Sequoia (15) on Apple Silicon!

::error::libnfs 6.0.0 did not build

Check failure on line 29 in Formula/lib/libnfs.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --formula --build-bottle libnfs` failed on macOS Sonoma (14) on Apple Silicon!

::error::libnfs 6.0.0 did not build

Check failure on line 29 in Formula/lib/libnfs.rb

View workflow job for this annotation

GitHub Actions / macOS 13-arm64

`brew install --verbose --formula --build-bottle libnfs` failed on macOS Ventura (13) on Apple Silicon!

::error::libnfs 6.0.0 did not build
system "cmake", "-S", ".", "-B", "build", "-DENABLE_DOCUMENTATION=ON", "-DENABLE_UTILS=ON", *std_cmake_args
system "cmake", "--build", "build"
system "cmake", "--install", "build"
end

test do
Expand Down

0 comments on commit 856c7fd

Please sign in to comment.