mxcl/homebrew — pull request #13377 by wjwwood (2012-07-12 23:49:28+00:00)
Title: shiboken: fixed missing dependency on qt

When trying to install pyside, shiboken is the first dependency. Shiboken fails with:

∫ brew install shiboken
==> Downloading http://pyside.org/files/shiboken-1.1.1.tar.bz2
Already downloaded: /Users/william/Library/Caches/Homebrew/shiboken-1.1.1.tar.bz2
==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/shiboken/1.1.1 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DBUILD_TESTS=OFF ..
-- The C compiler identification is Clang 3.1.0
-- The CXX compiler identification is Clang 3.1.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Could NOT find Qt4 (missing: QT_QMAKE_EXECUTABLE QT_MOC_EXECUTABLE QT_RCC_EXECUTABLE QT_UIC_EXECUTABLE QT_INCLUDE_DIR QT_LIBRARY_DIR QT_QTCORE_LIBRARY) (Required is at least version "4.5.0")
-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found suitable version "2.7.1", required is "2.6")
-- Found LibXml2: /usr/lib/libxml2.dylib (found suitable version "2.7.3", required is "2.6.32")
-- Found LibXslt: /usr/lib/libxslt.dylib (found suitable version "1.1.24", required is "1.1.19")
Qt QTGUI library not found.
Qt QTXML library not found.
Qt QTCORE library not found.
CMake Error at ApiExtractor/CMakeLists.txt:81 (qt4_add_resources):
Unknown CMake command "qt4_add_resources".

-- Configuring incomplete, errors occurred!
==> Build Environment
HOMEBREW_VERSION: 0.9.2
HEAD: f84d9a4674e2ebefbcdd015e82e9661b4a728a88
CPU: quad-core 64-bit sandybridge
OS X: 10.7.4-x86_64
Xcode: 4.3.3
CLT: 1.0.0.9000000000.1.1249367152
X11: 2.7.2 @ /opt/X11
CC: /usr/bin/clang
CXX: /usr/bin/clang++ => /usr/bin/clang
LD: /usr/bin/clang
CFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7
CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments -mmacosx-version-min=10.7
CPPFLAGS: -isystem /usr/local/include
LDFLAGS: -L/usr/local/lib
MACOSX_DEPLOYMENT_TARGET: 10.7
MAKEFLAGS: -j4
Error: Failed executing: cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/shiboken/1.1.1 -DCMAKE_BUILD_TYPE=None -DCMAKE_FIND_FRAMEWORK=LAST -Wno-dev -DBUILD_TESTS=OFF .. (shiboken.rb:19)
If `brew doctor` does not, this may help you fix or report the issue:
https://github.com/mxcl/homebrew/wiki/bug-fixing-checklist

I think shiboken should depend on qt, the pull request adds this dependency to the shiboken formula.