diff options
| author | Charlie Sharpsteen | 2011-06-16 14:32:24 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2011-07-26 07:30:04 -0700 |
| commit | 3bdf652d2418bbd85dfea67af1142a27dedfc122 (patch) | |
| tree | 147c83261c0d6811bb10b133f8c9011adbacc08c | |
| parent | ee2f510e18c1020ae5583a89cefe8e160f76c886 (diff) | |
| download | homebrew-3bdf652d2418bbd85dfea67af1142a27dedfc122.tar.bz2 | |
Qt: Link Framework header folders into include
So programs that rely on `pkg-config <some Qt module> --cflags` will work.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
| -rw-r--r-- | Library/Formula/qt.rb | 8 |
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 |
