Skip to content

Commit 6a26a7c

Browse files
authored
Merge pull request Homebrew#198433 from Homebrew/pkgconf-migrations-u-2
u*: migrate to `pkgconf` (part 2)
2 parents e488b92 + abb4f52 commit 6a26a7c

File tree

12 files changed

+16
-22
lines changed

12 files changed

+16
-22
lines changed

Formula/u/urdfdom.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@ class Urdfdom < Formula
2323
end
2424

2525
depends_on "cmake" => :build
26-
depends_on "pkg-config" => :test
26+
depends_on "pkgconf" => :test
2727
depends_on "console_bridge"
2828
depends_on "tinyxml2"
2929
depends_on "urdfdom_headers"
3030

3131
def install
3232
ENV.cxx11
33-
system "cmake", "-S", ".", "-B", "build", *std_cmake_args, "-DCMAKE_INSTALL_RPATH=#{rpath}"
33+
system "cmake", "-S", ".", "-B", "build", "-DCMAKE_INSTALL_RPATH=#{rpath}", *std_cmake_args
3434
system "cmake", "--build", "build"
3535
system "cmake", "--install", "build"
3636
end

Formula/u/urdfdom_headers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class UrdfdomHeaders < Formula
1818
end
1919

2020
depends_on "cmake" => :build
21-
depends_on "pkg-config" => :test
21+
depends_on "pkgconf" => :test
2222

2323
def install
2424
ENV.cxx11

Formula/u/urh.rb

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

23-
depends_on "pkg-config" => :build
23+
depends_on "pkgconf" => :build
2424
depends_on "hackrf"
2525
depends_on "numpy"
2626
depends_on "pyqt@5"

Formula/u/usbredir.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class Usbredir < Formula
2323

2424
depends_on "meson" => :build
2525
depends_on "ninja" => :build
26-
depends_on "pkg-config" => :build
26+
depends_on "pkgconf" => :build
2727
depends_on "glib"
2828
depends_on "libusb"
2929

@@ -40,10 +40,7 @@ def install
4040
return usbredirparser_create() ? 0 : 1;
4141
}
4242
C
43-
system ENV.cc, "test.c",
44-
"-L#{lib}",
45-
"-lusbredirparser",
46-
"-o", "test"
43+
system ENV.cc, "test.c", "-L#{lib}", "-lusbredirparser", "-o", "test"
4744
system "./test"
4845
end
4946
end

Formula/u/usbutils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Usbutils < Formula
2626

2727
depends_on "meson" => :build
2828
depends_on "ninja" => :build
29-
depends_on "pkg-config" => :build
29+
depends_on "pkgconf" => :build
3030
depends_on "libusb"
3131

3232
on_linux do

Formula/u/util-macros.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class UtilMacros < Formula
1414
sha256 cellar: :any_skip_relocation, x86_64_linux: "418d29093fca0889e64ecc830bd8d987269774aba25d302cf959338acc1363ac"
1515
end
1616

17-
depends_on "pkg-config" => :test
17+
depends_on "pkgconf" => :test
1818

1919
def install
2020
args = %W[

Formula/u/utimer.rb

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Utimer < Formula
2929

3030
depends_on "gettext" => :build
3131
depends_on "intltool" => :build
32-
depends_on "pkg-config" => :build
32+
depends_on "pkgconf" => :build
3333
depends_on "glib"
3434

3535
uses_from_macos "perl" => :build
@@ -43,11 +43,8 @@ class Utimer < Formula
4343
end
4444

4545
def install
46-
if OS.linux?
47-
ENV.prepend_path "PERL5LIB", Formula["perl-xml-parser"].libexec/"lib/perl5"
48-
# Work around /usr/bin/ld: timer.o:(.bss+0x0): multiple definition of `ut_config'
49-
ENV.append_to_cflags "-fcommon"
50-
end
46+
# Work around /usr/bin/ld: timer.o:(.bss+0x0): multiple definition of `ut_config'
47+
ENV.append_to_cflags "-fcommon" if OS.linux?
5148
# Fix compile with newer Clang. Project is no longer maintained so cannot be fixed upstream.
5249
ENV.append_to_cflags "-Wno-implicit-function-declaration" if DevelopmentTools.clang_build_version >= 1403
5350

Formula/u/uutils-findutils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class UutilsFindutils < Formula
1717
sha256 cellar: :any_skip_relocation, x86_64_linux: "1960b1bfa82f3b45f2df7580e15e9114a04503da577ec1cc76a02c3e2191bb7d"
1818
end
1919

20-
depends_on "pkg-config" => :build
20+
depends_on "pkgconf" => :build
2121
depends_on "rust" => :build
2222
depends_on "oniguruma"
2323

Formula/u/uuu.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Uuu < Formula
2424
end
2525

2626
depends_on "cmake" => :build
27-
depends_on "pkg-config" => :build
27+
depends_on "pkgconf" => :build
2828

2929
depends_on "libusb"
3030
depends_on "libzip"

Formula/u/uv.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Uv < Formula
1515
sha256 cellar: :any_skip_relocation, x86_64_linux: "c81cdb8fd4db86bc01b3452375f6d5fc7e7d1126fa00ed328ccb50d4f6f6ab6c"
1616
end
1717

18-
depends_on "pkg-config" => :build
18+
depends_on "pkgconf" => :build
1919
depends_on "rust" => :build
2020

2121
uses_from_macos "python" => :test

0 commit comments

Comments
 (0)