summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Veller <tove@gentoo.org>2009-03-11 06:36:45 +0000
committerTorsten Veller <tove@gentoo.org>2009-03-11 06:36:45 +0000
commit4af66a8dc1178475c435394fbf8505bb99b91702 (patch)
treeaa31d40bb83c0019a1a12bd5d4d471c8e85e53ca /eclass/perl-module.eclass
parentInitial import. (diff)
downloadgentoo-2-4af66a8dc1178475c435394fbf8505bb99b91702.tar.gz
gentoo-2-4af66a8dc1178475c435394fbf8505bb99b91702.tar.bz2
gentoo-2-4af66a8dc1178475c435394fbf8505bb99b91702.zip
Set mytargets depending on CATEGORY (#262037)
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r--eclass/perl-module.eclass9
1 files changed, 7 insertions, 2 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass
index 61e81518820e..ec1020f743be 100644
--- a/eclass/perl-module.eclass
+++ b/eclass/perl-module.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.113 2009/03/06 11:42:41 tove Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.114 2009/03/11 06:36:45 tove Exp $
#
# Author: Seemant Kulleen <seemant@gentoo.org>
@@ -140,7 +140,12 @@ perl-module_src_install() {
local f
${perlinfo_done} || perlinfo
- [[ -z ${mytargets} ]] && mytargets="pure_install"
+ if [[ -z ${mytargets} ]] ; then
+ case "${CATEGORY}" in
+ dev-perl|perl-core) mytargets="pure_install" ;;
+ *) mytargets="install" ;;
+ esac
+ fi
if [[ -f Build ]] ; then
./Build ${mytargets} \