public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] emerge to unconventional directories...
@ 2002-02-20 16:13 Richard Reich
  0 siblings, 0 replies; only message in thread
From: Richard Reich @ 2002-02-20 16:13 UTC (permalink / raw
  To: gentoo-dev

I'm working on a project that needs gcc 3.0.3, basicaly some areas of
the stl that are more mature...  Anyway I was wondering what is needed
to modify an ebuild file to install to a different directory or is it
even possible?

Thanks for your help
Richard Reich

Here is a "sniped" versin of the ebuild file for gcc 3.0.3
Within are my questions...

<snip>
LOC=/usr <--- do I need to change this to something like
/opt/gcc-3.0.3?  I assume yes

<snip>


src_install() {
        #make install from the build directory
        cd ${WORKDIR}/build
        make install prefix=${D}${LOC} mandir=${D}${LOC}/share/man
infodir=${D}${LOC}/share/info || die
        [ -e ${D}/usr/bin/gcc ] || die "gcc not found in ${D}"
        FULLPATH=${D}${LOC}/lib/gcc-lib/${CHOST}/${PV}
        cd ${FULLPATH}
        dodir /lib
        dosym /usr/bin/cpp /lib/cpp <--- I'm not exactaly sure what to
do with these do*** "things", do I leave them alone?
        dosym gcc /usr/bin/cc
        dodir /etc/env.d
        echo "LDPATH=${LOC}/lib/gcc-lib/${CHOST}/${PV}" >
${D}/etc/env.d/05gcc <--- do I need to do something with this?
        cd ${S}
    if [ -z "`use build`" ]
    then
                #do a full texinfo-${TV} install




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-02-20 16:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-20 16:13 [gentoo-dev] emerge to unconventional directories Richard Reich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox