diff options
| author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-03-08 00:02:41 +0100 |
|---|---|---|
| committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-03-08 00:02:41 +0100 |
| commit | ded7d69d48b3830d82648a1311c1ec0b3cd3b5d8 (patch) | |
| tree | ef5821c5697d9867de3ea4c002e84d4db145dc46 /eclass/cmake-utils.eclass | |
| parent | c71bc41110ee42311472b491219b32f835cc6063 (diff) | |
| download | kde-ded7d69d48b3830d82648a1311c1ec0b3cd3b5d8.tar.gz kde-ded7d69d48b3830d82648a1311c1ec0b3cd3b5d8.tar.bz2 kde-ded7d69d48b3830d82648a1311c1ec0b3cd3b5d8.zip | |
/me is pretty embarased for this breakage. Now most ebuilds should work again
Diffstat (limited to 'eclass/cmake-utils.eclass')
| -rw-r--r-- | eclass/cmake-utils.eclass | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass index 3f069472dfe..fd0ddfb8bd6 100644 --- a/eclass/cmake-utils.eclass +++ b/eclass/cmake-utils.eclass @@ -18,15 +18,16 @@ # builds and an implementation of the well-known use_enable and use_with # functions for CMake. -EXPORTED_FUNCTIONS="src_compile src_test src_install" +inherit toolchain-funcs multilib flag-o-matic base + +EXPF="src_compile src_test src_install" case ${EAPI:-0} in - 2) EXPORTED_FUNCTIONS="src_configure ${EXPORTED_FUNCTIONS}" ;; + 2) EXPF="${EXPF} src_configure" + ;; 1|0) ;; *) die "Unknown EAPI, Bug eclass maintainers." ;; esac -EXPORT_FUNCTIONS ${EXPORTED_FUNCTIONS} - -inherit toolchain-funcs multilib flag-o-matic base +EXPORT_FUNCTIONS ${EXPF} : ${DESCRIPTION:="Based on the ${ECLASS} eclass"} @@ -85,6 +86,7 @@ _check_build_dir() { else CMAKE_BUILD_DIR="${WORKDIR}/${PN}_build" fi + echo ">>> Working in BUILD_DIR: \"$CMAKE_BUILD_DIR\"" } # @FUNCTION: cmake-utils_use_with # @USAGE: <USE flag> [flag name] @@ -241,8 +243,7 @@ _EOF_ cmake-utils_src_compile() { debug-print-function ${FUNCNAME} "$@" - has src_configure ${EXPORTED_FUNCTIONS} || cmake-utils_src_configure - + has src_configure ${EXPF} || cmake-utils_src_configure cmake-utils_src_make "$@" } |
