dev-lang/gnat-gpl: Fix binary install

Closes: https://bugs.gentoo.org/653532
Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
Tupone Alfredo
2018-04-20 08:24:13 +02:00
parent 117823d663
commit 4dc25e3544
2 changed files with 5 additions and 4 deletions

View File

@@ -88,15 +88,16 @@ pkg_setup() {
GNATBIND="${path}/${GNATBIND}"
CXX="${path}/${CXX}"
fi
}
src_unpack() {
if ! use bootstrap && [[ -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"
eerror "2) set the bootstrap use flag"
die "ada compiler not available"
fi
}
src_unpack() {
GCC_A_FAKEIT="${P}-src.tar.gz
${MYP}.tar.gz
${FSFGCC}.tar.bz2

View File

@@ -70,16 +70,16 @@ pkg_setup() {
if [[ ${gnatpath} != "." ]] ; then
GNATMAKE="${gnatpath}/${GNATMAKE}"
fi
}
src_unpack() {
if ! use bootstrap && [[ -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"
eerror "2) set the bootstrap use flag"
die "ada compiler not available"
fi
}
src_unpack() {
GCC_A_FAKEIT="
${P}-src.tar.gz
${MYP}.tar.gz