1 |
commit: 407579c32281e3edfe0bd1ca7aa243a26999f5e1 |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Jun 5 17:10:31 2019 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Jun 5 17:10:31 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=407579c3 |
7 |
|
8 |
dev-ada/gnat_util: fix dependencies |
9 |
|
10 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
11 |
Package-Manager: Portage-2.3.66, Repoman-2.3.11 |
12 |
|
13 |
dev-ada/gnat_util/gnat_util-2017-r1.ebuild | 60 ++++++++++++++++++++++++++++++ |
14 |
1 file changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/dev-ada/gnat_util/gnat_util-2017-r1.ebuild b/dev-ada/gnat_util/gnat_util-2017-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..0d7f07e12a8 |
19 |
--- /dev/null |
20 |
+++ b/dev-ada/gnat_util/gnat_util-2017-r1.ebuild |
21 |
@@ -0,0 +1,60 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=6 |
26 |
+ |
27 |
+inherit toolchain-funcs multiprocessing |
28 |
+ |
29 |
+MYP=${PN}-gpl-${PV} |
30 |
+ |
31 |
+DESCRIPTION="Provides access to GNAT compiler internals for AdaCore utilities" |
32 |
+HOMEPAGE="http://libre.adacore.com" |
33 |
+SRC_URI="http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed037 |
34 |
+ -> ${MYP}-src.tar.gz" |
35 |
+ |
36 |
+LICENSE="GPL-3" |
37 |
+SLOT="0" |
38 |
+KEYWORDS="~amd64 ~x86" |
39 |
+IUSE="gnat_2016 +gnat_2017 +shared static-libs static-pic" |
40 |
+ |
41 |
+RDEPEND="gnat_2016? ( dev-lang/gnat-gpl:4.9.4 ) |
42 |
+ gnat_2017? ( dev-lang/gnat-gpl:6.3.0 )" |
43 |
+DEPEND="${RDEPEND} |
44 |
+ dev-ada/gprbuild[gnat_2016(-)?,gnat_2017(-)?]" |
45 |
+REQUIRED_USE="^^ ( gnat_2016 gnat_2017 )" |
46 |
+ |
47 |
+S="${WORKDIR}"/${MYP}-src |
48 |
+ |
49 |
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) |
50 |
+ |
51 |
+src_compile() { |
52 |
+ if use gnat_2016; then |
53 |
+ GCC_PV=4.9.4 |
54 |
+ else |
55 |
+ GCC_PV=6.3.0 |
56 |
+ fi |
57 |
+ GNATMAKE=${CHOST}-gnatmake-${GCC_PV} |
58 |
+ emake GNATMAKE="${GNATMAKE} ${ADAFLAGS}" \ |
59 |
+ BUILDER="gprbuild -j$(makeopts_jobs)" generate_sources |
60 |
+ if use static-libs; then |
61 |
+ emake BUILDER="gprbuild -v -j$(makeopts_jobs)" build-static |
62 |
+ fi |
63 |
+ for kind in shared static-pic; do |
64 |
+ if use ${kind}; then |
65 |
+ emake BUILDER="gprbuild -v -j$(makeopts_jobs)" \ |
66 |
+ build-${kind} |
67 |
+ fi |
68 |
+ done |
69 |
+} |
70 |
+ |
71 |
+src_install() { |
72 |
+ if use static-libs; then |
73 |
+ emake prefix="${D}"/usr install-static |
74 |
+ fi |
75 |
+ for kind in shared static-pic; do |
76 |
+ if use ${kind}; then |
77 |
+ emake prefix="${D}"/usr install-${kind} |
78 |
+ fi |
79 |
+ done |
80 |
+ einstalldocs |
81 |
+} |