diff options
author | Michael Cummings <mcummings@gentoo.org> | 2002-08-07 01:49:17 +0000 |
---|---|---|
committer | Michael Cummings <mcummings@gentoo.org> | 2002-08-07 01:49:17 +0000 |
commit | 36f7de36fb278bf67d9c7555a5711b2de579ca4e (patch) | |
tree | 7e5eb5918223678fbfea5ee5fb41f14daf3f4713 /eclass/perl-module.eclass | |
parent | Fixed old povray ebuild to coexist with new (diff) | |
download | gentoo-2-36f7de36fb278bf67d9c7555a5711b2de579ca4e.tar.gz gentoo-2-36f7de36fb278bf67d9c7555a5711b2de579ca4e.tar.bz2 gentoo-2-36f7de36fb278bf67d9c7555a5711b2de579ca4e.zip |
Emergency fix - the target dir gets lost in 5.6.1 (installs, just not to
the right path). New eclass checks version before adding PREFIX
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r-- | eclass/perl-module.eclass | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index ebef70394434..c46a9b5af7f7 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.17 2002/08/05 20:53:56 mcummings Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.18 2002/08/07 01:49:17 mcummings Exp $ # The perl-module eclass is designed to allow easier installation of perl # modules, and their incorporation into the Gentoo Linux system. @@ -20,8 +20,14 @@ SRC_PREP="no" perl-module_src_prep() { SRC_PREP="yes" - perl Makefile.PL ${myconf} \ - PREFIX=${D}/usr + eval `perl '-V:version'` + if [ ${version} == '5.6.1' ]; + then + perl Makefile.PL ${myconf} + else + perl Makefile.PL ${myconf} \ + PREFIX=${D}/usr + fi } perl-module_src_compile() { |