Gentoo Archives: gentoo-perl

From: Michael Cummings <mcummings@g.o>
To: gentoo-perl@l.g.o
Subject: Re: [gentoo-perl] Proposed perl-module.eclass additions
Date: Fri, 01 Sep 2006 16:07:48
Message-Id: 44F85ABA.3090900@gentoo.org
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Cummings wrote:
> Christian Hartmann wrote: >>> Sure.. why not. - Wouldn't that be something for eutils btw? >>> > Oh great swami, you are right. Here's what I'd like to push into the > tree today (yeah, already written, but thought I'd swing it through here > real fast): >
Not sure what happened to my last version of this, but it was broken anyway so here's a better working one: $ diff -Naup ~/perl-module.eclass perl-module.eclass - --- /home/mcummings/perl-module.eclass 2006-09-01 11:07:54.000000000 -0400 +++ perl-module.eclass 2006-09-01 11:09:22.000000000 -0400 @@ -8,8 +8,9 @@ # The perl-module eclass is designed to allow easier installation of perl # modules, and their incorporation into the Gentoo Linux system. +inherit base - -EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm src_compile src_install src_test +EXPORT_FUNCTIONS pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm src_compile src_install src_test src_unpack # 2005.04.28 mcummings # Mounting problems with src_test functions has forced me to make the @@ -95,6 +96,15 @@ POD_DIR="" BUILDER_VER="" pm_echovar="" +perl-module_src_unpack() { + if [[ -n ${PATCHES} ]]; then + base_src_unpack unpack + base_src_unpack autopatch + else + base_src_unpack unpack + fi +} + perl-module_src_prep() { perlinfo - -- - -----o()o---------------------------------------------- Michael Cummings | #gentoo-dev, #gentoo-perl Gentoo Perl Dev | on irc.freenode.net Gentoo/SPARC Gentoo/AMD64 GPG: 0543 6FA3 5F82 3A76 3BF7 8323 AB5C ED4E 9E7F 4E2E - -----o()o---------------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.4 (GNU/Linux) iD8DBQFE+Fq6q1ztTp5/Ti4RAhgMAJ4pZvZPymZ/DT+vxQsLroWsE/sV/ACfceyH H3TAos9AdEC7ZgXjKaF2cpo= =0pdA -----END PGP SIGNATURE----- -- gentoo-perl@g.o mailing list