From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1N4gBe-00076z-5z for garchives@archives.gentoo.org; Sun, 01 Nov 2009 19:34:02 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2FC8EE09A1; Sun, 1 Nov 2009 19:34:01 +0000 (UTC) Received: from mail-in-12.arcor-online.net (mail-in-12.arcor-online.net [151.189.21.52]) by pigeon.gentoo.org (Postfix) with ESMTP id EE480E09A1 for ; Sun, 1 Nov 2009 19:34:00 +0000 (UTC) Received: from mail-in-20-z2.arcor-online.net (mail-in-20-z2.arcor-online.net [151.189.8.85]) by mx.arcor.de (Postfix) with ESMTP id CF82B1B39DD; Sun, 1 Nov 2009 20:33:59 +0100 (CET) Received: from mail-in-03.arcor-online.net (mail-in-03.arcor-online.net [151.189.21.43]) by mail-in-20-z2.arcor-online.net (Postfix) with ESMTP id BDF6F107D44; Sun, 1 Nov 2009 20:33:59 +0100 (CET) Received: from [10.0.0.1] (athedsl-378076.home.otenet.gr [79.131.28.218]) (Authenticated sender: realnc@arcor.de) by mail-in-03.arcor-online.net (Postfix) with ESMTPSA id 6D5752C2DD4; Sun, 1 Nov 2009 20:33:59 +0100 (CET) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-03.arcor-online.net 6D5752C2DD4 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1257104039; bh=nkXRXXF+Wjr69ryo/5j5wH7EOYyItP1CE226pbW/53o=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=IY5HL3E9KUdW7ykIBPt1q6Z6SE9NoiuL3EbnM7PghBYsYbWr1u2py/y3Z5BUKBfM+ OQU//11SzOI1YsluIzhnpYnZDnLuC5pFhowLDQhsDrXeThd4ec/teVHujEoxDo/N6o R55T2oEqqSDWOfKxS4nvogXqPjt13JgyBq8NQ4TU= Message-ID: <4AEDE2AC.4090809@arcor.de> Date: Sun, 01 Nov 2009 21:34:04 +0200 From: Nikos Chantziaras Organization: Lucas Barks User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091019 Thunderbird/3.0b4 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Development-related help X-BeenThere: gentoo-devhelp@gentoo.org X-BeenThere: gentoo-devhelp@lists.gentoo.org MIME-Version: 1.0 To: Mike Frysinger CC: gentoo-devhelp@lists.gentoo.org Subject: [gentoo-devhelp] Re: Calling the default implementation of a function References: <200910311737.31849.vapier@gentoo.org> In-Reply-To: <200910311737.31849.vapier@gentoo.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: aadf16ba-1775-4e95-96ef-07077901e7f7 X-Archives-Hash: 25af56d8a8bb6a44c6b3765ae1d79f1f On 10/31/2009 11:37 PM, Mike Frysinger wrote: > On Saturday 31 October 2009 11:47:54 Nikos Chantziaras wrote: >> Is there a way to call the default implementation of a function inside >> the ebuild-specified one? >> >> What I mean is: >> >> src_prepare() { >> if [ "$PV" == "9999" ]; then >> ./autogen.sh >> else >> src_prepare() # Default from eclass. >> fi >> } >> >> Possible? > > better to wrap the func definition: > if [[ ${PV} == "9999" ]] ; then > src_prepare() { eautoreconf; } > fi /usr/local/portage/app-misc/mc/mc-9999.ebuild: line 49: syntax error near unexpected token `fi' /usr/local/portage/app-misc/mc/mc-9999.ebuild: line 49: `fi' * ERROR: app-misc/mc-9999 failed: * error sourcing ebuild