From ded7d69d48b3830d82648a1311c1ec0b3cd3b5d8 Mon Sep 17 00:00:00 2001 From: Tomas Chvatal Date: Sun, 8 Mar 2009 00:02:41 +0100 Subject: /me is pretty embarased for this breakage. Now most ebuilds should work again --- eclass/cmake-utils.eclass | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'eclass/cmake-utils.eclass') 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: [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 "$@" } -- cgit v1.2.3