Diff gnat-suite-bin-2017-r1 with a gnat-suite-bin-2018-r1

/usr/portage/dev-ada/gnat-suite-bin/gnat-suite-bin-2018-r1.ebuild 2021-04-10 17:09:00.000000000 +0300
6 6
MYP=gnat-gpl-${PV}
7 7
DESCRIPTION="GNAT Ada suite"
8 8
HOMEPAGE="http://libre.adacore.com/"
9
SRC_URI="http://mirrors.cdn.adacore.com/art/591c6d80c7a447af2deed1d7
10
		-> ${MYP}-x86_64-linux-bin.tar.gz"
9
# Extracted and repacked from http://mirrors.cdn.adacore.com/art/5b0d7bffa3f5d709751e3e04
10
SRC_URI="https://dev.gentoo.org/~tupone/distfiles/${P}.txz"
11 11

  
12 12
LICENSE="GPL-2 GPL-3"
13 13
SLOT="${PV}"
......
22 22
	sys-libs/ncurses-compat
23 23
"
24 24

  
25
S="${WORKDIR}"/${MYP}-x86_64-linux-bin
26

  
27 25
PREFIX=/opt/${P}
28 26

  
29 27
src_prepare() {
......
58 56
	sed -i \
59 57
		-e "s:PREFIX:${PREFIX}:" \
60 58
		gnat-examples.xml || die
61
	cd ../../..
62

  
63
	# Remove objects from binutils
64
	cd bin
65
	rm addr2line ar c++filt gprof ld.* nm obj* r* s* || die
66
	cd ..
67
	rm share/doc/gnat/info/{as,bfd,binutils,ld}.info || die
68

  
69
	# Remove objects from gdb
70
	cd bin
71
	rm gdb gdbserver gcore || die
72
	cd ..
73
	rm -r include/gdb || die
74
	rm lib*/libinproctrace.so || die
75
	rm -r share/gdb-* || die
76
	rm share/doc/gnat/info/gdb.info || die
77

  
78
	basever=6.3.1
79
	machine=x86_64-pc-linux-gnu
80
	rm libexec//gcc/${machine}/${basever}/ld || die
81 59
}
82 60

  
83 61
src_install() {
......
87 65
	doins -r etc include lib* share
88 66
	insinto ${PREFIX}/share/gps/plug-ins
89 67
	doins share/examples/gnat/gnat-examples.xml
68
	basever=7.3.1
69
	machine=x86_64-pc-linux-gnu
90 70
	fperms 755 ${PREFIX}/libexec/gcc/${machine}/${basever}/cc1
91 71
	fperms 755 ${PREFIX}/libexec/gcc/${machine}/${basever}/cc1plus
92 72
	fperms 755 ${PREFIX}/libexec/gcc/${machine}/${basever}/collect2
Thank you!