diff options
| author | Max Howell | 2009-11-07 16:25:43 +0000 |
|---|---|---|
| committer | Max Howell | 2009-11-08 15:21:14 +0000 |
| commit | ba700982954ee94b569dc972ee75cd08b0b46bec (patch) | |
| tree | 3ba038ddb517531de21ce3308b7fb29354fb27ba /Library | |
| parent | dbd8e68c60c8af2cd647afa011fbea38401dfdf9 (diff) | |
| download | homebrew-ba700982954ee94b569dc972ee75cd08b0b46bec.tar.bz2 | |
Slight Qt cleanup
Use Ruby functions for the delete at end too.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/qt.rb | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/Library/Formula/qt.rb b/Library/Formula/qt.rb index e5e7a3ac2..e7a4b847e 100644 --- a/Library/Formula/qt.rb +++ b/Library/Formula/qt.rb @@ -17,17 +17,9 @@ class Qt <Formula ] end - if ARGV.include? '--with-dbus' - depends_on "dbus" - end - - if ARGV.include? '--with-qt3support' - depends_on "dbus" - end - - if not File.exist? "/usr/X11R6/lib" - depends_on 'libpng' - end + depends_on "dbus" if ARGV.include? '--with-dbus' + depends_on "dbus" if ARGV.include? '--with-qt3support' + depends_on 'libpng' unless File.exist? "/usr/X11R6/lib" def install if version == '4.5.3' @@ -76,13 +68,17 @@ class Qt <Formula # fuck weird prl files `find #{lib} -name \*.prl -delete` # fuck crazy disk usage - `rm -r #{prefix+'doc'+'html'} #{prefix+'doc'+'src'}` + (prefix+'doc'+'html').rmtree + (prefix+'doc'+'src').rmtree # wtf are these anyway? - `rm -r #{bin}/Assistant_adp.app #{bin}/pixeltool.app #{bin}/qhelpconverter.app` + (bin+'Assistant_adp.app').rmtree + (bin+'pixeltool.app').rmtree + (bin+'qhelpconverter.app').rmtree # we specified no debug already! :P - `rm #{lib}/libQtUiTools_debug.a #{lib}/pkgconfig/QtUiTools_debug.pc` + (lib+'libQtUiTools_debug.a').unlink + (lib+'pkgconfig/QtUiTools_debug.pc').unlink # meh - `rm #{prefix}/q3porting.xml` + (prefix+'q3porting.xml').unlink end def caveats |
