From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 8CFD5138010 for ; Sun, 26 Aug 2012 22:47:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5532EE0667; Sun, 26 Aug 2012 22:46:41 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C6A02E0654 for ; Sun, 26 Aug 2012 22:45:58 +0000 (UTC) Received: from [192.168.26.5] (ip98-164-193-252.oc.oc.cox.net [98.164.193.252]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: zmedico) by smtp.gentoo.org (Postfix) with ESMTPSA id 1572933C9FB for ; Sun, 26 Aug 2012 22:45:58 +0000 (UTC) Message-ID: <503AA725.8020306@gentoo.org> Date: Sun, 26 Aug 2012 15:45:57 -0700 From: Zac Medico User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:14.0) Gecko/20120802 Thunderbird/14.0 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 To: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] [RFC] new vala.eclass References: <1345910966.9829.9.camel@rook> <1345928676.9829.13.camel@rook> <20537.18304.877062.568911@a1i15.kph.uni-mainz.de> <1345964385.9829.80.camel@rook> In-Reply-To: <1345964385.9829.80.camel@rook> X-Enigmail-Version: 1.5a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Archives-Salt: 72e46e55-86bd-4093-8944-9ba6dcb1389f X-Archives-Hash: d0fcef6088bcd8cb1c9711162aeec09a On 08/25/2012 11:59 PM, Alexandre Rostovtsev wrote: > On Sat, 2012-08-25 at 23:45 +0200, Ulrich Mueller wrote: >>>>>>> On Sat, 25 Aug 2012, Alexandre Rostovtsev wrote: >> >>> export VALAC=$(type -P valac-${VALA_API_VERSION}) >>> export VALA=$(type -P vala-${VALA_API_VERSION}) >>> export VALA_GEN_INTROSPECT=$(type -P vala-gen-introspect-${VALA_API_VERSION}) >>> export VAPIGEN="$(type -P vapigen-${VALA_API_VERSION})" >> >> Is it guaranteed that these commands are present at pkg_setup time? > > I am assuming that the ebuild writer has added the correct vala > dependency to DEPEND. Maybe something like this: Note that pkg_setup is called for binary packages too, which means that DEPEND may not necessarily be installed. In EAPI 4 you can check the MERGE_TYPE variable which can have a value of binary, source, orbuildonly. -- Thanks, Zac