diff options
| author | Michael Palimaka <kensington@gentoo.org> | 2016-03-11 06:03:57 +1100 |
|---|---|---|
| committer | Michael Palimaka <kensington@gentoo.org> | 2016-03-11 06:04:02 +1100 |
| commit | aeb762f669db6537a11fbad31d0ebaf337d019a6 (patch) | |
| tree | 17bd7692d8ada5acee4875d691f8cc3de82dc682 /eclass/kde5-functions.eclass | |
| parent | 88242e8ba764637f78962e3979f84c5ca80e2723 (diff) | |
| download | kde-aeb762f669db6537a11fbad31d0ebaf337d019a6.tar.gz kde-aeb762f669db6537a11fbad31d0ebaf337d019a6.tar.bz2 kde-aeb762f669db6537a11fbad31d0ebaf337d019a6.zip | |
kde5-functions.eclass: improve punt_bogus_deps
This extends coverage to individual components such as find_package(KF5DocTools).
It also improves cleaning up of empty find_package calls such as find_package(KF5).
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 0a6a4347c61..34a7c924415 100644 --- a/eclass/kde5-functions.eclass +++ b/eclass/kde5-functions.eclass @@ -260,7 +260,7 @@ punt_bogus_dep() { local prefix=${1} local dep=${2} - pcregrep -Mni "(?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 @@ -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\)*\s*\(COMPONENTS\)*\s*)/I d" -i CMakeLists.txt || die fi } |
