Skip to content

Commit 38cf5d2

Browse files
committed
libmusicbrainz: migrate to pkgconf
1 parent 8e54b60 commit 38cf5d2

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

Formula/lib/libmusicbrainz.rb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,19 +24,20 @@ class Libmusicbrainz < Formula
2424
end
2525

2626
depends_on "cmake" => :build
27+
depends_on "pkgconf" => :build
2728
depends_on "neon"
2829

2930
uses_from_macos "libxml2"
3031

31-
on_linux do
32-
depends_on "pkg-config"
32+
# Backport fix to build with newer libxml2
33+
patch do
34+
url "https://github.com/metabrainz/libmusicbrainz/commit/4655b571a70d73d41467091f59c518517c956198.patch?full_index=1"
35+
sha256 "ee0c63e56a17156bca13b157744a54aeed6e19b39f65b14f2a5ac4e504358c8e"
3336
end
3437

3538
def install
36-
neon = Formula["neon"]
37-
neon_args = %W[-DNEON_LIBRARIES:FILEPATH=#{neon.lib}/#{shared_library("libneon")}
38-
-DNEON_INCLUDE_DIR:PATH=#{neon.include}/neon]
39-
system "cmake", ".", *(std_cmake_args + neon_args)
40-
system "make", "install"
39+
system "cmake", "-S", ".", "-B", ".", *std_cmake_args
40+
system "cmake", "--build", "."
41+
system "cmake", "--install", "."
4142
end
4243
end

0 commit comments

Comments
 (0)