Skip to content

Commit

Permalink
Added symlink to includes for Qwt.
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Savard committed Nov 29, 2012
1 parent cf0a86c commit 74dbaa5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Library/Formula/qwt.rb
Expand Up @@ -15,6 +15,17 @@ def install

system "qmake -spec macx-g++ -config release"
system "make"
ENV.j1
system "make install"

# The pkg-config files installed suggest that headers can be found in the
# `include` directory. Make this so by creating symlinks from `include` to
# the Frameworks' Headers folders.
include.mkdir

This comment has been minimized.

Copy link
@adamv

adamv Nov 29, 2012

Check out Pathname#install_symlink; maybe it can turn this into a oneliner?

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
end

0 comments on commit 74dbaa5

Please sign in to comment.