aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/qt5.rb13
1 files changed, 4 insertions, 9 deletions
diff --git a/Library/Formula/qt5.rb b/Library/Formula/qt5.rb
index 0d40c95bb..e5634c27f 100644
--- a/Library/Formula/qt5.rb
+++ b/Library/Formula/qt5.rb
@@ -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