summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>2016-08-21 20:18:10 +0200
committerMichael Palimaka <kensington@gentoo.org>2016-09-01 00:23:26 +1000
commitceab82c96faa2907609ff415fa9d6d9ddb1d2fe7 (patch)
tree07e9a49de106ede9993c5e0a94254f4eec01aeb7 /eclass
parentcmake-utils.eclass: Let cmake_comment_add_subdirectory take n arguments (diff)
downloadgentoo-ceab82c96faa2907609ff415fa9d6d9ddb1d2fe7.tar.gz
gentoo-ceab82c96faa2907609ff415fa9d6d9ddb1d2fe7.tar.bz2
gentoo-ceab82c96faa2907609ff415fa9d6d9ddb1d2fe7.zip
kde5-functions.eclass: Make punt_bogus_dep detect !CMakeLists.txt
Diffstat (limited to 'eclass')
-rw-r--r--eclass/kde5-functions.eclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
index da4cd1e59f40..d2eb8a6789e6 100644
--- a/eclass/kde5-functions.eclass
+++ b/eclass/kde5-functions.eclass
@@ -308,6 +308,10 @@ punt_bogus_dep() {
local prefix=${1}
local dep=${2}
+ if [[ ! -e "CMakeLists.txt" ]]; then
+ return
+ fi
+
pcregrep -Mni "(?s)find_package\s*\(\s*${prefix}[^)]*?${dep}.*?\)" CMakeLists.txt > "${T}/bogus${dep}"
# pcregrep returns non-zero on no matches/error