diff options
| author | Tomas Chvatal <scarabeus@gentoo.org> | 2009-01-07 11:32:01 +0100 |
|---|---|---|
| committer | Tomas Chvatal <scarabeus@gentoo.org> | 2009-01-07 11:32:01 +0100 |
| commit | dfb8ec2a7c309ace4a45ac6942b8f130733cd989 (patch) | |
| tree | 32d233b0deba612de36c23904ffed32540e82fa6 | |
| parent | 546e855f050781eb4e8385b3b27e15a8a92f4a25 (diff) | |
| download | kde-dfb8ec2a7c309ace4a45ac6942b8f130733cd989.tar.gz kde-dfb8ec2a7c309ace4a45ac6942b8f130733cd989.tar.bz2 kde-dfb8ec2a7c309ace4a45ac6942b8f130733cd989.zip | |
Reavertms play from kde-crazy.
| -rw-r--r-- | eclass/kde4-functions.eclass | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/eclass/kde4-functions.eclass b/eclass/kde4-functions.eclass index 456934a96a1..27731ac6d93 100644 --- a/eclass/kde4-functions.eclass +++ b/eclass/kde4-functions.eclass @@ -114,7 +114,7 @@ enable_selected_linguas() { # ebuild overridable linguas directory definition KDE_LINGUAS_DIR=${KDE_LINGUAS_DIR:=${S}/po} cd "$KDE_LINGUAS_DIR" || die "wrong linguas dir specified" - + # fix all various crazy sr@Latn variations # this part is only ease for ebuilds, so there wont be any die when this # fail at any point @@ -150,6 +150,18 @@ enable_selected_linguas() { done } +# FIXME: descripton too brief? +# @FUNCTION: kdebase_toplevel_cmakelists +# @DESCRIPTION: +# replace includes for live ebuilds with optional requests +kdebase_toplevel_cmakelist() { + insert=$(sed -e '/macro_optional_find_package/!d' < "${ESVN_WC_PATH}"/CMakeLists.txt) + at=$(sed -n '/^include[[:space:]]*(/=' < "${S}"/CMakeLists.txt | sed -n '$p') + for line in ${insert}; do + sed "${at}a${line}" -i "${S}"/CMakeLists.txt + done +} + # @FUNCTION: koffice_fix_libraries # @DESCRIPTION: # replace the weird koffice lib search with hardcoded one, so it |
