Magellan Linux

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

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

trunk/core/include/cpan.sminc revision 1971 by niro, Thu Jun 11 12:07:53 2009 UTC trunk/include/cpan.sminc revision 19347 by niro, Thu Sep 5 08:26:53 2013 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.18.1"
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_src_compile()  cpan_src_compile()
38  {  {
39   perl_src_compile   local configure_opts="$@"
40     perl_src_compile ${configure_opts} || die
41    }
42    
43    cpan_src_check()
44    {
45     return 0
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  export_inherits cpan src_prepare src_check
65    if [[ ${MULTILIB_BUILD} = true ]]
66    then
67     export_inherits cpan_multilib src_compile src_install
68    else
69     export_inherits cpan src_compile src_install
70    fi

Legend:
Removed from v.1971  
changed lines
  Added in v.19347