From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-938720-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id A5371139694
	for <garchives@archives.gentoo.org>; Thu, 16 Mar 2017 08:27:36 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id D81B321C043;
	Thu, 16 Mar 2017 08:27:35 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id B590E21C043
	for <gentoo-commits@lists.gentoo.org>; Thu, 16 Mar 2017 08:27:35 +0000 (UTC)
Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id D1BB3340E75
	for <gentoo-commits@lists.gentoo.org>; Thu, 16 Mar 2017 08:27:34 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 997AE69FE
	for <gentoo-commits@lists.gentoo.org>; Thu, 16 Mar 2017 08:27:33 +0000 (UTC)
From: "Alfredo Tupone" <tupone@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" <tupone@gentoo.org>
Message-ID: <1489652816.894446845c38eb1e23edbdee9b7bf11d7f069c15.tupone@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/gnat-gpl/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-lang/gnat-gpl/gnat-gpl-2016.ebuild
X-VCS-Directories: dev-lang/gnat-gpl/
X-VCS-Committer: tupone
X-VCS-Committer-Name: Alfredo Tupone
X-VCS-Revision: 894446845c38eb1e23edbdee9b7bf11d7f069c15
X-VCS-Branch: master
Date: Thu, 16 Mar 2017 08:27:33 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: da58126e-7168-4838-a4a5-018c96487cd1
X-Archives-Hash: d2247607fdfb727a5413ff622b0ec5fe

commit:     894446845c38eb1e23edbdee9b7bf11d7f069c15
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 16 07:38:00 2017 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Thu Mar 16 08:26:56 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89444684

dev-lang/gnat-gpl: Fix case when ADA is specified without the path

Package-Manager: Portage-2.3.3, Repoman-2.3.1

 dev-lang/gnat-gpl/gnat-gpl-2016.ebuild | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild b/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild
index 77ac3e15dcd..2709a1c0990 100644
--- a/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild
+++ b/dev-lang/gnat-gpl/gnat-gpl-2016.ebuild
@@ -57,10 +57,14 @@ GCC_A_FAKEIT="${P}-src.tar.gz
 
 pkg_setup() {
 	GCC=${ADA:-$(tc-getCC)}
-	local path=$(dirname ${GCC})
 	local base=$(basename ${GCC})
-	GNATMAKE="${path}/${base/gcc/gnatmake}"
-	GNATBIND="${path}/${base/gcc/gnatbind}"
+	GNATMAKE="${base/gcc/gnatmake}"
+	GNATBIND="${base/gcc/gnatbind}"
+	if [[ ${base} != ${GCC} ]] ; then
+		local path=$(dirname ${GCC})
+		GNATMAKE="${path}/${GNATMAKE}"
+		GNATBIND="${path}/${GNATBIND}"
+	fi
 	if [[ -z "$(type ${GNATMAKE} 2>/dev/null)" ]] ; then
 		eerror "You need a gcc compiler that provides the Ada Compiler:"
 		eerror "1) use gcc-config to select the right compiler or"