summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2017-06-24 15:46:22 +0200
committerTupone Alfredo <tupone@gentoo.org>2017-06-24 15:46:22 +0200
commitbb321bc789c4454f73f7ed939c87092b1d387cd4 (patch)
treeedeee4521b586d1fe4086180adfde2431defabcd /dev-ada/gprbuild
parentsys-kernel/gentoo-sources: Remove old, vulnerable kernel 4.11.X kernel versions (diff)
downloadgentoo-bb321bc789c4454f73f7ed939c87092b1d387cd4.tar.gz
gentoo-bb321bc789c4454f73f7ed939c87092b1d387cd4.tar.bz2
gentoo-bb321bc789c4454f73f7ed939c87092b1d387cd4.zip
dev-ada/gprbuild: Fix tool description
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Diffstat (limited to 'dev-ada/gprbuild')
-rw-r--r--dev-ada/gprbuild/gprbuild-2017.ebuild5
1 files changed, 2 insertions, 3 deletions
diff --git a/dev-ada/gprbuild/gprbuild-2017.ebuild b/dev-ada/gprbuild/gprbuild-2017.ebuild
index 0f7b634ec966..277fb5c5f3f8 100644
--- a/dev-ada/gprbuild/gprbuild-2017.ebuild
+++ b/dev-ada/gprbuild/gprbuild-2017.ebuild
@@ -30,9 +30,9 @@ REQUIRED_USE="bootstrap? ( !shared !static !static-pic )"
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
pkg_setup() {
+ GCC=${ADA:-$(tc-getCC)}
+ gnatbase=$(basename ${GCC})
if use bootstrap; then
- GCC=${ADA:-$(tc-getCC)}
- gnatbase=$(basename ${GCC})
gnatpath=$(dirname ${GCC})
GNATMAKE="${gnatbase/gcc/gnatmake}"
@@ -50,7 +50,6 @@ pkg_setup() {
}
src_prepare() {
- gnatbase=$(basename ${GCC})
GCC_PV=${gnatbase#*gcc-}
sed -e "s:@VER@:${GCC_PV}:g" "${FILESDIR}"/${P}.xml > gnat-${GCC_PV}.xml
default