Gentoo Archives: gentoo-user

From: Masanori Ogino <masanori.ogino@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] How to Set Environment Variables in Ebuilds
Date: Tue, 14 Jan 2014 03:27:28
Message-Id: CAA-4+jdp3f68NwYrZkoOs7ZVT=unrG=tYZMLZhqS3hzNc6-_tw@mail.gmail.com
1 Hello.
2
3 I wrote an ebuild and it executes a small Python script bundled in the
4 source. The Python script requires a environment variable to be set.
5
6 I tried something like:
7
8 NAME=value ${ECONF_SOURCE:-.}/script_file.py
9
10 and
11
12 export NAME=value
13 ${ECONF_SOURCE:-.}/script_file.py
14
15 but the both fail to pass the parameter via the environment variable to the
16 script.
17
18 How can I do it? Please point it out if I overlooked something.
19
20 --
21 Masanori Ogino <masanori.ogino@×××××.com>
22 http://twitter.com/omasanori
23 http://gplus.to/omasanori

Replies

Subject Author
Re: [gentoo-user] How to Set Environment Variables in Ebuilds Mike Gilbert <floppym@g.o>