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 29513 by niro, Wed Jun 21 12:21:25 2017 UTC revision 29518 by niro, Wed Jun 21 13:01:01 2017 UTC
# Line 27  fi Line 27  fi
27  SRCFILE="${PVER}.tar.gz"  SRCFILE="${PVER}.tar.gz"
28  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"  SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
29    
30    msetfeature "!check" # no check target in makefile
31  sminclude mbuild mtools  sminclude mbuild mtools
32    
33  SRC_URI=(  SRC_URI=(
# Line 41  if [[ ${BOOTSTRAP} = 1 ]] Line 42  if [[ ${BOOTSTRAP} = 1 ]]
42  then  then
43   CARGOBIN_PVER="${PVER}"   CARGOBIN_PVER="${PVER}"
44   CARGOBIN_SRCFILE_x86_64="cargo-${CARGOBIN_PVER}-x86_64-unknown-linux-gnu.tar.gz"   CARGOBIN_SRCFILE_x86_64="cargo-${CARGOBIN_PVER}-x86_64-unknown-linux-gnu.tar.gz"
45     CARGOBIN_SRCDIR_x86_64="${BUILDDIR}/cargo-${CARGOBIN_PVER}-x86_64-unknown-linux-gnu"
46   CARGOBIN_SRCFILE_x86="cargo-${CARGOBIN_PVER}-i686-unknown-linux-gnu.tar.gz"   CARGOBIN_SRCFILE_x86="cargo-${CARGOBIN_PVER}-i686-unknown-linux-gnu.tar.gz"
47     CARGOBIN_SRCDIR_x86="${BUILDDIR}/cargo-${CARGOBIN_PVER}-i686-unknown-linux-gnu"
48   CARGOBIN_SRCFILE="$(marchsrcfile CARGOBIN_SRCFILE)"   CARGOBIN_SRCFILE="$(marchsrcfile CARGOBIN_SRCFILE)"
49     CARGOBIN_SRCDIR="$(marchsrcdir CARGOBIN_SRCDIR)"
50    
51   SRC_URI+=(   SRC_URI+=(
52   https://static.rust-lang.org/dist/${CARGOBIN_SRCFILE_x86_64}   https://static.rust-lang.org/dist/${CARGOBIN_SRCFILE_x86_64}
# Line 50  then Line 54  then
54   )   )
55  fi  fi
56    
57    src_prepare()
58    {
59     munpack ${SRCFILE} || die
60    
61     if [[ ${BOOTSTRAP} = 1 ]]
62     then
63     munpack ${CARGOBIN_SRCFILE} || die
64     fi
65    }
66    
67  src_compile()  src_compile()
68  {  {
69   cd ${SRCDIR}   cd ${SRCDIR}
# Line 66  src_compile() Line 80  src_compile()
80    
81   mconfigure \   mconfigure \
82   --release-channel=stable \   --release-channel=stable \
83   --enable-optimize   --enable-optimize \
84   ${myconf} \   ${myconf} \
85   || die   || die
86    
87   mmake || die   mmake VERBOSE=1 || die
88  }  }
89    
90  src_install()  src_install()

Legend:
Removed from v.29513  
changed lines
  Added in v.29518