diff options
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r-- | eclass/perl-module.eclass | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index b04258f1c241..e6efd5fe9587 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.24 2002/09/17 00:54:55 mcummings Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.25 2002/09/17 01:09:17 mcummings Exp $ # The perl-module eclass is designed to allow easier installation of perl # modules, and their incorporation into the Gentoo Linux system. @@ -13,9 +13,15 @@ INHERITED="$INHERITED $ECLASS" EXPORT_FUNCTIONS src_compile src_install src_test -DEPEND="${DEPEND} >=sys-devel/perl-5 - =dev-perl/ExtUtils-MakeMaker-6.03-r1" - +eval `perl '-V:version'` +echo "Version is: ${version}" +if [ ${version} == '5.6.1' ]; + then + DEPEND="${DEPEND} >=sys-devel/perl-5 \ + =dev-perl/ExtUtils-MakeMaker-6.03-r1" + else + DEPEND="${DEPEND} >=sys-devel/perl-5" +fi SRC_PREP="no" perl-module_src_prep() { |