kde5-functions.eclass: punt_bogus_deps improvements
authorJohannes Huber <johu@gentoo.org>
Tue, 19 Apr 2016 11:53:41 +0000 (13:53 +0200)
committerJohannes Huber <johu@gentoo.org>
Tue, 19 Apr 2016 12:07:57 +0000 (14:07 +0200)
Syncs eclass with kde overlay. Improvements by Michael Palimaka
<kensington@gentoo.org>. Needed for bug #580282.

eclass/kde5-functions.eclass

index be336bec8b10e27387d8c7b815a443ee8fd70f4d..44bc29631a56ad69f3e6bb13014c9d7e48d6217d 100644 (file)
@@ -274,7 +274,7 @@ punt_bogus_dep() {
        sed -e "${first},${last}s/${dep}//" -i CMakeLists.txt || die
 
        if [[ ${length} = 1 ]] ; then
-               sed -e "/find_package\s*(\s*${prefix}\s*\(REQUIRED\)*\s*\(COMPONENTS\)*\s*)/I d" -i CMakeLists.txt || die
+               sed -e "/find_package\s*(\s*${prefix}\(\s\+\(REQUIRED\|CONFIG\|COMPONENTS\|\${KF5_VERSION}\)\)\+\s*)/Is/^/# removed by kde5-functions.eclass - /" -i CMakeLists.txt || die
        fi
 }