Skip to content

Commit 9bc2358

Browse files
committed
utimer: migrate to pkgconf
1 parent b560654 commit 9bc2358

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

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

0 commit comments

Comments
 (0)