aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Library/Formula/qt.rb8
1 files changed, 8 insertions, 0 deletions
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