Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Wed, 31 Aug 2016 14:23:56
Message-Id: 1472653406.ceab82c96faa2907609ff415fa9d6d9ddb1d2fe7.kensington@gentoo
1 commit: ceab82c96faa2907609ff415fa9d6d9ddb1d2fe7
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Sun Aug 21 18:18:10 2016 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Wed Aug 31 14:23:26 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ceab82c9
7
8 kde5-functions.eclass: Make punt_bogus_dep detect !CMakeLists.txt
9
10 eclass/kde5-functions.eclass | 4 ++++
11 1 file changed, 4 insertions(+)
12
13 diff --git a/eclass/kde5-functions.eclass b/eclass/kde5-functions.eclass
14 index da4cd1e..d2eb8a6 100644
15 --- a/eclass/kde5-functions.eclass
16 +++ b/eclass/kde5-functions.eclass
17 @@ -308,6 +308,10 @@ punt_bogus_dep() {
18 local prefix=${1}
19 local dep=${2}
20
21 + if [[ ! -e "CMakeLists.txt" ]]; then
22 + return
23 + fi
24 +
25 pcregrep -Mni "(?s)find_package\s*\(\s*${prefix}[^)]*?${dep}.*?\)" CMakeLists.txt > "${T}/bogus${dep}"
26
27 # pcregrep returns non-zero on no matches/error