That could also be done is bashrc ;)

#!/bin/bash

[ -f /etc/bashrc ] && . /etc/bashrc
[ -f /etc/bash/bashrc ] && . /etc/bash/bashrc

[ -f /etc/portage/package.cflags ] && PACKAGE_CFLAGS=$(cat
/etc/portage/package.cflags | grep -vE "^#" | grep -E
"^${CATEGORY}/${PN}" | awk '{print $2}')
[ -f /etc/portage/package.ldflags ] && PACKAGE_LDFLAGS=$(cat
/etc/portage/package.ldflags | grep -vE "^#" | grep -E
"^${CATEGORY}/${PN}" | awk '{print $2}')
[ -f /etc/portage/package.features ] && PACKAGE_FEATURES=$(cat
/etc/portage/package.features | grep -vE "^#" | grep -E
"^${CATEGORY}/${PN}" | awk '{print $2}')

LDFLAGS="${PACKAGE_LDFLAGS} ${LDFLAGS}"
CFLAGS="${PACKAGE_LDFLAGS} ${CFLAGS}"
FEATURES="${PACKAGE_FEATURES} ${FEATURES}"

With that you need /etc/portage/package.cflags
/etc/portage/package.ldflags /etc/portage/package.features with this
syntax :

/etc/portage/package.cflags
x11-libs/evas   -g

/etc/portage/package.ldflags
x11-libs/evas   -lass

/etc/portage/package.features
x11-libs/evas   nostrip

that's just an example, very simple one, bugged one, because accept
only one line for a package, don't accept version features, cflags,
ldflags

I think it work :)

++

On 8/28/05, Mathieu <[EMAIL PROTECTED]> wrote:
> Bertrand Jacquin <[EMAIL PROTECTED]> disait dernièrement que :
> 
> > Yes You can have a bashrc for emerge, just use /etc/portage/bashrc and
> > portage will source it automaticaly.
> >
> > Here a completely untested, mail written bashrc for that :
> >
> > #!/bin/bash
> >
> > [ -f /etc/bashrc ] && . /etc/bashrc
> > [ -f /etc/bash/bashrc ] && . /etc/bash/bashrc
> >
> > CFLAGS="-g"
> > FEATURES="nostrip"
> >
> 
> Oh thank you but I have one that reads /etc/portage/package.cflags
> which sets cflags per package. (the same for ldflags with
> /etc/portage/package.ldflags :)
> 
> --
> Mathieu, little off-topic
> 


-- 
Beber
[EMAIL PROTECTED]


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
enlightenment-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-users

Reply via email to