mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 11:37:20 -08:00
kde5-functions.eclass: Make punt_bogus_dep detect !CMakeLists.txt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user