1 |
I'm working on a project that needs gcc 3.0.3, basicaly some areas of |
2 |
the stl that are more mature... Anyway I was wondering what is needed |
3 |
to modify an ebuild file to install to a different directory or is it |
4 |
even possible? |
5 |
|
6 |
Thanks for your help |
7 |
Richard Reich |
8 |
|
9 |
Here is a "sniped" versin of the ebuild file for gcc 3.0.3 |
10 |
Within are my questions... |
11 |
|
12 |
<snip> |
13 |
LOC=/usr <--- do I need to change this to something like |
14 |
/opt/gcc-3.0.3? I assume yes |
15 |
|
16 |
<snip> |
17 |
|
18 |
|
19 |
src_install() { |
20 |
#make install from the build directory |
21 |
cd ${WORKDIR}/build |
22 |
make install prefix=${D}${LOC} mandir=${D}${LOC}/share/man |
23 |
infodir=${D}${LOC}/share/info || die |
24 |
[ -e ${D}/usr/bin/gcc ] || die "gcc not found in ${D}" |
25 |
FULLPATH=${D}${LOC}/lib/gcc-lib/${CHOST}/${PV} |
26 |
cd ${FULLPATH} |
27 |
dodir /lib |
28 |
dosym /usr/bin/cpp /lib/cpp <--- I'm not exactaly sure what to |
29 |
do with these do*** "things", do I leave them alone? |
30 |
dosym gcc /usr/bin/cc |
31 |
dodir /etc/env.d |
32 |
echo "LDPATH=${LOC}/lib/gcc-lib/${CHOST}/${PV}" > |
33 |
${D}/etc/env.d/05gcc <--- do I need to do something with this? |
34 |
cd ${S} |
35 |
if [ -z "`use build`" ] |
36 |
then |
37 |
#do a full texinfo-${TV} install |