Rémi Cardona schrieb:
> Thomas Sachau a écrit :
>> Why not do both (rebuild and install) with the doc useflag and none of
>> both, if it is not set? Imho
>> the doc flag is for control of installation for (additional) docs, the
>> way it is used for gtk-doc is
>> surely confusing.
>>
>
> Building gtk-doc documentation pulls in a lot of deps. Installing it
> requires only some disk-space. For a full Gnome system, I only have 96M
> of docs.
>
> As for rebuilding docs, one of the advantage is to correctly crosslink
> docs for tools such as dev-util/devhelp.
>
> If anyone is _that_ short on diskspace, we'll gladly take patches :)
>
> Cheers
>
> Rémi
>
>
Did i say something about disk space? I say, you are using the doc use flag in a way that is not
expected. The global use flag says, it installs additional documentation. But your doc use flag does
not install anything additional, but instead rebuilds those docs. There is nothing wrong with
rebuilding them on use=doc, but imho you should also only install those docs with use=doc.
The patch could be as simple as adding >use doc || rm -rf "${D}"usr/share/gtk-doc< at the end of
src_install()-function in gnome2.eclass, that should be simple enough to apply without a patch. :)
Btw: e.g. x11-libs/gtk+ has no doc use flag, does not rebuild those docs, but does also install
those docs as reported in bug 239524.
--
Thomas Sachau
Gentoo Linux Developer
use doc || rm -rf "${D}usr/share/gtk-doc
|