summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cummings <mcummings@gentoo.org>2002-09-09 21:51:14 +0000
committerMichael Cummings <mcummings@gentoo.org>2002-09-09 21:51:14 +0000
commit92fbd0e2f9d1638793fca309a4ee8c768856cbb3 (patch)
tree6f72601cc1945f985fc5ee440dfb5603fda8b20c
parentCorrected missing RDEPEND's (diff)
downloadhistorical-92fbd0e2f9d1638793fca309a4ee8c768856cbb3.tar.gz
historical-92fbd0e2f9d1638793fca309a4ee8c768856cbb3.tar.bz2
historical-92fbd0e2f9d1638793fca309a4ee8c768856cbb3.zip
Updated perl-module eclass no supports the newer version of perl's
MakemMaker, which should make perl Makefile syntax consistant finally.
-rw-r--r--eclass/perl-module.eclass33
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