Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Torsten Veller <ml-en@...>
Subject: Re: perl eclass review - EAPI=3 + new helper eclass
Date: Tue, 20 Apr 2010 08:49:49 +0200
* Torsten Veller <ml-en@...>:
> The perl-module.eclass must be updated to support EAPI=3 [1] and
> a new eclass will be added which does contain some (more or less) useful
> stand-alone functions split from the old perl-module.eclass without
> exporting phase functions.

Somehow I was sleeping: It's more useful to set EXPORT_FUNCTIONS
conditionally and have all functions in perl-module.eclass.

I think this justifies the elimination of the perl-helper.eclass.

Sorry for the confusion. Hopefully wide awake now.



New perl-helper.eclass:

| # Copyright 1999-2010 Gentoo Foundation
| # Distributed under the terms of the GNU General Public License v2
| # $Header: $
| 
| # @DEAD
| 
| PERL_EXPORT_PHASE_FUNCTIONS=no
| inherit perl-module


Head of new perl-module.eclass:
http://git.overlays.gentoo.org/gitweb/?p=proj/perl-overlay.git;a=tree;f=eclass;hb=HEAD

| @@ -12,19 +12,19 @@
|  # The perl-module eclass is designed to allow easier installation of perl
|  # modules, and their incorporation into the Gentoo Linux system.
|  
| -inherit perl-helper eutils base
| +inherit eutils base
|  [[ ${CATEGORY} == "perl-core" ]] && inherit alternatives
|  
|  PERL_EXPF="src_unpack src_compile src_test src_install"
|  
|  case "${EAPI:-0}" in
|         0|1)
| -               PERL_EXPF="${PERL_EXPF} pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm"
| +               PERL_EXPF+=" pkg_setup pkg_preinst pkg_postinst pkg_prerm pkg_postrm"
|                 ;;
|         2|3)
| -               PERL_EXPF="${PERL_EXPF} src_prepare src_configure"
| +               PERL_EXPF+=" src_prepare src_configure"
|                 [[ ${CATEGORY} == "perl-core" ]] && \
| -                       PERL_EXPF="${PERL_EXPF} pkg_postinst pkg_postrm"
| +                       PERL_EXPF+=" pkg_postinst pkg_postrm"
|  
|                 case "${GENTOO_DEPEND_ON_PERL:-yes}" in
|                         yes)
| @@ -38,7 +38,17 @@ case "${EAPI:-0}" in
|                 ;;
|  esac
|  
| -EXPORT_FUNCTIONS ${PERL_EXPF}
| +case "${PERL_EXPORT_PHASE_FUNCTIONS:-yes}" in
| +       yes)
| +               EXPORT_FUNCTIONS ${PERL_EXPF}
| +               ;;
| +       no)
| +               debug-print "PERL_EXPORT_PHASE_FUNCTIONS=no"
| +               ;;
| +       *)
| +               DEPEND+=" PERL_EXPORT_PHASE_FUNCTIONS-UNSUPPORTED"
| +               ;;
| +esac
|  
|  DESCRIPTION="Based on the $ECLASS eclass"
...


References:
perl eclass review - EAPI=3 + new helper eclass
-- Torsten Veller
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: Re: perl eclass review - EAPI=3 + new helper eclass
Next by thread:
RFC: Google Apps Standard Edition @ gentoo.org
Previous by date:
Re: perl eclass review - EAPI=3 + new helper eclass
Next by date:
Gentoo stats server/client @ 2010-04-21


Updated Jun 29, 2012

Summary: Archive of the gentoo-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.