Magellan Linux

Diff of /trunk/extras/ruby/ruby-2.5.1-r1.smage2

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

revision 30855 by niro, Thu Apr 26 09:48:14 2018 UTC revision 30856 by niro, Thu Apr 26 11:43:37 2018 UTC
# Line 35  SRC_URI=( Line 35  SRC_URI=(
35    
36  UP2DATE="updatecmd ${HOMEPAGE}/en/downloads/ | highesttarball gz"  UP2DATE="updatecmd ${HOMEPAGE}/en/downloads/ | highesttarball gz"
37    
 #INTERNAL_RUBY_VERSION="${PVER%_*}"  
 # 1.9.2 still uses 1.9.1!  
 #INTERNAL_RUBY_VERSION="1.9.1"  
   
 src_prepare()  
 {  
  munpack ${SRCFILE} || die  
  cd ${SRCDIR}  
   
  # fix hardcoded lib pathes  
  sed -i "s:\(RUBY_LIB_PREFIX=\"\${prefix}/\)lib:\1$(mlibdir):" configure.in || die  
  mautoreconf || die  
 }  
   
38  src_compile()  src_compile()
39  {  {
40   cd ${SRCDIR}   cd ${SRCDIR}
# Line 63  src_compile() Line 49  src_compile()
49    
50   mmake || die   mmake || die
51  }  }
   
 src_install()  
 {  
  cd ${SRCDIR}  
  mmake DESTDIR=${BINDIR} install || die  
   
 # # compat symlinks (amrok-1.4 needs them)  
 # mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/ruby.h /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ || die  
 # mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/ruby /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ || die  
 # mlink /usr/include/ruby-${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ruby/config.h /usr/$(mlibdir)/ruby/${INTERNAL_RUBY_VERSION}/${ARCH}-linux/ruby/ || die  
   
  minstalldocs ChangeLog COPYING GPL LEGAL LGPL NEWS README README.EXT ToDo || die  
 }  

Legend:
Removed from v.30855  
changed lines
  Added in v.30856