On Mon, 26 Jun 2006 08:43:01 -0700 (PDT), Pawel K wrote:

> I want to compile lynx with the following option:
> --enable-default-colors
> 
> As far as I know this option isn't adjustable by any
> global/local use flag. I know I can add this option to
> my:
> /usr/portage/www-client/lynx/lynx-2.8.5-r2.ebuild
> 
> but I will have to do that everytime i upgrade lynx.
> 
> 1) How can I add this option to every lynx build ?
> 2) Can I pass this argument to emerge/ebuild commad ?

EXTRA_ECONF="--enable-default-colors" emerge lynx

To set automatically set per-package environment variables, save this
as /etc/portage/bashrc

---------------------------------------------------------------------
for MY_ENV in ${PN} ${P} ${PF}; do
        if [ -f /etc/portage/env.d/${CATEGORY}/${MY_ENV} ]; then
                source /etc/portage/env.d/${CATEGORY}/${MY_ENV}
                fi
        done
---------------------------------------------------------------------

Then put 'EXTRA_ECONF="--enable-default-colors"'
into /etc/portage/env.d/www-client/lynx

mkdir -p /etc/portage/env.d/www-client
echo 'EXTRA_ECONF="--enable-default-colors"' 
>>/etc/portage/env.d/www-client/lynx


-- 
Neil Bothwick

Run with scissors. Remove mattress tags. Top post. Be a rebel.

Attachment: signature.asc
Description: PGP signature

Reply via email to