Lines 351-357
Link Here
|
351 |
local first=$(head -n 1 "${T}/bogus${dep}" | cut -d ":" -f 1) |
351 |
local first=$(head -n 1 "${T}/bogus${dep}" | cut -d ":" -f 1) |
352 |
local last=$(( ${length} + ${first} - 1)) |
352 |
local last=$(( ${length} + ${first} - 1)) |
353 |
|
353 |
|
354 |
sed -e "${first},${last}s/${dep}//" -i CMakeLists.txt || die |
354 |
if [[ ${length} -gt 0 ]] ; then |
|
|
355 |
sed -e "${first},${last}s/${dep}//" -i CMakeLists.txt || die |
356 |
fi |
355 |
|
357 |
|
356 |
if [[ ${length} = 1 ]] ; then |
358 |
if [[ ${length} = 1 ]] ; then |
357 |
sed -e "/find_package\s*(\s*${prefix}\(\s\+\(REQUIRED\|CONFIG\|COMPONENTS\|\${[A-Z0-9_]*}\)\)\+\s*)/Is/^/# removed by kde5-functions.eclass - /" -i CMakeLists.txt || die |
359 |
sed -e "/find_package\s*(\s*${prefix}\(\s\+\(REQUIRED\|CONFIG\|COMPONENTS\|\${[A-Z0-9_]*}\)\)\+\s*)/Is/^/# removed by kde5-functions.eclass - /" -i CMakeLists.txt || die |