use debug && append-cppflags -DDEBUG.
Also prevent QDebug from flooding when ! use debug (Qt is common toolkit among cmake-controlled packages, we can add respective preprocessor definitions for other known common libs as well)

Sync following changes from kde overlay:
- sort variables so that they appear in manual alphabetically
- run ctest instead of make check in src_test and make it aware of TEST_VERBOSE variable
- sed-out two more hardcoded values from CMakeLists.txt: CMAKE_VERBOSE_MAKEFILE and CMAKE_COLOR_MAKEFILE

Sync cmake-utils and kde eclasses with kde-testing overlays.
Renamed WANT_CMAKE -> CMAKE_REQUIRED in kde eclasses
fixed koffice2.0 support in kde eclasses
Added WANT_CMAKE into cmake-utils eclass, where it brings possibility to depend on cmake only when some useflag is required.
Used with WANT_CMAKE="variable", where variable is the useflag (its autoadded to IUSE too.)

Introduce updated cmake-utils eclass
Now it can be run out of the S variable by defining CMAKE_USE_DIR
I searched tree and found no issue but if your package fail you are probably using this:
${WORKDIR}/${PN}_build/ this code should be replaced with "${CMAKE_BUILD_DIR}"

Update eclassdoc so it work again. Per bug #264791.
Introduce feature that if dev calls $(cmake-use_bla use) it runs all various permutations:
-DBLA_use=ON -DBLA_Use=ON -DBLA_USE=ON
Really reduces duplication in some ebuilds. Old behavior preserved tho via third parameter:
$(cmake-use_bla use VALUE) results only into -DBLA_VALUE=ON

Added a patch by Nelchael (use pushd/popd, allow use of CMAKE_IN_SOURCE_BUILD, define LIB_INSTALL_DIR) and cmake-utils_use_want by Ingmar to allow usage of the eclass by applications that need -DWANT_blah.

New cmake-utils.eclass providing functions for the cmake build system with all requested fixes after the review on gentoo-dev.

This form allows you to request diffs between any two revisions of this file.
For each of the two "sides" of the diff,
select a symbolic revision name using the selection box, or choose
'Use Text Field' and enter a numeric revision.