diff options
| author | Andreas Sturmlechner <andreas.sturmlechner@gmail.com> | 2015-11-30 23:55:00 +0100 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2015-12-02 22:06:11 +1100 |
| commit | ed4f3e135c2c401ce26dddb4c1108efef5891d82 (patch) | |
| tree | 168c68993b5c81d8d7b9e6baa406a4c281174dd4 /eclass/kde5-functions.eclass | |
| parent | 822e9b791a713d92356b328626809a3dda31e621 (diff) | |
| download | kde-ed4f3e135c2c401ce26dddb4c1108efef5891d82.tar.gz kde-ed4f3e135c2c401ce26dddb4c1108efef5891d82.tar.bz2 kde-ed4f3e135c2c401ce26dddb4c1108efef5891d82.zip | |
kde5-functions.eclass: Make punt_bogus_dep() case insensitive
Diffstat (limited to 'eclass/kde5-functions.eclass')
| -rw-r--r-- | eclass/kde5-functions.eclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass index db460d573e9..eb0cc163e15 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -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*)/I d" -i CMakeLists.txt || die fi } |
