diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2002-05-23 21:02:29 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2002-05-23 21:02:29 +0000 |
commit | 85a5307f80c1a37c4ee54f84961985f8404709e7 (patch) | |
tree | bc86cd4c2d7a73b5972f4b4aa73d437516aa267a /eclass/perl-module.eclass | |
parent | Moved guile mask down to gnome2 mask-land (diff) | |
download | gentoo-2-85a5307f80c1a37c4ee54f84961985f8404709e7.tar.gz gentoo-2-85a5307f80c1a37c4ee54f84961985f8404709e7.tar.bz2 gentoo-2-85a5307f80c1a37c4ee54f84961985f8404709e7.zip |
break up compile function, as we might need to patch the Makefile (CORBA-ORBit)
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r-- | eclass/perl-module.eclass | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index 055da063b1e2..d315a70f2eae 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.10 2002/05/22 19:34:02 danarmak Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.11 2002/05/23 21:02:29 azarah 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,17 @@ EXPORT_FUNCTIONS src_compile src_install src_test newdepend ">=sys-devel/perl-5" -base_src_compile() { +SRC_PREP="no" + +base_src_prep() { + SRC_PREP="yes" perl Makefile.PL ${myconf} +} + +base_src_compile() { + + [ "${SRC_PREP}" != "yes" ] && base_src_prep make ${mymake} || die "compilation failed" } |