diff options
author | Tupone Alfredo <tupone@gentoo.org> | 2017-03-16 08:38:00 +0100 |
---|---|---|
committer | Tupone Alfredo <tupone@gentoo.org> | 2017-03-16 09:26:56 +0100 |
commit | 894446845c38eb1e23edbdee9b7bf11d7f069c15 (patch) | |
tree | 37bfb278bb13dfc787fa7b724b5ebbea00a33cb8 /dev-lang/gnat-gpl | |
parent | net-misc/youtube-viewer: Update to version 3.2.5 (diff) | |
download | gentoo-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.ebuild | 10 |
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" |