Gentoo Archives: gentoo-dev

From: Stuart Herbert <stuart@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Ebuilds needing user input
Date: Sat, 31 Jan 2004 08:38:42
Message-Id: 200401310833.26525.stuart@gentoo.org
In Reply to: [gentoo-dev] Ebuilds needing user input by Paulo Jorge de Oliveira Cantante de Matos
1 On Friday 30 January 2004 11:11 pm, Paulo Jorge de Oliveira Cantante de Matos
2 wrote:
3 > Hi all,
4 >
5 > How should one enter some input to an installation process through an
6 > ebuild? For example, at some point the bash script for program
7 > installation needs to receive a number from 1 to 4, how can we enter one
8 > of those through an ebuild?
9
10 You should always try to avoid writing ebuilds that need input from the user.
11 Add a local USE flag to the ebuild, so that the user can make his choice
12 *before* the ebuild runs.
13
14 Best regards,
15 Stu
16 --
17 Stuart Herbert stuart@g.o
18 Gentoo Developer http://www.gentoo.org/
19 Beta packages for download http://dev.gentoo.org/~stuart/packages/
20 Come and meet me in March 2004 http://www.phparch.com/cruise/
21
22 GnuGP key id# F9AFC57C available from http://pgp.mit.edu
23 Key fingerprint = 31FB 50D4 1F88 E227 F319 C549 0C2F 80BA F9AF C57C
24 --