qt5: use install_symlink

master
Jack Nagel 2014-03-25 22:36:45 -05:00
parent c22cf4fcf5
commit 7c595866b8
1 changed files with 4 additions and 9 deletions

View File

@ -95,21 +95,16 @@ class Qt5 < Formula
end
# Some config scripts will only find Qt in a "Frameworks" folder
cd prefix do
ln_s lib, frameworks
end
frameworks.install_symlink Dir["#{lib}/*.framework"]
# 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.
Pathname.glob(lib + '*.framework/Headers').each do |path|
framework_name = File.basename(File.dirname(path), '.framework')
ln_s path.realpath, include+framework_name
Pathname.glob("#{lib}/*.framework/Headers") do |path|
include.install_symlink path => path.parent.basename(".framework")
end
Pathname.glob(bin + '*.app').each do |path|
mv path, prefix
end
Pathname.glob("#{bin}/*.app") { |app| mv app, prefix }
end
test do