diff options
author | 2007-10-17 07:49:15 +0000 | |
---|---|---|
committer | 2007-10-17 07:49:15 +0000 | |
commit | 0b67f4b4b0c10649b22666f1476fdded54f96043 (patch) | |
tree | bf0d91057de549f27df5479e0bc51bb786b32b95 /eclass/perl-module.eclass | |
parent | adapt deps for texlive, bug #195895 (diff) | |
download | historical-0b67f4b4b0c10649b22666f1476fdded54f96043.tar.gz historical-0b67f4b4b0c10649b22666f1476fdded54f96043.tar.bz2 historical-0b67f4b4b0c10649b22666f1476fdded54f96043.zip |
Add the MODULE_AUTHOR variable with documentation, to simplify CPAN ebuilds.
Diffstat (limited to 'eclass/perl-module.eclass')
-rw-r--r-- | eclass/perl-module.eclass | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index 4a22010885c2..c54e964e19cf 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.108 2007/08/20 08:21:58 ian Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.109 2007/10/17 07:49:15 robbat2 Exp $ # # Author: Seemant Kulleen <seemant@gentoo.org> # Maintained by the Perl herd <perl@gentoo.org> @@ -12,9 +12,6 @@ inherit base EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm src_compile src_install src_test src_unpack -# 2007.08.19 ian -# Added ${myconf} - bug #176818 -# # 2005.04.28 mcummings # Mounting problems with src_test functions has forced me to make the # compilation of perl modules honor the FEATURES maketest flag rather than what @@ -83,7 +80,18 @@ EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm src_com # overriding, use it; otherwise use the Makefile.PL; otherwise return (maybe we # want all the functionality of the perl-module eclass without needing to # compile??). - +# +# 2007.08.19 ian +# Added ${myconf} - bug #176818 +# +# 2007.10.17 robbat2 +# Added the 'MODULE_AUTHOR' variable. Set it before inheriting the eclass +# and it will set your HOMEPAGE and SRC_URI correctly for a CPAN package. + +if [ -z "${HOMEPAGE}" -a -z "${SRC_URI}" -a -n "${MODULE_AUTHOR}" ]; then + HOMEPAGE="http://search.cpan.org/~${MODULE_AUTHOR}/" + SRC_URI="mirror://cpan/authors/id/${MODULE_AUTHOR:0:1}/${MODULE_AUTHOR:0:2}/${MODULE_AUTHOR}/${P}.tar.gz" +fi SRC_PREP="no" SRC_TEST="skip" |