1 |
On Thursday 31 May 2012 08:55:25 Michał Górny wrote: |
2 |
> +# Note: this function implicitly calls pkg-config. You should add it to |
3 |
> +# your DEPEND when using it. |
4 |
|
5 |
should clarify: implicitly calls pkg-config when your package provides a .pc. |
6 |
|
7 |
> + if [[ ! ${removing_all} ]]; then |
8 |
> + local f |
9 |
> + local tf=${T}/prune-lt-files.pc |
10 |
> + local pkgconf=$(tc-getPKG_CONFIG) |
11 |
> + |
12 |
> + while IFS= read -r -d '' f; do # for all .pc files |
13 |
> + sed -e '/^Requires:/d' "${f}" > "${tf}" |
14 |
> + for arg in $("${pkgconf}" --libs "${tf}"); do |
15 |
|
16 |
missing `local arg` |
17 |
|
18 |
> + done < <(find "${D}" -type f -name '*.pc' -print0) |
19 |
|
20 |
not a big deal since it'll get cleaned anyways, but this doesn't clean up $tf |
21 |
when done |
22 |
|
23 |
if no one else has feedback, i guess merge it |
24 |
-mike |