I'm writing an ebuild using cmake-utils eclass and need to know the chosen build directory. cmake-utils uses ${WORKDIR}/${PN}_build (or ${S} if CMAKE_IN_SOURCE_BUILD is nonzero). I changed the eclass to set a variable CMAKE_BUILD_DIR with the used build dir. This var can now be used by ebuilds. A nice side effect of that change is that now src_configurein is exactly the same as src_configureout with CMAKE_BUILD_DIR=${S}. This makes src_configurein superfluous. And since src_configure only sets CMAKE_BUILD_DIR and then calls src_configureout, these two functions can be merged as well. Additionally, all the checks for in- or out-of-source build can now be removed. Patch follows.
Created attachment 182551 [details] add CMAKE_BUILD_DIR and simplify eclass please consider applying
Thanks for idea, i did it in kde-testing overlay and in ~week i will add it to the tree (i plan more updates so i need some time to do them :]) (closing as fixed cause i dont want anybody else to mess around cmake-utils since i already did it :])
2 weeks are gone and still not in the tree: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/cmake-utils.eclass Please close the bug again when it's fixed, otherwise dependencies between bugs don't make much sense.
We run into few major bugs in cmake infrastructure that we are refactoring now. Take look on kde-testing, we are actualy changing the eclass currently every day :( Sorry for the noise
Ok now it is in the tree :]