summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMartin Schlemmer <azarah@gentoo.org>2002-05-23 21:02:29 +0000
committerMartin Schlemmer <azarah@gentoo.org>2002-05-23 21:02:29 +0000
commitcdf6da52515668b4de03fde26eb7adeee534783d (patch)
tree57fd2cdd9dfa848522d067047406da06c975be34 /eclass
parentMoved guile mask down to gnome2 mask-land (diff)
downloadhistorical-cdf6da52515668b4de03fde26eb7adeee534783d.tar.gz
historical-cdf6da52515668b4de03fde26eb7adeee534783d.tar.bz2
historical-cdf6da52515668b4de03fde26eb7adeee534783d.zip
break up compile function, as we might need to patch the Makefile (CORBA-ORBit)
Diffstat (limited to 'eclass')
-rw-r--r--eclass/perl-module.eclass12
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"
}