aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/pkg-config.rb
diff options
context:
space:
mode:
authorJack Nagel2014-05-19 23:53:12 -0500
committerJack Nagel2014-05-19 23:53:12 -0500
commit2641349c9c119991c3d7cfe74303beb9876b863e (patch)
tree243462ffe9bf318f1d8251ae7dbeb42aa749f07c /Library/Formula/pkg-config.rb
parenta1a544c70df8dc0b8596892f876ea686bc8059c4 (diff)
downloadhomebrew-2641349c9c119991c3d7cfe74303beb9876b863e.tar.bz2
pkg-config: remove legacy cflag hack
Diffstat (limited to 'Library/Formula/pkg-config.rb')
-rw-r--r--Library/Formula/pkg-config.rb34
1 files changed, 14 insertions, 20 deletions
diff --git a/Library/Formula/pkg-config.rb b/Library/Formula/pkg-config.rb
index 1365c6115..af87daaec 100644
--- a/Library/Formula/pkg-config.rb
+++ b/Library/Formula/pkg-config.rb
@@ -14,27 +14,21 @@ class PkgConfig < Formula
end
def install
- paths = %W[
- #{HOMEBREW_PREFIX}/lib/pkgconfig
- #{HOMEBREW_PREFIX}/share/pkgconfig
- /usr/local/lib/pkgconfig
- /usr/lib/pkgconfig
- #{HOMEBREW_LIBRARY}/ENV/pkgconfig/#{MacOS.version}
- ].uniq
-
- args = %W[
- --disable-debug
- --prefix=#{prefix}
- --disable-host-tool
- --with-internal-glib
- --with-pc-path=#{paths*':'}
- ]
- args << "CC=#{ENV.cc} #{ENV.cflags}" unless MacOS::CLT.installed?
-
- system "./configure", *args
+ pc_path = %W[
+ #{HOMEBREW_PREFIX}/lib/pkgconfig
+ #{HOMEBREW_PREFIX}/share/pkgconfig
+ /usr/local/lib/pkgconfig
+ /usr/lib/pkgconfig
+ #{HOMEBREW_LIBRARY}/ENV/pkgconfig/#{MacOS.version}
+ ].uniq.join(File::PATH_SEPARATOR)
+ system "./configure", "--disable-debug",
+ "--prefix=#{prefix}",
+ "--disable-host-tool",
+ "--with-internal-glib",
+ "--with-pc-path=#{pc_path}"
system "make"
- system "make check"
- system "make install"
+ system "make", "check"
+ system "make", "install"
end
end