Magellan Linux

Diff of /trunk/include/cpan.sminc

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

revision 11552 by niro, Mon Mar 12 21:16:11 2012 UTC revision 21549 by niro, Tue Jul 1 08:34:47 2014 UTC
# Line 1  Line 1 
1  # $ID$  # $Id$
2  # CPAN functions  # CPAN functions
3    
4  # needs perl  # needs perl
# Line 8  sminclude perl Line 8  sminclude perl
8  #   ${CPAN_AUTHOR}:   needed, author of the CPAN-module  #   ${CPAN_AUTHOR}:   needed, author of the CPAN-module
9  [[ -z ${CPAN_AUTHOR} ]] && die "cpan.sminc: \$CPAN_AUTHOR not given!"  [[ -z ${CPAN_AUTHOR} ]] && die "cpan.sminc: \$CPAN_AUTHOR not given!"
10    
11  CPAN_AUTHOR_UPPER=$(echo ${CPAN_AUTHOR} | tr [a-z] [A-Z])  CPAN_AUTHOR_UPPER="${CPAN_AUTHOR^^}"
12  CPAN_AUTHOR_LOWER=$(echo ${CPAN_AUTHOR} | tr [A-Z] [a-z])  CPAN_AUTHOR_LOWER="${CPAN_AUTHOR,,}"
13    
14  : ${CPAN_MODULE="${PNAME}"}  : ${CPAN_MODULE="${PNAME}"}
15    
# Line 21  CPAN_AUTHOR_LOWER=$(echo ${CPAN_AUTHOR} Line 21  CPAN_AUTHOR_LOWER=$(echo ${CPAN_AUTHOR}
21  : ${SRCDIR="${BUILDDIR}/${CPAN_MODULE}-${PVER}"}  : ${SRCDIR="${BUILDDIR}/${CPAN_MODULE}-${PVER}"}
22    
23  DEPEND="${DEPEND}  DEPEND="${DEPEND}
24   >= dev-lang/perl-5.14"   >= dev-lang/perl-5.20"
25    
26  SRC_URI=(  SRC_URI=(
27   ${SRC_URI[*]}   ${SRC_URI[*]}
# Line 29  SRC_URI=( Line 29  SRC_URI=(
29   mirror://${PNAME}/${SRCFILE}   mirror://${PNAME}/${SRCFILE}
30  )  )
31    
32    UP2DATE="updatecmd_perl ${CPAN_MODULE} gz"
33    
34  cpan_src_prepare()  cpan_src_prepare()
35  {  {
36   perl_src_prepare || die   perl_src_prepare || die
37  }  }
38    
 cpan_multilib_src_prepare()  
 {  
  perl_multilib_src_prepare || die  
 }  
   
39  cpan_src_compile()  cpan_src_compile()
40  {  {
41   local configure_opts="$@"   local configure_opts="$@"
42   perl_src_compile ${configure_opts} || die   perl_src_compile ${configure_opts} || die
43  }  }
44    
45    cpan_src_check()
46    {
47     return 0
48    }
49    
50  cpan_multilib_src_compile()  cpan_multilib_src_compile()
51  {  {
52   local configure_opts="$@"   local configure_opts="$@"
# Line 61  cpan_multilib_src_install() Line 63  cpan_multilib_src_install()
63   perl_multilib_src_install || die   perl_multilib_src_install || die
64  }  }
65    
66    export_inherits cpan src_prepare src_check
67  if [[ ${MULTILIB_BUILD} = true ]]  if [[ ${MULTILIB_BUILD} = true ]]
68  then  then
69   export_inherits cpan_multilib src_prepare src_compile src_install   export_inherits cpan_multilib src_compile src_install
70  else  else
71   export_inherits cpan src_prepare src_compile src_install   export_inherits cpan src_compile src_install
72  fi  fi

Legend:
Removed from v.11552  
changed lines
  Added in v.21549