1 |
On Thursday, September 16, 2010 14:51:39 Matti Bickel wrote: |
2 |
> +# 1.6: 'x11-libs/fox:1.6' |
3 |
> +# 1.7: '~x11-libs/fox-${PV}' |
4 |
|
5 |
first line is using a tab while second is spaces. both should be tabs. |
6 |
|
7 |
> FOX_PV="${FOX_PV:-${PV}}" |
8 |
|
9 |
while you're here, i'd change to: |
10 |
: ${FOX_PV:=${PV}} |
11 |
|
12 |
> for d in ${FOX_APPS} ; do |
13 |
|
14 |
your prepare func should declare 'd' as local |
15 |
|
16 |
> + if use doc && [[ -z ${FOX_COMPONENT} ]] ; then |
17 |
> + cd "${S}/doc" |
18 |
> make docs || die "doxygen error" |
19 |
> fi |
20 |
|
21 |
should be `emake`, and better to use -C "${S}"/doc so that you dont change |
22 |
$PWD on people |
23 |
|
24 |
> + if ! use doc && [[ -d ${D}/usr/share/doc/${PF}/html ]] ; then |
25 |
> + rm -fr "${D}/usr/share/doc/${PF}/html" |
26 |
> fi |
27 |
|
28 |
you dont really need the -d check as the -f option to rm will keep it from |
29 |
warning on missing dirs |
30 |
use doc || rm -rf "${D}"/usr/share/doc/${PF}/html |
31 |
|
32 |
> + if [[ -f ${D}/usr/bin/fox-config ]] ; then |
33 |
> + mv "${D}/usr/bin/fox-config" "${D}/usr/bin/fox-${FOXVER}-config" |
34 |
> fi |
35 |
|
36 |
seems like you would want || die here |
37 |
-mike |