Magellan Linux

Diff of /trunk/include/perl.sminc

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

revision 11554 by niro, Mon Mar 12 21:19:43 2012 UTC revision 26379 by niro, Fri Jun 26 09:13:40 2015 UTC
# Line 3  Line 3 
3  # inherits {pre,post}install() and {pre,post}remove() to mage file  # inherits {pre,post}install() and {pre,post}remove() to mage file
4  INHERITS="${INHERITS} perl"  INHERITS="${INHERITS} perl"
5    
6    SDEPEND="${SDEPEND}
7     >= dev-lang/perl-5.22.0"
8    
9  # taken from gentoo eclass perm-module.eclass  # taken from gentoo eclass perm-module.eclass
10  perlinfo()  perlinfo()
11  {  {
# Line 139  perl_multilib_src_compile() Line 142  perl_multilib_src_compile()
142   for abi in ${MULTILIB_ABIS}   for abi in ${MULTILIB_ABIS}
143   do   do
144   cd ${SRCDIR}-${abi}/${SRCSUBDIR}   cd ${SRCDIR}-${abi}/${SRCSUBDIR}
145   perl_run_src_compile $@ || die   abi-${abi} perl_run_src_compile $@ || die
146   done   done
147  }  }
148    
# Line 179  perl_run_src_install() Line 182  perl_run_src_install()
182   sed -i "s:${BINDIR}:/:g" ${i} || die   sed -i "s:${BINDIR}:/:g" ${i} || die
183   fi   fi
184   done   done
185    }
186    
187    perl_src_install()
188    {
189     cd ${SRCDIR}
190     perl_run_src_install || die
191    
192   local i   local i
193   for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \   for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \
# Line 191  perl_run_src_install() Line 200  perl_run_src_install()
200   done   done
201  }  }
202    
203  perl_src_compile()  perl_multilib_src_install()
 {  
  cd ${SRCDIR}  
  perl_run_src_compile $@ || die  
 }  
   
 perl_multilib_src_compile()  
204  {  {
205   local abi   local abi
206   local saved_SRCDIR="${SRCDIR}"   local saved_SRCDIR="${SRCDIR}"
207    
208   for abi in ${MULTILIB_ABIS}   for abi in ${MULTILIB_ABIS}
209   do   do
210   export SRCDIR="${saved_SRCDIR}-${abi}/${SRCSUBDIR}"   SRCDIR="${saved_SRCDIR}-${abi}/${SRCSUBDIR}"
211   cd ${SRCDIR}   cd ${SRCDIR}
212   perl_run_src_compile $@ || die   abi-${abi} perl_run_src_install $@ || die
213    
214     local i
215     for i in ABOUT-NLS AUTHORS BUGS CHANGES ChangeLog COPYING \
216     FAQ LICENSE NEWS README TODO
217     do
218     if [ -f ${SRCDIR}/${i} ]
219     then
220     oldminstalldocs ${i} || die
221     fi
222     done
223   done   done
224   export SRCDIR="${saved_SRCDIR}"   SRCDIR="${saved_SRCDIR}"
225  }  }
226    
227  export_inherits perl src_prepare src_check  export_inherits perl src_prepare src_check

Legend:
Removed from v.11554  
changed lines
  Added in v.26379