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 1981 by niro, Thu Jun 11 12:29:59 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_AUTHOR_UPPER=$(echo ${CPAN_AUTHOR} | tr [a-z] [A-Z])  CPAN_AUTHOR_UPPER=$(echo ${CPAN_AUTHOR} | tr '[a-z]' '[A-Z]')
12  CPAN_AUTHOR_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}-${PVER}.tar.gz"}  : ${SRCFILE="${CPAN_MODULE}-${PVER}.tar.gz"}
21  : ${SRCDIR="${BUILDDIR}/${PNAME}-${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 38  cpan_src_compile() Line 40  cpan_src_compile()
40   perl_src_compile ${configure_opts} || die   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()  cpan_src_install()
55  {  {
56   perl_src_install || die   perl_src_install || die
57  }  }
58    
59  export_inherits cpan src_prepare src_compile src_install  cpan_multilib_src_install()
60    {
61     perl_multilib_src_install || die
62    }
63    
64    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.1981  
changed lines
  Added in v.19347