Magellan Linux

Diff of /trunk/extras/cargo/cargo-0.18.0-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 30459 by niro, Wed Jun 21 13:01:01 2017 UTC revision 30460 by niro, Wed Jan 24 09:23:17 2018 UTC
# Line 21  SDEPEND=">= dev-util/cmake-3.6 Line 21  SDEPEND=">= dev-util/cmake-3.6
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"
# Line 71  src_compile() Line 72  src_compile()
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
# Line 90  src_compile() Line 93  src_compile()
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

Legend:
Removed from v.30459  
changed lines
  Added in v.30460