aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-03-25 22:36:32 -0500
committerJack Nagel2014-03-25 22:36:32 -0500
commitcb234f37daa12f25fc9bbc98b15d7738ec2b1fe2 (patch)
tree89c21c5ac1c54db679f831f4384c13474546fb91 /Library
parentaa5c5d6a5f320a5621377503b05cf116d5647610 (diff)
downloadhomebrew-cb234f37daa12f25fc9bbc98b15d7738ec2b1fe2.tar.bz2
qt: use install_symlink
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/qt.rb12
1 files changed, 4 insertions, 8 deletions
diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb
index 75108f8df..80438f1d3 100644
--- a/Library/Formula/qt.rb
+++ b/Library/Formula/qt.rb
@@ -104,20 +104,16 @@ class Qt < Formula
(prefix+'q3porting.xml').unlink if build.without? 'qt3support'
# Some config scripts will only find Qt in a "Frameworks" folder
- frameworks.mkpath
- ln_s Dir["#{lib}/*.framework"], frameworks
+ 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