From 3bdf652d2418bbd85dfea67af1142a27dedfc122 Mon Sep 17 00:00:00 2001 From: Charlie Sharpsteen Date: Thu, 16 Jun 2011 14:32:24 -0700 Subject: Qt: Link Framework header folders into include So programs that rely on `pkg-config --cflags` will work. Signed-off-by: Adam Vandenberg --- Library/Formula/qt.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb index ef6c89c9e..a4e32ae72 100644 --- a/Library/Formula/qt.rb +++ b/Library/Formula/qt.rb @@ -96,6 +96,14 @@ class Qt < Formula cd prefix do ln_s lib, "Frameworks" end + + # The pkg-config files installed suggest that geaders can be found in the + # `include` directory. Make this so by creating symlinks from `include` to + # the Frameworks' Headers folders. + Pathname.glob(lib + '*.framework/Headers').each do |path| + framework_name = File.basename(File.dirname(path), '.framework') + ln_s path.realpath, include+framework_name + end end def caveats -- cgit v1.2.3