/[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.75
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.75 2005/07/07 01:22:30 mcummings 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"
61RDEPEND="${DEPEND}"
57SRC_PREP="no" 62SRC_PREP="no"
58SRC_TEST="skip" 63SRC_TEST="skip"
59 64
60PERL_VERSION="" 65PERL_VERSION=""
61SITE_ARCH="" 66SITE_ARCH=""
96 101
97 perlinfo 102 perlinfo
98 [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep 103 [ "${SRC_PREP}" != "yes" ] && perl-module_src_prep
99 if [ -z ${BUILDER_VER} ]; then 104 if [ -z ${BUILDER_VER} ]; then
100 make ${mymake} || die "compilation failed" 105 make ${mymake} || die "compilation failed"
106 else
107 perl ${S}/Build build
101 fi 108 fi
102 109
110}
111
112perl-module_src_test() {
103 if [ "${SRC_TEST}" == "do" ]; then 113 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 114 perlinfo
111 if [ -z ${BUILDER_VER} ]; then 115 if [ -z ${BUILDER_VER} ]; then
112 make test 116 make test || die "test failed"
113 else 117 else
114 perl ${S}/Build test 118 perl ${S}/Build test || die "test failed"
119 fi
115 fi 120 fi
116} 121}
117 122
118perl-module_src_install() { 123perl-module_src_install() {
119 124
137 done 142 done
138 143
139 for doc in Change* MANIFEST* README*; do 144 for doc in Change* MANIFEST* README*; do
140 [ -s "$doc" ] && dodoc $doc 145 [ -s "$doc" ] && dodoc $doc
141 done 146 done
147 if [ -s "${mydoc}" ]; then
142 dodoc ${mydoc} 148 dodoc ${mydoc}
149 fi
143} 150}
144 151
145 152
146perl-module_pkg_setup() { 153perl-module_pkg_setup() {
147 154

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

  ViewVC Help
Powered by ViewVC 1.1.20