summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2017-11-22 18:10:33 +0000
committerTupone Alfredo <tupone@gentoo.org>2017-11-22 18:10:33 +0000
commit0a8f60efdf18f7b64aefc5cba8e0132acd85c277 (patch)
tree93a11ceb33d0b89549b71ab09b20608580b6d03b
parentsys-cluster/kube-controller-manager: Remove old (diff)
downloadgentoo-0a8f60efdf18f7b64aefc5cba8e0132acd85c277.tar.gz
gentoo-0a8f60efdf18f7b64aefc5cba8e0132acd85c277.tar.bz2
gentoo-0a8f60efdf18f7b64aefc5cba8e0132acd85c277.zip
dev-ada/gps: use only (gnat)gcc-6.3.0 compiler
Package-Manager: Portage-2.3.13, Repoman-2.3.3
-rw-r--r--dev-ada/gps/gps-2017.ebuild19
1 files changed, 3 insertions, 16 deletions
diff --git a/dev-ada/gps/gps-2017.ebuild b/dev-ada/gps/gps-2017.ebuild
index a07971aa8bbf..8741b9151523 100644
--- a/dev-ada/gps/gps-2017.ebuild
+++ b/dev-ada/gps/gps-2017.ebuild
@@ -36,26 +36,13 @@ S="${WORKDIR}"/${MYP}
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
-pkg_setup() {
- GCC=${ADA:-$(tc-getCC)}
- GNATLS="${GCC/gcc/gnatls}"
- GNAT="${GCC/gcc/gnat}"
- GNATMAKE="${GCC/gcc/gnatmake}"
- if [[ -z "$(type ${GNATLS} 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 ADA=gcc-6.3.0 in make.conf"
- die "ada compiler not available"
- fi
- python-single-r1_pkg_setup
-}
-
src_prepare() {
default
+ GCC_PV=6.3.0
mv configure.{in,ac} || die
sed -i \
- -e "s:@GNATMAKE@:${GNATMAKE}:g" \
- -e "s:@GNAT@:${GNAT}:g" \
+ -e "s:@GNATMAKE@:gnatmake-${GCC_PV}:g" \
+ -e "s:@GNAT@:gnat-${GCC_PV}:g" \
aclocal.m4 \
|| die
eautoreconf