Skip to content

Commit aa98557

Browse files
committed
xbitmaps: migrate to pkgconf
1 parent 90044a0 commit aa98557

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

0 commit comments

Comments
 (0)