diff options
author | Michael Cummings <mcummings@gentoo.org> | 2002-09-17 01:09:17 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2002-09-17 01:09:17 +0000 |
commit | 4d1fcfa2ecc700f06749f4836954f274e319aa98 (patch) | |
tree | 2f002be49b2cd1326ef39e712ece649b92c5d312 /eclass | |
parent | Removed ambiguity of version checking - made MakeMaker required for all (diff) | |
download | gentoo-2-4d1fcfa2ecc700f06749f4836954f274e319aa98.tar.gz gentoo-2-4d1fcfa2ecc700f06749f4836954f274e319aa98.tar.bz2 gentoo-2-4d1fcfa2ecc700f06749f4836954f274e319aa98.zip |
long day. added jnelson's discovery.
Diffstat (limited to '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() { |