/[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.74
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.74 2005/07/06 20:23:20 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
9# modules, and their incorporation into the Gentoo Linux system. 9# modules, and their incorporation into the Gentoo Linux system.
10 10
11ECLASS=perl-module
12INHERITED="${INHERITED} ${ECLASS}"
13 11
14EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm \ 12EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm \
15 src_compile src_install src_test \ 13 src_compile src_install src_test
16 perlinfo updatepod 14
15# 2005.04.28 mcummings
16# Mounting problems with src_test functions has forced me to make the
17# compilation of perl modules honor the FEATURES maketest flag rather than what
18# is generally necessary. I've left a block to make sure we still need to set
19# the SRC_TEST="do" flag on the suspicion that otherwise we will face 10 times
20# as many bug reports as we have lately.
17 21
18# 2004.05.10 rac 22# 2004.05.10 rac
19# block on makemaker versions earlier than that in the 5.8.2 core. in 23# 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 24# actuality, this should be handled in the perl ebuild, so every perl
21# ebuild should block versions of MakeMaker older than the one it 25# 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 55# the style directive any more (especially since it isn't in the eclass
52# anymore). Enjoy! 56# anymore). Enjoy!
53 57
54 58
55 59
56DEPEND=">=dev-lang/perl-5.8.2 !<dev-perl/ExtUtils-MakeMaker-6.17" 60DEPEND=">=dev-lang/perl-5.8.2 !<perl-core/ExtUtils-MakeMaker-6.17"
57SRC_PREP="no" 61SRC_PREP="no"
58SRC_TEST="skip" 62SRC_TEST="skip"
59 63
60PERL_VERSION="" 64PERL_VERSION=""
61SITE_ARCH="" 65SITE_ARCH=""
96 100
97 perlinfo 101 perlinfo
98 [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep 102 [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep
99 if [ -z ${BUILDER_VER} ]; then 103 if [ -z ${BUILDER_VER} ]; then
100 make ${mymake} || die "compilation failed" 104 make ${mymake} || die "compilation failed"
105 else
106 perl ${S}/Build build
101 fi 107 fi
102 108
109}
110
111perl-module_src_test() {
103 if [ "${SRC_TEST}" == "do" ]; then 112 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 113 perlinfo
111 if [ -z ${BUILDER_VER} ]; then 114 if [ -z ${BUILDER_VER} ]; then
112 make test 115 make test || die "test failed"
113 else 116 else
114 perl ${S}/Build test 117 perl ${S}/Build test || die "test failed"
118 fi
115 fi 119 fi
116} 120}
117 121
118perl-module_src_install() { 122perl-module_src_install() {
119 123
137 done 141 done
138 142
139 for doc in Change* MANIFEST* README*; do 143 for doc in Change* MANIFEST* README*; do
140 [ -s "$doc" ] && dodoc $doc 144 [ -s "$doc" ] && dodoc $doc
141 done 145 done
146 if [ -s "${mydoc}" ]; then
142 dodoc ${mydoc} 147 dodoc ${mydoc}
148 fi
143} 149}
144 150
145 151
146perl-module_pkg_setup() { 152perl-module_pkg_setup() {
147 153

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

  ViewVC Help
Powered by ViewVC 1.1.20