Magellan Linux

Diff of /branches/R11-stable/include/cpan.sminc

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

trunk/core/include/cpan.sminc revision 1972 by niro, Thu Jun 11 12:10:21 2009 UTC trunk/include/cpan.sminc revision 11552 by niro, Mon Mar 12 21:16:11 2012 UTC
# 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_AUTOR_UPPER=$(echo ${CPAN_AUTHOR} | tr [a-z] [A-Z])  CPAN_AUTHOR_UPPER=$(echo ${CPAN_AUTHOR} | tr [a-z] [A-Z])
12  CPAN_AUTOR_LOWER=$(echo ${CPAN_AUTHOR} | tr [A-Z] [a-z])  CPAN_AUTHOR_LOWER=$(echo ${CPAN_AUTHOR} | tr [A-Z] [a-z])
13    
14    : ${CPAN_MODULE="${PNAME}"}
15    
16  # some sane defaults  # some sane defaults
17  : ${PCATEGORIE="dev-perl"}  : ${PCAT="dev-perl"}
18  # always lower letters  # always lower letters
19  : ${HOMEPAGE="http://search.cpan.org/~${CPAN_AUTHOR_LOWER}/"}  : ${HOMEPAGE="http://search.cpan.org/~${CPAN_AUTHOR_LOWER}/"}
20  : ${SRCFILE="${PNAME}.pm-${PVER}.tar.gz"}  : ${SRCFILE="${CPAN_MODULE}-${PVER}.tar.gz"}
21  : ${SRCDIR="${BUILDDIR}/${PNAME}.pm-${PVER}"}  : ${SRCDIR="${BUILDDIR}/${CPAN_MODULE}-${PVER}"}
22    
23  DEPEND="${DEPEND}  DEPEND="${DEPEND}
24   >= dev-lang/perl-5.10"   >= dev-lang/perl-5.14"
25    
26  SRC_URI=(  SRC_URI=(
27   ${SRC_URI[*]}   ${SRC_URI[*]}
# Line 29  SRC_URI=( Line 31  SRC_URI=(
31    
32  cpan_src_prepare()  cpan_src_prepare()
33  {  {
34   perl_src_prepare   perl_src_prepare || die
35    }
36    
37    cpan_multilib_src_prepare()
38    {
39     perl_multilib_src_prepare || die
40  }  }
41    
42  cpan_src_compile()  cpan_src_compile()
43  {  {
44   local configure_opts="$@"   local configure_opts="$@"
45   perl_src_compile ${configure_opts}   perl_src_compile ${configure_opts} || die
46    }
47    
48    cpan_multilib_src_compile()
49    {
50     local configure_opts="$@"
51     perl_multilib_src_compile ${configure_opts} || die
52    }
53    
54    cpan_src_install()
55    {
56     perl_src_install || die
57  }  }
58    
59  src_install()  cpan_multilib_src_install()
60  {  {
61   perl_src_compile   perl_multilib_src_install || die
62  }  }
63    
64  export_inherits cpan src_prepare src_compile src_install  if [[ ${MULTILIB_BUILD} = true ]]
65    then
66     export_inherits cpan_multilib src_prepare src_compile src_install
67    else
68     export_inherits cpan src_prepare src_compile src_install
69    fi

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