diff options
author | Michael Cummings <mcummings@gentoo.org> | 2002-09-09 21:51:14 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2002-09-09 21:51:14 +0000 |
commit | 573dfa12a2fefb5762ef9df326e9d3e204a16728 (patch) | |
tree | a808ea539327d022c926c59ff39699cb9fe67108 /eclass/perl-module.eclass | |
parent | Corrected missing RDEPEND's (diff) | |
download | gentoo-2-573dfa12a2fefb5762ef9df326e9d3e204a16728.tar.gz gentoo-2-573dfa12a2fefb5762ef9df326e9d3e204a16728.tar.bz2 gentoo-2-573dfa12a2fefb5762ef9df326e9d3e204a16728.zip |
Updated perl-module eclass no supports the newer version of perl's
MakemMaker, which should make perl Makefile syntax consistant finally.
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r-- | eclass/perl-module.eclass | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index 1d0fc1d30edb..500099102ac8 100644 --- a/eclass/perl-module.eclass +++ b/eclass/perl-module.eclass @@ -1,7 +1,7 @@ # Copyright 2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 # Author: Seemant Kulleen <seemant@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.20 2002/08/16 12:20:09 mcummings Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.21 2002/09/09 21:51:14 mcummings Exp $ # The perl-module eclass is designed to allow easier installation of perl # modules, and their incorporation into the Gentoo Linux system. @@ -13,7 +13,15 @@ INHERITED="$INHERITED $ECLASS" EXPORT_FUNCTIONS src_compile src_install src_test -DEPEND=">=sys-devel/perl-5" +eval `perl '-V:version'` + if [ ${version} == '5.6.1' ]; + then + DEPEND=">=sys-devel/perl-5 \ + dev-perl/ExtUtils-MakeMaker" + else + DEPEND=">=sys-devel/perl-5" + fi + SRC_PREP="no" @@ -21,13 +29,8 @@ perl-module_src_prep() { SRC_PREP="yes" eval `perl '-V:version'` - if [ ${version} == '5.6.1' ]; - then - perl Makefile.PL ${myconf} - else - perl Makefile.PL ${myconf} \ - PREFIX=${D}/usr - fi + perl Makefile.PL ${myconf} \ + PREFIX=${D}/usr } perl-module_src_compile() { @@ -63,15 +66,19 @@ perl-module_src_install() { if [ -f ${D}${ARCH_LIB}/perllocal.pod ]; then - sed -e "s:${D}::g" ${D}${ARCH_LIB}/perllocal.pod > ${D}/${POD_DIR}/${P}.pod - cp ${D}/${POD_DIR}/${P}.pod ${D}/${POD_DIR}/${P}.pod.arch + touch ${D}/${POD_DIR}/${P}.pod + sed -e "s:${D}::g" ${D}${ARCH_LIB}/perllocal.pod >> ${D}/${POD_DIR}/${P}.pod + touch ${D}/${POD_DIR}/${P}.pod.arch + cat ${D}/${POD_DIR}/${P}.pod >>${D}/${POD_DIR}/${P}.pod.arch rm -f ${D}/${ARCH_LIB}/perllocal.pod fi if [ -f ${D}${SITE_LIB}/perllocal.pod ]; then - sed -e "s:${D}::g" ${D}${SITE_LIB}/perllocal.pod > ${D}/${POD_DIR}/${P}.pod - cp ${D}/${POD_DIR}/${P}.pod ${D}/${POD_DIR}/${P}.pod.site + touch ${D}/${POD_DIR}/${P}.pod + sed -e "s:${D}::g" ${D}${SITE_LIB}/perllocal.pod >> ${D}/${POD_DIR}/${P}.pod + touch ${D}/${POD_DIR}/${P}.pod.site + cat ${D}/${POD_DIR}/${P}.pod >>${D}/${POD_DIR}/${P}.pod.site rm -f ${D}/${SITE_LIB}/perllocal.pod fi |