Magellan Linux

Diff of /smage/branches/alx07x-unstable/include/cpan.sminc

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

revision 2792 by niro, Mon Aug 29 20:03:18 2011 UTC revision 3582 by niro, Mon Jul 9 17:44:57 2012 UTC
# Line 14  CPAN_AUTHOR_LOWER=$(echo ${CPAN_AUTHOR} Line 14  CPAN_AUTHOR_LOWER=$(echo ${CPAN_AUTHOR}
14  : ${CPAN_MODULE="${PNAME}"}  : ${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="${CPAN_MODULE}-${PVER}.tar.gz"}  : ${SRCFILE="${CPAN_MODULE}-${PVER}.tar.gz"}
21  : ${SRCDIR="${BUILDDIR}/${CPAN_MODULE}-${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 40  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.2792  
changed lines
  Added in v.3582