diff options
Diffstat (limited to 'Library/Formula/qt.rb')
| -rw-r--r-- | Library/Formula/qt.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb index 66ababb4c..2e6ca494f 100644 --- a/Library/Formula/qt.rb +++ b/Library/Formula/qt.rb @@ -2,9 +2,9 @@ require 'formula' require 'hardware' class Qt < Formula + homepage 'http://qt.nokia.com/' url 'http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.8.0.tar.gz' md5 'e8a5fdbeba2927c948d9f477a6abe904' - homepage 'http://qt.nokia.com/' bottle do url 'https://downloads.sf.net/project/machomebrew/Bottles/qt-4.8.0-bottle.tar.gz' @@ -75,9 +75,8 @@ class Qt < Formula if ARGV.include? '--with-debug-and-release' args << "-debug-and-release" # Debug symbols need to find the source so build in the prefix - Dir.chdir '..' - mv "qt-everywhere-opensource-src-#{version}", "#{prefix}/src" - Dir.chdir "#{prefix}/src" + mv "../qt-everywhere-opensource-src-#{version}", "#{prefix}/src" + cd "#{prefix}/src" else args << "-release" end @@ -99,6 +98,7 @@ class Qt < Formula # Some config scripts will only find Qt in a "Frameworks" folder # VirtualBox is an example of where this is needed # See: https://github.com/mxcl/homebrew/issues/issue/745 + # TODO - surely this link can be made without the `cd` cd prefix do ln_s lib, "Frameworks" end @@ -106,7 +106,7 @@ class Qt < Formula # The pkg-config files installed suggest that geaders 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| + Dir["#{lib}/*.framework/Headers"].each do |path| framework_name = File.basename(File.dirname(path), '.framework') ln_s path.realpath, include+framework_name end |
