Permalink
Browse files

qt: use install_symlink

  • Loading branch information...
jacknagel committed Mar 26, 2014
1 parent 34486a1 commit c22cf4fcf52b46efe2ee72de4a174e01fae722d7
Showing with 4 additions and 8 deletions.
  1. +4 −8 Formula/qt.rb
View
@@ -104,20 +104,16 @@ def install
(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

0 comments on commit c22cf4f

Please sign in to comment.