/[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.108 Revision 1.109
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.108 2007/08/20 08:21:58 ian Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.109 2007/10/17 07:49:15 robbat2 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
11inherit base 11inherit base
12 12
13EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm src_compile src_install src_test src_unpack 13EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm src_compile src_install src_test src_unpack
14 14
15# 2007.08.19 ian
16# Added ${myconf} - bug #176818
17#
18# 2005.04.28 mcummings 15# 2005.04.28 mcummings
19# Mounting problems with src_test functions has forced me to make the 16# Mounting problems with src_test functions has forced me to make the
20# compilation of perl modules honor the FEATURES maketest flag rather than what 17# compilation of perl modules honor the FEATURES maketest flag rather than what
21# is generally necessary. I've left a block to make sure we still need to set 18# is generally necessary. I've left a block to make sure we still need to set
22# the SRC_TEST="do" flag on the suspicion that otherwise we will face 10 times 19# the SRC_TEST="do" flag on the suspicion that otherwise we will face 10 times
81# which causes module-build to build with a target of /usr/usr/ 78# which causes module-build to build with a target of /usr/usr/
82# (how broken is that?). Current logic is if there is a Build.PL and we aren't 79# (how broken is that?). Current logic is if there is a Build.PL and we aren't
83# overriding, use it; otherwise use the Makefile.PL; otherwise return (maybe we 80# overriding, use it; otherwise use the Makefile.PL; otherwise return (maybe we
84# want all the functionality of the perl-module eclass without needing to 81# want all the functionality of the perl-module eclass without needing to
85# compile??). 82# compile??).
83#
84# 2007.08.19 ian
85# Added ${myconf} - bug #176818
86#
87# 2007.10.17 robbat2
88# Added the 'MODULE_AUTHOR' variable. Set it before inheriting the eclass
89# and it will set your HOMEPAGE and SRC_URI correctly for a CPAN package.
86 90
91if [ -z "${HOMEPAGE}" -a -z "${SRC_URI}" -a -n "${MODULE_AUTHOR}" ]; then
92 HOMEPAGE="http://search.cpan.org/~${MODULE_AUTHOR}/"
93 SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${P}.tar.gz"
94fi
87 95
88SRC_PREP="no" 96SRC_PREP="no"
89SRC_TEST="skip" 97SRC_TEST="skip"
90PREFER_BUILDPL="yes" 98PREFER_BUILDPL="yes"
91 99

Legend:
Removed from v.1.108  
changed lines
  Added in v.1.109

  ViewVC Help
Powered by ViewVC 1.1.20