require 'formula' class Qt > src/#{makefile}` } end conf_args = ["-prefix", prefix, "-system-sqlite", "-system-libpng", "-system-zlib", "-nomake", "demos", "-nomake", "examples", "-no-qt3support", "-release", "-cocoa", "-confirm-license", "-opensource", "-I/usr/X11R6/include", "-L/usr/X11R6/lib", "-fast"] if MACOS_VERSION >= 10.6 conf_args << '-arch' << 'x86_64' else conf_args << '-arch' << 'x86' end system "./configure", *conf_args system "make install" # fuck weird prl files `find #{lib} -name \*.prl -delete` # fuck crazy disk usage `rm -r #{prefix+'doc'+'html'} #{prefix+'doc'+'src'}` # wtf are these anyway? `rm -r #{bin}/Assistant_adp.app #{bin}/pixeltool.app #{bin}/qhelpconverter.app` # we specified no debug already! :P `rm #{lib}/libQtUiTools_debug.a` # meh `rm #{prefix}/q3porting.xml` end def caveats "We agreed to the Qt opensource license for you.\nIf this is unacceptable you should uninstall :P" end end