Skip to content

Commit 52db050

Browse files
authored
Merge pull request Homebrew#198317 from Homebrew/pkgconf-migrations-x-1
x*: migrate to `pkgconf` (part 1)
2 parents 90044a0 + c18ce8a commit 52db050

File tree

8 files changed

+17
-22
lines changed

8 files changed

+17
-22
lines changed

Formula/x/x86_64-elf-binutils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class X8664ElfBinutils < Formula
2121
sha256 x86_64_linux: "f0ed12582580e7fa52c4a1db664ceeef57c921ba29aa110673ae6aeb7ed3e7cf"
2222
end
2323

24-
depends_on "pkg-config" => :build
24+
depends_on "pkgconf" => :build
2525
depends_on "zstd"
2626

2727
uses_from_macos "zlib"

Formula/x/xbitmaps.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,31 +10,29 @@ class Xbitmaps < Formula
1010
sha256 cellar: :any_skip_relocation, all: "a2d50475647c9d98e3822fbbf383231d0757fcbfd429d6999ad263ff692dcfb2"
1111
end
1212

13-
depends_on "pkg-config" => :build
13+
depends_on "pkgconf" => :build
1414
depends_on "util-macros" => :build
1515

1616
def install
1717
args = %W[
18-
--prefix=#{prefix}
1918
--sysconfdir=#{etc}
2019
--localstatedir=#{var}
21-
--disable-dependency-tracking
2220
--disable-silent-rules
2321
]
2422

25-
system "./configure", *args
23+
system "./configure", *args, *std_configure_args
2624
system "make", "install"
2725
end
2826

2927
test do
30-
(testpath/"test.c").write <<~'EOS'
28+
(testpath/"test.c").write <<~'C'
3129
#include <X11/bitmaps/gray>
3230
#include <stdio.h>
3331
int main() {
3432
printf("gray_width = %d\n", gray_width);
3533
return 0;
3634
}
37-
EOS
35+
C
3836
system ENV.cc, "test.c", "-o", "test", "-I#{include}"
3937
assert_equal "gray_width = 2", shell_output("./test").strip
4038
end

Formula/x/xboard.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class Xboard < Formula
2525
depends_on "gettext" => :build
2626
end
2727

28-
depends_on "pkg-config" => :build
28+
depends_on "pkgconf" => :build
2929
depends_on "cairo"
3030
depends_on "fairymax"
3131
depends_on "gdk-pixbuf"

Formula/x/xcb-util-renderutil.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,23 +20,22 @@ class XcbUtilRenderutil < Formula
2020
end
2121

2222
head do
23-
url "https://gitlab.freedesktop.org/xorg/lib/libxcb-render-util.git"
23+
url "https://gitlab.freedesktop.org/xorg/lib/libxcb-render-util.git", branch: "master"
2424

2525
depends_on "autoconf" => :build
2626
depends_on "automake" => :build
2727
depends_on "libtool" => :build
2828
end
2929

30-
depends_on "pkg-config" => [:build, :test]
30+
depends_on "pkgconf" => [:build, :test]
3131
depends_on "libxcb"
3232

3333
def install
3434
system "./autogen.sh" if build.head?
35-
system "./configure", "--prefix=#{prefix}",
36-
"--sysconfdir=#{etc}",
35+
system "./configure", "--disable-silent-rules",
3736
"--localstatedir=#{var}",
38-
"--disable-dependency-tracking",
39-
"--disable-silent-rules"
37+
"--sysconfdir=#{etc}",
38+
*std_configure_args
4039
system "make"
4140
system "make", "install"
4241
end

Formula/x/xinput.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Xinput < Formula
1818
sha256 cellar: :any_skip_relocation, x86_64_linux: "48811518afc1be944c7f11606493feeffa4acd7653ad98f80e2dd583e6144bf0"
1919
end
2020

21-
depends_on "pkg-config" => :build
21+
depends_on "pkgconf" => :build
2222
depends_on "xorgproto" => :build
2323
depends_on "libx11"
2424
depends_on "libxext"
@@ -28,14 +28,12 @@ class Xinput < Formula
2828

2929
def install
3030
args = %W[
31-
--prefix=#{prefix}
3231
--sysconfdir=#{etc}
3332
--localstatedir=#{var}
34-
--disable-dependency-tracking
3533
--disable-silent-rules
3634
]
3735

38-
system "./configure", *args
36+
system "./configure", *args, *std_configure_args
3937
system "make"
4038
system "make", "install"
4139
end

Formula/x/xkbcomp.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ class Xkbcomp < Formula
1616
sha256 cellar: :any_skip_relocation, x86_64_linux: "6be95ca9ca5cb1c2afaa4e0d2cf31d75f5daa5e543a824c3c9cb9f6d895c25e2"
1717
end
1818

19-
depends_on "pkg-config" => :build
19+
depends_on "pkgconf" => :build
2020

2121
depends_on "libx11"
2222
depends_on "libxkbfile"
2323

2424
def install
25-
system "./configure", *std_configure_args, "--with-xkb-config-root=#{HOMEBREW_PREFIX}/share/X11/xkb"
25+
system "./configure", "--with-xkb-config-root=#{HOMEBREW_PREFIX}/share/X11/xkb", *std_configure_args
2626
system "make"
2727
system "make", "install"
2828
# avoid cellar in bindir

Formula/x/xkeyboardconfig.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class Xkeyboardconfig < Formula
1414
depends_on "gettext" => :build
1515
depends_on "meson" => :build
1616
depends_on "ninja" => :build
17-
depends_on "pkg-config" => [:build, :test]
17+
depends_on "pkgconf" => [:build, :test]
1818
depends_on "[email protected]" => :build
1919

2020
uses_from_macos "libxslt" => :build

Formula/x/xsane.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Xsane < Formula
2222
sha256 x86_64_linux: "38f48e2fb08a821089e4419e0b0a6d6994a9e3d1faa009e3319107a4b393af03"
2323
end
2424

25-
depends_on "pkg-config" => :build
25+
depends_on "pkgconf" => :build
2626
depends_on "glib"
2727
depends_on "gtk+" # GTK3 issue: https://gitlab.com/sane-project/frontend/xsane/-/issues/34
2828
depends_on "jpeg-turbo"

0 commit comments

Comments
 (0)