diff options
| author | Michael Palimaka <kensington@gentoo.org> | 2015-06-13 03:00:30 +1000 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2015-06-13 03:00:55 +1000 |
| commit | 01d43d006b17918703062c099958bbf3f1b8f21a (patch) | |
| tree | 0afd323b68039603cb56e015b6a89d3e332e3697 /eclass/kde5-functions.eclass | |
| parent | a785400b4eb0964af9d63718c486f7211aee13bb (diff) | |
| download | kde-01d43d006b17918703062c099958bbf3f1b8f21a.tar.gz kde-01d43d006b17918703062c099958bbf3f1b8f21a.tar.bz2 kde-01d43d006b17918703062c099958bbf3f1b8f21a.zip | |
[eclass] Handle more whitespace variations.
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 95735ba689a..cd0588d5081 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -218,7 +218,7 @@ punt_bogus_dep() { local prefix=${1} local dep=${2} - pcregrep -Mn "(?s)find_package\(\s*${prefix}.[^)]*?${dep}.*?\)" CMakeLists.txt > "${T}/bogus${dep}" + pcregrep -Mn "(?s)find_package\s*\(\s*${prefix}.[^)]*?${dep}.*?\)" CMakeLists.txt > "${T}/bogus${dep}" # pcregrep returns non-zero on no matches/error if [[ $? != 0 ]] ; then @@ -232,7 +232,7 @@ punt_bogus_dep() { sed -e "${first},${last}s/${dep}//" -i CMakeLists.txt || die if [[ ${length} = 1 ]] ; then - sed -e "/find_package(\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 } |
