From dbd364d94ea42140c7e10d3ce827995d025db16c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andreas=20H=C3=BCttel?= Date: Sat, 13 Dec 2014 20:51:23 +0000 Subject: [PATCH] Move content of perl-module_src_prep into src_configure, add deprecation warning to src_prep --- eclass/ChangeLog | 6 +++++- eclass/perl-module.eclass | 32 ++++++++++++++++---------------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/eclass/ChangeLog b/eclass/ChangeLog index 1f32ebb91933..838561a83021 100644 --- a/eclass/ChangeLog +++ b/eclass/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for eclass directory # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1461 2014/12/13 08:42:42 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ChangeLog,v 1.1462 2014/12/13 20:51:23 dilfridge Exp $ + + 13 Dec 2014; Andreas K. Huettel perl-module.eclass: + Move content of perl-module_src_prep into src_configure, add deprecation + warning to src_prep 13 Dec 2014; Michał Górny multibuild.eclass: Disable parallel run support. diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index 12024ca60198..5070a67ceeeb 100644 --- a/eclass/perl-module.eclass +++ b/eclass/perl-module.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.158 2014/12/01 20:41:08 dilfridge Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/perl-module.eclass,v 1.159 2014/12/13 20:51:23 dilfridge Exp $ # @ECLASS: perl-module.eclass # @MAINTAINER: @@ -134,22 +134,7 @@ perl-module_src_prepare() { # This function is to be called during the ebuild src_configure() phase. perl-module_src_configure() { debug-print-function $FUNCNAME "$@" - perl-module_src_prep -} -# @FUNCTION: perl-module_src_prep -# @USAGE: perl-module_src_prep -# @DESCRIPTION: -# Configure the ebuild sources (bis). -# -# This function is still around for historical reasons -# and will be soon deprecated. -# -# Please use the function above instead, perl-module_src_configure(). -# -# TODO: Move code to perl-module_src_configure(). -perl-module_src_prep() { - debug-print-function $FUNCNAME "$@" [[ ${SRC_PREP} = yes ]] && return 0 SRC_PREP="yes" @@ -202,6 +187,21 @@ perl-module_src_prep() { fi } +# @FUNCTION: perl-module_src_prep +# @USAGE: perl-module_src_prep +# @DESCRIPTION: +# Configure the ebuild sources (bis). +# +# This function is still around for historical reasons +# and will be soon deprecated. +# +# Please use the function above instead, perl-module_src_configure(). +perl-module_src_prep() { + debug-print-function $FUNCNAME "$@" + eqawarn "perl-modules.eclass: perl-module_src_prep is deprecated and will be removed. Please use perl-module_src_configure instead." + perl-module_src_configure +} + # @FUNCTION: perl-module_src_compile # @USAGE: perl-module_src_compile # @DESCRIPTION: -- 2.26.2