21 |
|
|
22 |
if [[ ${BOOTSTRAP} = 0 ]] |
if [[ ${BOOTSTRAP} = 0 ]] |
23 |
then |
then |
24 |
SDEPEND=">= dev-util/cargo-0.18" |
SDEPEND="${SDEPEND} |
25 |
|
>= dev-util/cargo-0.18" |
26 |
fi |
fi |
27 |
|
|
28 |
SRCFILE="${PVER}.tar.gz" |
SRCFILE="${PVER}.tar.gz" |
72 |
local myconf |
local myconf |
73 |
|
|
74 |
# enforce rust-bin chost |
# enforce rust-bin chost |
75 |
myconf+=" --host=${ARCH}-unknown-linux-gnu --build=${ARCH}-unknown-linux-gnu" |
local myARCH |
76 |
|
[[ ${ARCH} = i*86 ]] && myARCH=i686 |
77 |
|
myconf+=" --host=${myARCH}-unknown-linux-gnu --build=${myARCH}-unknown-linux-gnu" |
78 |
|
|
79 |
if [[ ${BOOTSTRAP} = 1 ]] |
if [[ ${BOOTSTRAP} = 1 ]] |
80 |
then |
then |
93 |
src_install() |
src_install() |
94 |
{ |
{ |
95 |
cd ${SRCDIR} |
cd ${SRCDIR} |
96 |
make prepare-image-${ARCH}-unknown-linux-gnu IMGDIR_${ARCH}-unknown-linux-gnu=${BINDIR}/usr || die |
|
97 |
|
local myARCH |
98 |
|
[[ ${ARCH} = i*86 ]] && myARCH=i686 |
99 |
|
make prepare-image-${myARCH}-unknown-linux-gnu IMGDIR_${myARCH}-unknown-linux-gnu=${BINDIR}/usr || die |
100 |
|
|
101 |
# remove unnecessary files |
# remove unnecessary files |
102 |
mdelete -r /usr/etc || die |
mdelete -r /usr/etc || die |