1 |
commit: b3499a38d248ecfe2c47edb1ff9c255dc64352d9 |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Sep 13 18:58:30 2019 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 13 18:58:30 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b3499a38 |
7 |
|
8 |
dev-ada/gnat_util: simplify using ada eclass |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
dev-ada/gnat_util/gnat_util-2017-r2.ebuild | 55 ++++++++++++++++++++++++++++++ |
14 |
dev-ada/gnat_util/gnat_util-2018-r2.ebuild | 54 +++++++++++++++++++++++++++++ |
15 |
dev-ada/gnat_util/gnat_util-2019-r1.ebuild | 54 +++++++++++++++++++++++++++++ |
16 |
3 files changed, 163 insertions(+) |
17 |
|
18 |
diff --git a/dev-ada/gnat_util/gnat_util-2017-r2.ebuild b/dev-ada/gnat_util/gnat_util-2017-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..21237961a5b |
21 |
--- /dev/null |
22 |
+++ b/dev-ada/gnat_util/gnat_util-2017-r2.ebuild |
23 |
@@ -0,0 +1,55 @@ |
24 |
+# Copyright 1999-2019 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+ADA_COMPAT=( gnat_201{6,7} ) |
30 |
+inherit ada toolchain-funcs multiprocessing |
31 |
+ |
32 |
+MYP=${PN}-gpl-${PV} |
33 |
+ |
34 |
+DESCRIPTION="Provides access to GNAT compiler internals for AdaCore utilities" |
35 |
+HOMEPAGE="http://libre.adacore.com" |
36 |
+SRC_URI="http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed037 |
37 |
+ -> ${MYP}-src.tar.gz" |
38 |
+ |
39 |
+LICENSE="GPL-3" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
+IUSE="+shared static-libs static-pic" |
43 |
+ |
44 |
+RDEPEND="${ADA_DEPS}" |
45 |
+DEPEND="${RDEPEND} |
46 |
+ dev-ada/gprbuild[${ADA_USEDEP}]" |
47 |
+ |
48 |
+REQUIRED_USE="${ADA_REQUIRED_USE}" |
49 |
+ |
50 |
+S="${WORKDIR}"/${MYP}-src |
51 |
+ |
52 |
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) |
53 |
+ |
54 |
+src_compile() { |
55 |
+ emake GNATMAKE="${GNATMAKE} ${ADAFLAGS}" \ |
56 |
+ BUILDER="gprbuild -j$(makeopts_jobs)" generate_sources |
57 |
+ if use static-libs; then |
58 |
+ emake BUILDER="gprbuild -v -j$(makeopts_jobs)" build-static |
59 |
+ fi |
60 |
+ for kind in shared static-pic; do |
61 |
+ if use ${kind}; then |
62 |
+ emake BUILDER="gprbuild -v -j$(makeopts_jobs)" \ |
63 |
+ build-${kind} |
64 |
+ fi |
65 |
+ done |
66 |
+} |
67 |
+ |
68 |
+src_install() { |
69 |
+ if use static-libs; then |
70 |
+ emake prefix="${D}"/usr install-static |
71 |
+ fi |
72 |
+ for kind in shared static-pic; do |
73 |
+ if use ${kind}; then |
74 |
+ emake prefix="${D}"/usr install-${kind} |
75 |
+ fi |
76 |
+ done |
77 |
+ einstalldocs |
78 |
+} |
79 |
|
80 |
diff --git a/dev-ada/gnat_util/gnat_util-2018-r2.ebuild b/dev-ada/gnat_util/gnat_util-2018-r2.ebuild |
81 |
new file mode 100644 |
82 |
index 00000000000..227d6a882a6 |
83 |
--- /dev/null |
84 |
+++ b/dev-ada/gnat_util/gnat_util-2018-r2.ebuild |
85 |
@@ -0,0 +1,54 @@ |
86 |
+# Copyright 1999-2019 Gentoo Authors |
87 |
+# Distributed under the terms of the GNU General Public License v2 |
88 |
+ |
89 |
+EAPI=7 |
90 |
+ |
91 |
+ADA_COMPAT=( gnat_201{8,9} ) |
92 |
+inherit ada toolchain-funcs multiprocessing |
93 |
+ |
94 |
+MYP=${PN}-gpl-${PV} |
95 |
+ |
96 |
+DESCRIPTION="Provides access to GNAT compiler internals for AdaCore utilities" |
97 |
+HOMEPAGE="http://libre.adacore.com" |
98 |
+SRC_URI="http://mirrors.cdn.adacore.com/art/5b0819dfc7a447df26c27a6b |
99 |
+ -> ${MYP}-src.tar.gz" |
100 |
+ |
101 |
+LICENSE="GPL-3" |
102 |
+SLOT="0" |
103 |
+KEYWORDS="~amd64 ~x86" |
104 |
+IUSE="+shared static-libs static-pic" |
105 |
+ |
106 |
+RDEPEND="${ADA_DEPS}" |
107 |
+DEPEND="${RDEPEND} |
108 |
+ dev-ada/gprbuild[${ADA_USEDEP}]" |
109 |
+REQUIRED_USE="${ADA_REQUIRED_USE}" |
110 |
+ |
111 |
+S="${WORKDIR}"/${MYP}-src |
112 |
+ |
113 |
+PATCHES=( "${FILESDIR}"/${PN}-2017-gentoo.patch ) |
114 |
+ |
115 |
+src_compile() { |
116 |
+ emake GNATMAKE="${GNATMAKE} ${ADAFLAGS}" \ |
117 |
+ BUILDER="gprbuild -j$(makeopts_jobs)" generate_sources |
118 |
+ if use static-libs; then |
119 |
+ emake BUILDER="gprbuild -v -j$(makeopts_jobs)" build-static |
120 |
+ fi |
121 |
+ for kind in shared static-pic; do |
122 |
+ if use ${kind}; then |
123 |
+ emake BUILDER="gprbuild -v -j$(makeopts_jobs)" \ |
124 |
+ build-${kind} |
125 |
+ fi |
126 |
+ done |
127 |
+} |
128 |
+ |
129 |
+src_install() { |
130 |
+ if use static-libs; then |
131 |
+ emake prefix="${D}"/usr install-static |
132 |
+ fi |
133 |
+ for kind in shared static-pic; do |
134 |
+ if use ${kind}; then |
135 |
+ emake prefix="${D}"/usr install-${kind} |
136 |
+ fi |
137 |
+ done |
138 |
+ einstalldocs |
139 |
+} |
140 |
|
141 |
diff --git a/dev-ada/gnat_util/gnat_util-2019-r1.ebuild b/dev-ada/gnat_util/gnat_util-2019-r1.ebuild |
142 |
new file mode 100644 |
143 |
index 00000000000..7a63a8b83b1 |
144 |
--- /dev/null |
145 |
+++ b/dev-ada/gnat_util/gnat_util-2019-r1.ebuild |
146 |
@@ -0,0 +1,54 @@ |
147 |
+# Copyright 1999-2019 Gentoo Authors |
148 |
+# Distributed under the terms of the GNU General Public License v2 |
149 |
+ |
150 |
+EAPI=7 |
151 |
+ |
152 |
+ADA_COMPAT=( gnat_2019 ) |
153 |
+inherit ada toolchain-funcs multiprocessing |
154 |
+ |
155 |
+MYP=${P}-20190517 |
156 |
+ |
157 |
+DESCRIPTION="Provides access to GNAT compiler internals for AdaCore utilities" |
158 |
+HOMEPAGE="http://libre.adacore.com" |
159 |
+SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf8e5031e87a8f1d425090 |
160 |
+ -> ${MYP}-18c94-src.tar.gz" |
161 |
+ |
162 |
+LICENSE="GPL-3" |
163 |
+SLOT="0" |
164 |
+KEYWORDS="~amd64 ~x86" |
165 |
+IUSE="+shared static-libs static-pic" |
166 |
+ |
167 |
+RDEPEND="${ADA_DEPS}" |
168 |
+DEPEND="${RDEPEND} |
169 |
+ dev-ada/gprbuild[${ADA_USEDEP}]" |
170 |
+REQUIRED_USE="${ADA_REQUIRED_USE}" |
171 |
+ |
172 |
+S="${WORKDIR}"/${MYP}-194CA-src |
173 |
+ |
174 |
+PATCHES=( "${FILESDIR}"/${PN}-2017-gentoo.patch ) |
175 |
+ |
176 |
+src_compile() { |
177 |
+ emake GNATMAKE="${GNATMAKE} ${ADAFLAGS}" \ |
178 |
+ BUILDER="gprbuild -j$(makeopts_jobs)" generate_sources |
179 |
+ if use static-libs; then |
180 |
+ emake BUILDER="gprbuild -v -j$(makeopts_jobs)" build-static |
181 |
+ fi |
182 |
+ for kind in shared static-pic; do |
183 |
+ if use ${kind}; then |
184 |
+ emake BUILDER="gprbuild -v -j$(makeopts_jobs)" \ |
185 |
+ build-${kind} |
186 |
+ fi |
187 |
+ done |
188 |
+} |
189 |
+ |
190 |
+src_install() { |
191 |
+ if use static-libs; then |
192 |
+ emake prefix="${D}"/usr install-static |
193 |
+ fi |
194 |
+ for kind in shared static-pic; do |
195 |
+ if use ${kind}; then |
196 |
+ emake prefix="${D}"/usr install-${kind} |
197 |
+ fi |
198 |
+ done |
199 |
+ einstalldocs |
200 |
+} |