/[gentoo-x86]/eclass/perl-module.eclass
Gentoo

Diff of /eclass/perl-module.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.67 Revision 1.72
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.67 2005/03/14 18:28:04 mcummings Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.72 2005/06/27 20:20:38 agriffis Exp $
4# 4#
5# Author: Seemant Kulleen <seemant@gentoo.org> 5# Author: Seemant Kulleen <seemant@gentoo.org>
6# Maintained by the Perl herd <perl@gentoo.org> 6# Maintained by the Perl herd <perl@gentoo.org>
7# 7#
8# The perl-module eclass is designed to allow easier installation of perl 8# The perl-module eclass is designed to allow easier installation of perl
10 10
11ECLASS=perl-module 11ECLASS=perl-module
12INHERITED="${INHERITED} ${ECLASS}" 12INHERITED="${INHERITED} ${ECLASS}"
13 13
14EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm \ 14EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm \
15 src_compile src_install src_test \ 15 src_compile src_install src_test
16 perlinfo updatepod 16
17# 2005.04.28 mcummings
18# Mounting problems with src_test functions has forced me to make the
19# compilation of perl modules honor the FEATURES maketest flag rather than what
20# is generally necessary. I've left a block to make sure we still need to set
21# the SRC_TEST="do" flag on the suspicion that otherwise we will face 10 times
22# as many bug reports as we have lately.
17 23
18# 2004.05.10 rac 24# 2004.05.10 rac
19# block on makemaker versions earlier than that in the 5.8.2 core. in 25# block on makemaker versions earlier than that in the 5.8.2 core. in
20# actuality, this should be handled in the perl ebuild, so every perl 26# actuality, this should be handled in the perl ebuild, so every perl
21# ebuild should block versions of MakeMaker older than the one it 27# ebuild should block versions of MakeMaker older than the one it
51# the style directive any more (especially since it isn't in the eclass 57# the style directive any more (especially since it isn't in the eclass
52# anymore). Enjoy! 58# anymore). Enjoy!
53 59
54 60
55 61
56DEPEND=">=dev-lang/perl-5.8.2 !<dev-perl/ExtUtils-MakeMaker-6.17" 62DEPEND=">=dev-lang/perl-5.8.2 !<perl-core/ExtUtils-MakeMaker-6.17"
57SRC_PREP="no" 63SRC_PREP="no"
58SRC_TEST="skip" 64SRC_TEST="skip"
59 65
60PERL_VERSION="" 66PERL_VERSION=""
61SITE_ARCH="" 67SITE_ARCH=""
96 102
97 perlinfo 103 perlinfo
98 [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep 104 [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep
99 if [ -z ${BUILDER_VER} ]; then 105 if [ -z ${BUILDER_VER} ]; then
100 make ${mymake} || die "compilation failed" 106 make ${mymake} || die "compilation failed"
107 else
108 perl ${S}/Build build
101 fi 109 fi
102 110
111}
112
113perl-module_src_test() {
103 if [ "${SRC_TEST}" == "do" ]; then 114 if [ "${SRC_TEST}" == "do" ]; then
104 perl-module_src_test || die "test failed"
105 SRC_TEST="done"
106 fi
107}
108
109perl-module_src_test() {
110 perlinfo 115 perlinfo
111 if [ -z ${BUILDER_VER} ]; then 116 if [ -z ${BUILDER_VER} ]; then
112 make test 117 make test || die "test failed"
113 else 118 else
114 perl ${S}/Build test 119 perl ${S}/Build test || die "test failed"
120 fi
115 fi 121 fi
116} 122}
117 123
118perl-module_src_install() { 124perl-module_src_install() {
119 125
137 done 143 done
138 144
139 for doc in Change* MANIFEST* README*; do 145 for doc in Change* MANIFEST* README*; do
140 [ -s "$doc" ] && dodoc $doc 146 [ -s "$doc" ] && dodoc $doc
141 done 147 done
148 if [ -s "${mydoc}" ]; then
142 dodoc ${mydoc} 149 dodoc ${mydoc}
150 fi
143} 151}
144 152
145 153
146perl-module_pkg_setup() { 154perl-module_pkg_setup() {
147 155

Legend:
Removed from v.1.67  
changed lines
  Added in v.1.72

  ViewVC Help
Powered by ViewVC 1.1.20