kde5-functions.eclass: Make punt_bogus_dep() case insensitive
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Mon, 30 Nov 2015 22:44:41 +0000 (23:44 +0100)
committerMichael Palimaka <kensington@gentoo.org>
Wed, 2 Dec 2015 14:38:14 +0000 (01:38 +1100)
eclass/kde5-functions.eclass

index 74f6a02dcd9670a90dc977f110ca03325a3f1046..8041452af25068098a1fa60ba941dfca0176beb9 100644 (file)
@@ -229,7 +229,7 @@ punt_bogus_dep() {
        local prefix=${1}
        local dep=${2}
 
-       pcregrep -Mn "(?s)find_package\s*\(\s*${prefix}.[^)]*?${dep}.*?\)" CMakeLists.txt > "${T}/bogus${dep}"
+       pcregrep -Mni "(?s)find_package\s*\(\s*${prefix}.[^)]*?${dep}.*?\)" CMakeLists.txt > "${T}/bogus${dep}"
 
        # pcregrep returns non-zero on no matches/error
        if [[ $? != 0 ]] ; then
@@ -243,7 +243,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*)/d" -i CMakeLists.txt || die
+               sed -e "/find_package\s*(\s*${prefix}\s*REQUIRED\s*COMPONENTS\s*)/d" -i CMakeLists.txt || die
        fi
 }