summaryrefslogtreecommitdiff
path: root/eclass/kde4-meta.eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass/kde4-meta.eclass')
-rw-r--r--eclass/kde4-meta.eclass21
1 files changed, 15 insertions, 6 deletions
diff --git a/eclass/kde4-meta.eclass b/eclass/kde4-meta.eclass
index d697a2b248b..3853dff0e82 100644
--- a/eclass/kde4-meta.eclass
+++ b/eclass/kde4-meta.eclass
@@ -641,12 +641,21 @@ kde4-meta_change_cmakelists() {
koffice)
# prevent collisions
if [[ ${PN} != koffice-data ]]; then
- sed -i -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \
- "${S}"/cmake/modules/CMakeLists.txt || \
- die "${LINENO}: sed died in collision prevention section"
- sed -i -n -e '1h;1!H;${g;s/install(.\+config-openexr.h.\+)//;p}' \
- "${S}"/CMakeLists.txt || \
- die "${LINENO}: sed died in collision prevention section"
+ case ${PV} in
+ 2.0.*)
+ sed -i -e '/install(.*FindKOfficeLibs.cmake/,/)/ d' \
+ "${S}"/cmake/modules/CMakeLists.txt || \
+ die "${LINENO}: sed died in collision prevention section"
+ sed -i -n -e '1h;1!H;${g;s/install(.\+config-openexr.h.\+)//;p}' \
+ "${S}"/CMakeLists.txt || \
+ die "${LINENO}: sed died in collision prevention section"
+ ;;
+ *)
+ sed -i -e '/install(.\+config-openexr\.h.\+)/d' \
+ "${S}"//CMakeLists.txt || \
+ die "${LINENO}: sed died in collision prevention section"
+ ;;
+ esac
fi
esac