summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2017-03-16 08:38:00 +0100
committerTupone Alfredo <tupone@gentoo.org>2017-03-16 09:26:56 +0100
commit894446845c38eb1e23edbdee9b7bf11d7f069c15 (patch)
tree37bfb278bb13dfc787fa7b724b5ebbea00a33cb8 /dev-lang/gnat-gpl
parentnet-misc/youtube-viewer: Update to version 3.2.5 (diff)
downloadgentoo-894446845c38eb1e23edbdee9b7bf11d7f069c15.tar.gz
gentoo-894446845c38eb1e23edbdee9b7bf11d7f069c15.tar.bz2
gentoo-894446845c38eb1e23edbdee9b7bf11d7f069c15.zip
dev-lang/gnat-gpl: Fix case when ADA is specified without the path
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'dev-lang/gnat-gpl')
-rw-r--r--dev-lang/gnat-gpl/gnat-gpl-2016.ebuild10
1 files 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 77ac3e15dcd7..2709a1c0990b 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"