Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: Pacho Ramos <pacho@g.o>
Cc: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] readme.gentoo.eclass: expand variables when a file is used instead of setting DOC_CONTENTS in ebuild
Date: Mon, 01 Sep 2014 12:02:36
Message-Id: 20140901140219.4c48a757@pomiot.lan
In Reply to: [gentoo-dev] readme.gentoo.eclass: expand variables when a file is used instead of setting DOC_CONTENTS in ebuild by Pacho Ramos
1 Dnia 2014-08-31, o godz. 14:14:20
2 Pacho Ramos <pacho@g.o> napisał(a):
3
4 > This tries to solve:
5 > https://bugs.gentoo.org/show_bug.cgi?id=519682
6 >
7 > Looks to do the job but maybe there are shorter or saner ways of doing
8 > it
9
10 There are no sane ways of doing this. For a sane alternative, take
11 a look at python_gen_any_dep().
12
13 Long story short, define a list of allowed variables and do:
14
15 x=${x//\${PF}/${PF}}
16 x=${x//\${PN}/${PN}}
17
18 etc.
19
20 --
21 Best regards,
22 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies