Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 706588 | Differences between
and this patch

Collapse All | Expand All

(-)a/dev-lang/gnat-gpl/gnat-gpl-2019-r1.ebuild (-22 / +14 lines)
Lines 3-14 Link Here
3
3
4
EAPI="6"
4
EAPI="6"
5
5
6
PATCH_GCC_VER=8.3.0
6
PATCH_VER="3"
7
PATCH_VER="3"
7
8
8
TOOLCHAIN_GCC_PV=8.3.0
9
TOOLCHAIN_GCC_PV=8.3.1
9
GCC_CONFIG_VER=8.3.1
10
11
inherit toolchain-funcs toolchain
12
10
13
REL=8
11
REL=8
14
MYP=gcc-${REL}-${PV}-20190517-18C94-src
12
MYP=gcc-${REL}-${PV}-20190517-18C94-src
Lines 17-25 INTFDIR=gcc-interface-${REL}-${PV}-20190510-18F59-src Link Here
17
BTSTRP_X86=gnat-gpl-2014-x86-linux-bin
15
BTSTRP_X86=gnat-gpl-2014-x86-linux-bin
18
BTSTRP_AMD64=gnat-gpl-2014-x86_64-linux-bin
16
BTSTRP_AMD64=gnat-gpl-2014-x86_64-linux-bin
19
17
20
DESCRIPTION="GNAT Ada Compiler - GPL version"
18
# we provide own tarball below
21
HOMEPAGE="http://libre.adacore.com/"
19
GCC_TARBALL_SRC_URI="
22
SRC_URI+="
23
	http://mirrors.cdn.adacore.com/art/5cdf865331e87aa2cdf16b49
20
	http://mirrors.cdn.adacore.com/art/5cdf865331e87aa2cdf16b49
24
		-> ${GNATDIR}.tar.gz
21
		-> ${GNATDIR}.tar.gz
25
	http://mirrors.cdn.adacore.com/art/5cdf8a0731e87a8f1d425049
22
	http://mirrors.cdn.adacore.com/art/5cdf8a0731e87a8f1d425049
Lines 37-48 SRC_URI+=" Link Here
37
		)
34
		)
38
	)"
35
	)"
39
36
37
inherit toolchain-funcs toolchain
38
39
DESCRIPTION="GNAT Ada Compiler - GPL version"
40
HOMEPAGE="http://libre.adacore.com/"
41
40
LICENSE+=" GPL-2 GPL-3"
42
LICENSE+=" GPL-2 GPL-3"
41
KEYWORDS="amd64 x86"
43
KEYWORDS="amd64 x86"
42
IUSE="+bootstrap"
44
IUSE="+bootstrap"
43
RESTRICT="!test? ( test )"
45
RESTRICT="!test? ( test )"
44
46
45
RDEPEND="!sys-devel/gcc:${GCC_CONFIG_VER}"
47
RDEPEND="!sys-devel/gcc:${TOOLCHAIN_GCC_PV}"
46
DEPEND="${RDEPEND}
48
DEPEND="${RDEPEND}
47
	elibc_glibc? ( >=sys-libs/glibc-2.13 )
49
	elibc_glibc? ( >=sys-libs/glibc-2.13 )
48
	>=sys-devel/binutils-2.20"
50
	>=sys-devel/binutils-2.20"
Lines 82-95 src_unpack() { Link Here
82
		die "ada compiler not available"
84
		die "ada compiler not available"
83
	fi
85
	fi
84
86
85
	GCC_A_FAKEIT="
86
		${MYP}.tar.gz
87
		${GNATDIR}.tar.gz
88
		${INTFDIR}.tar.gz"
89
	if use bootstrap; then
90
		GCC_A_FAKEIT="${GCC_A_FAKEIT} ${BTSTRP}.tar.gz"
91
	fi
92
93
	toolchain_src_unpack
87
	toolchain_src_unpack
94
	if use bootstrap; then
88
	if use bootstrap; then
95
		rm ${BTSTRP}/libexec/gcc/${CHOST}/4.7.4/ld || die
89
		rm ${BTSTRP}/libexec/gcc/${CHOST}/4.7.4/ld || die
Lines 132-141 src_prepare() { Link Here
132
126
133
src_configure() {
127
src_configure() {
134
	export PATH=${PWD}/bin:${PATH}
128
	export PATH=${PWD}/bin:${PATH}
135
	local trueGCC_BRANCH_VER=${GCC_BRANCH_VER}
129
136
	GCC_BRANCH_VER=$(gcc-version)
130
	downgrade_arch_flags "$(gcc-version)"
137
	downgrade_arch_flags
131
138
	GCC_BRANCH_VER=${trueGCC_BRANCH_VER}
139
	toolchain_src_configure \
132
	toolchain_src_configure \
140
		--enable-languages=ada \
133
		--enable-languages=ada \
141
		--disable-libada
134
		--disable-libada
Lines 152-158 src_compile() { Link Here
152
145
153
pkg_postinst () {
146
pkg_postinst () {
154
	einfo "This provide the GNAT compiler with gcc for ada/c/c++ and more"
147
	einfo "This provide the GNAT compiler with gcc for ada/c/c++ and more"
155
	einfo "The compiler binary is ${CTARGET}-gcc-${GCC_CONFIG_VER}"
148
	einfo "The compiler binary is ${CTARGET}-gcc-${TOOLCHAIN_GCC_PV}"
156
	einfo "Even if the c/c++ compilers are using almost the same patched"
149
	einfo "Even if the c/c++ compilers are using almost the same patched"
157
	einfo "source as the sys-devel/gcc package its use is not extensively"
150
	einfo "source as the sys-devel/gcc package its use is not extensively"
158
	einfo "tested, and not supported for updating your system, except for ada"
151
	einfo "tested, and not supported for updating your system, except for ada"
159
- 

Return to bug 706588