Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] compilation option
Date: Mon, 26 Jun 2006 16:40:15
Message-Id: 20060626172716.554c9472@hactar.digimed.co.uk
In Reply to: [gentoo-user] compilation option by Pawel K
1 On Mon, 26 Jun 2006 08:43:01 -0700 (PDT), Pawel K wrote:
2
3 > I want to compile lynx with the following option:
4 > --enable-default-colors
5 >
6 > As far as I know this option isn't adjustable by any
7 > global/local use flag. I know I can add this option to
8 > my:
9 > /usr/portage/www-client/lynx/lynx-2.8.5-r2.ebuild
10 >
11 > but I will have to do that everytime i upgrade lynx.
12 >
13 > 1) How can I add this option to every lynx build ?
14 > 2) Can I pass this argument to emerge/ebuild commad ?
15
16 EXTRA_ECONF="--enable-default-colors" emerge lynx
17
18 To set automatically set per-package environment variables, save this
19 as /etc/portage/bashrc
20
21 ---------------------------------------------------------------------
22 for MY_ENV in ${PN} ${P} ${PF}; do
23 if [ -f /etc/portage/env.d/${CATEGORY}/${MY_ENV} ]; then
24 source /etc/portage/env.d/${CATEGORY}/${MY_ENV}
25 fi
26 done
27 ---------------------------------------------------------------------
28
29 Then put 'EXTRA_ECONF="--enable-default-colors"'
30 into /etc/portage/env.d/www-client/lynx
31
32 mkdir -p /etc/portage/env.d/www-client
33 echo 'EXTRA_ECONF="--enable-default-colors"' >>/etc/portage/env.d/www-client/lynx
34
35
36 --
37 Neil Bothwick
38
39 Run with scissors. Remove mattress tags. Top post. Be a rebel.

Attachments

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