>>>>> On Sun, 22 Nov 2015, Michał Górny wrote: > On Sat, 21 Nov 2015 18:49:03 -0500 > Ian Stakenvicius <a...@gentoo.org> wrote:
>> All told, I think i'm in favour of banning the variables, and >> potentially providing getter functions that would output the path >> of these files if they need to be accessed -- '$(get_eclasspath >> [name])' or $(get_licensepath [name]) or the like. I don't know if >> these could be implemented in-eclass or if they would be something >> that would have to be added to EAPI7..? The more I think about the idea of having a LICENSEDIR containing symlinks, the less I like it. It would add the overhead of creating the dir to all ebuilds, whereas it would be used in a handful of cases only. Also the symlinks won't be permanent, so postinst messages like "read the license at ${LICENSEDIR}/GPL-2" cannot be used, unless the ebuild would follow the link (e.g. using readlink) which seems clumsy. So IMO a function like get_license_path is the better solution here. > And if I understand your idea correctly, get_licensepath would still > not work for binary packages. Is there a scenario where LICENSEDIR would work, but the function would not? Ulrich
pgpJpFTb9Bxmk.pgp
Description: PGP signature