Skip to content

Commit 74caf37

Browse files
authored
Merge pull request Homebrew#198318 from Homebrew/pkgconf-migrations-x-2
x*: migrate to `pkgconf` (part 2)
2 parents f9f0db6 + d64e732 commit 74caf37

File tree

13 files changed

+26
-38
lines changed

13 files changed

+26
-38
lines changed

Formula/x/x11vnc.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class X11vnc < Formula
3131

3232
depends_on "autoconf" => :build
3333
depends_on "automake" => :build
34-
depends_on "pkg-config" => :build
34+
depends_on "pkgconf" => :build
3535
depends_on "libvncserver"
3636
depends_on "openssl@3"
3737

@@ -42,12 +42,10 @@ def install
4242
ENV.append_to_cflags "-Wno-implicit-function-declaration" if DevelopmentTools.clang_build_version >= 1403
4343
ENV.append_to_cflags "-Wno-int-conversion" if DevelopmentTools.clang_build_version >= 1500
4444

45-
ENV.prepend_path "PKG_CONFIG_PATH", Formula["openssl@3"].opt_lib/"pkgconfig"
46-
47-
system "./autogen.sh", *std_configure_args,
48-
"--disable-silent-rules",
45+
system "./autogen.sh", "--disable-silent-rules",
4946
"--mandir=#{man}",
50-
"--without-x"
47+
"--without-x",
48+
*std_configure_args
5149
system "make", "install"
5250
end
5351

Formula/x/x86_64-linux-gnu-binutils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class X8664LinuxGnuBinutils < Formula
1919
sha256 x86_64_linux: "28b05e9d5c0673be09dedcca3f2f9664b65a59d4c65a2aa9dff2fb6c8e9a4712"
2020
end
2121

22-
depends_on "pkg-config" => :build
22+
depends_on "pkgconf" => :build
2323
# Requires the <uchar.h> header
2424
# https://sourceware.org/bugzilla/show_bug.cgi?id=31320
2525
depends_on macos: :ventura

Formula/x/xcb-util.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,17 @@ class XcbUtil < Formula
1818
sha256 cellar: :any_skip_relocation, x86_64_linux: "2808f955e6ac8cb3d1262e4a01b589c5148b125eec6c57a6ccf02902cf01b182"
1919
end
2020

21-
depends_on "pkg-config" => [:build, :test]
21+
depends_on "pkgconf" => [:build, :test]
2222
depends_on "libxcb"
2323

2424
def install
2525
args = %W[
26-
--prefix=#{prefix}
2726
--sysconfdir=#{etc}
2827
--localstatedir=#{var}
29-
--disable-dependency-tracking
3028
--disable-silent-rules
3129
]
3230

33-
system "./configure", *args
31+
system "./configure", *args, *std_configure_args
3432
system "make"
3533
system "make", "install"
3634
end

Formula/x/xdotool.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Xdotool < Formula
2020
sha256 cellar: :any_skip_relocation, x86_64_linux: "ffe41af3fe21135efdee19b3fabf9f459d850946dd592858a50b4cd46035f35e"
2121
end
2222

23-
depends_on "pkg-config" => :build
23+
depends_on "pkgconf" => :build
2424
depends_on "libx11"
2525
depends_on "libxinerama"
2626
depends_on "libxkbcommon"

Formula/x/xml-security-c.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class XmlSecurityC < Formula
1616
sha256 cellar: :any_skip_relocation, x86_64_linux: "027db5710abf606d13b530d94cbfd9c9b0f6b619080dd2aff53fcec7a965ed9d"
1717
end
1818

19-
depends_on "pkg-config" => :build
19+
depends_on "pkgconf" => :build
2020
depends_on "openssl@3"
2121
depends_on "xerces-c"
2222

@@ -29,8 +29,7 @@ class XmlSecurityC < Formula
2929
def install
3030
ENV.cxx11
3131

32-
system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking",
33-
"--with-openssl=#{Formula["openssl@3"].opt_prefix}"
32+
system "./configure", "--with-openssl=#{Formula["openssl@3"].opt_prefix}", *std_configure_args
3433
system "make", "install"
3534
end
3635

Formula/x/xml-tooling-c.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class XmlToolingC < Formula
1919
sha256 cellar: :any_skip_relocation, x86_64_linux: "2342976e7b86e5826af7d8634ae96c3abc75b1fae9a80436d7e513278887e0e9"
2020
end
2121

22-
depends_on "pkg-config" => :build
22+
depends_on "pkgconf" => :build
2323
depends_on "boost"
2424
depends_on "log4shib"
2525
depends_on "openssl@3"
@@ -31,8 +31,6 @@ class XmlToolingC < Formula
3131

3232
def install
3333
ENV.cxx11
34-
ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["openssl@3"].opt_lib}/pkgconfig"
35-
3634
system "./configure", "--disable-silent-rules", *std_configure_args
3735
system "make", "install"
3836
end

Formula/x/xmlrpc-c.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class XmlrpcC < Formula
1616
sha256 cellar: :any_skip_relocation, x86_64_linux: "cdbcf2578d239e21752a3f06e0df6d0e27f26e83376536ecd16e62b9b8edfc5e"
1717
end
1818

19-
depends_on "pkg-config" => :build
19+
depends_on "pkgconf" => :build
2020
depends_on "openssl@3"
2121

2222
uses_from_macos "curl"

Formula/x/xmodmap.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ class Xmodmap < Formula
1818
sha256 cellar: :any_skip_relocation, x86_64_linux: "b8866422cea1dfecb73e767819e793be7d9f6acf91c1f21611809126c54985c4"
1919
end
2020

21-
depends_on "pkg-config" => :build
22-
depends_on "xorgproto" => :build
21+
depends_on "pkgconf" => :build
22+
depends_on "xorgproto" => :build
2323
depends_on "xorg-server" => :test
2424

2525
depends_on "libx11"

Formula/x/xmount.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,17 @@ class Xmount < Formula
1010
end
1111

1212
depends_on "cmake" => :build
13-
depends_on "pkg-config" => :build
13+
depends_on "pkgconf" => :build
1414
depends_on "afflib"
1515
depends_on "libewf"
1616
depends_on "libfuse@2"
1717
depends_on :linux # on macOS, requires closed-source macFUSE
1818
depends_on "openssl@3"
1919

2020
def install
21-
ENV.prepend_path "PKG_CONFIG_PATH", Formula["openssl@3"].opt_lib/"pkgconfig"
22-
23-
system "cmake", ".", *std_cmake_args
24-
system "make", "install"
21+
system "cmake", "-S", ".", "-B", "build", *std_cmake_args
22+
system "cmake", "--build", "build"
23+
system "cmake", "--install", "build"
2524
end
2625

2726
test do

Formula/x/xmp.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Xmp < Formula
2626
depends_on "libtool" => :build
2727
end
2828

29-
depends_on "pkg-config" => :build
29+
depends_on "pkgconf" => :build
3030
depends_on "libxmp"
3131

3232
def install

0 commit comments

Comments
 (0)