1 |
commit: c69df102e7e15f4554b63a4305c551251ddb63a4 |
2 |
Author: Tupone Alfredo <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 19 12:44:38 2019 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 19 12:44:38 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c69df102 |
7 |
|
8 |
dev-ada/libadalang: use 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/libadalang/libadalang-2017-r2.ebuild | 54 ++++++++++++++++++++++ |
14 |
dev-ada/libadalang/libadalang-2018-r2.ebuild | 63 +++++++++++++++++++++++++ |
15 |
dev-ada/libadalang/libadalang-2019-r1.ebuild | 69 ++++++++++++++++++++++++++++ |
16 |
3 files changed, 186 insertions(+) |
17 |
|
18 |
diff --git a/dev-ada/libadalang/libadalang-2017-r2.ebuild b/dev-ada/libadalang/libadalang-2017-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..26e9c93f4fe |
21 |
--- /dev/null |
22 |
+++ b/dev-ada/libadalang/libadalang-2017-r2.ebuild |
23 |
@@ -0,0 +1,54 @@ |
24 |
+# Copyright 1999-2019 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=7 |
28 |
+ |
29 |
+PYTHON_COMPAT=( python2_7 ) |
30 |
+ADA_COMPAT=( gnat_201{6,7} ) |
31 |
+ |
32 |
+inherit ada python-single-r1 |
33 |
+ |
34 |
+DESCRIPTION="high performance semantic engine for the Ada programming language" |
35 |
+HOMEPAGE="https://libre.adacore.com/" |
36 |
+SRC_URI="http://mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed042 |
37 |
+ -> ${P}-src.tar.gz" |
38 |
+ |
39 |
+LICENSE="GPL-3 gcc-runtime-library-exception-3.1" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64 ~x86" |
42 |
+IUSE="" |
43 |
+ |
44 |
+RDEPEND="${ADA_DEPS} |
45 |
+ dev-python/pyyaml |
46 |
+ dev-ada/gnatcoll[${ADA_USEDEP},projects,shared] |
47 |
+ ${PYTHON_DEPS}" |
48 |
+DEPEND="${RDEPEND} |
49 |
+ ~dev-ada/langkit-2017" |
50 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
51 |
+ ${ADA_REQUIRED_USE}" |
52 |
+ |
53 |
+S="${WORKDIR}"/${PN}-gps-src |
54 |
+ |
55 |
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) |
56 |
+ |
57 |
+src_prepare() { |
58 |
+ default |
59 |
+ rm -r ada/testsuite/tests/acats_parse || die |
60 |
+} |
61 |
+ |
62 |
+src_configure() { |
63 |
+ ada/manage.py generate || die |
64 |
+} |
65 |
+ |
66 |
+src_compile() { |
67 |
+ ada/manage.py --verbosity=debug build || die |
68 |
+} |
69 |
+ |
70 |
+src_test () { |
71 |
+ ada/manage.py test | grep FAILED && die |
72 |
+} |
73 |
+ |
74 |
+src_install () { |
75 |
+ ada/manage.py install "${D}"usr |
76 |
+ python_domodule build/python/libadalang.py |
77 |
+} |
78 |
|
79 |
diff --git a/dev-ada/libadalang/libadalang-2018-r2.ebuild b/dev-ada/libadalang/libadalang-2018-r2.ebuild |
80 |
new file mode 100644 |
81 |
index 00000000000..86894120316 |
82 |
--- /dev/null |
83 |
+++ b/dev-ada/libadalang/libadalang-2018-r2.ebuild |
84 |
@@ -0,0 +1,63 @@ |
85 |
+# Copyright 1999-2019 Gentoo Authors |
86 |
+# Distributed under the terms of the GNU General Public License v2 |
87 |
+ |
88 |
+EAPI=7 |
89 |
+ |
90 |
+PYTHON_COMPAT=( python2_7 ) |
91 |
+ADA_COMPAT=( gnat_201{7,8,9} ) |
92 |
+ |
93 |
+inherit ada python-single-r1 |
94 |
+ |
95 |
+MYP=${PN}-gpl-${PV}-src |
96 |
+DESCRIPTION="high performance semantic engine for the Ada programming language" |
97 |
+HOMEPAGE="https://libre.adacore.com/" |
98 |
+SRC_URI="http://mirrors.cdn.adacore.com/art/5b0cf9adc7a4475263382c18 |
99 |
+ -> ${MYP}.tar.gz" |
100 |
+ |
101 |
+LICENSE="GPL-3 gcc-runtime-library-exception-3.1" |
102 |
+SLOT="0" |
103 |
+KEYWORDS="~amd64 ~x86" |
104 |
+IUSE="+shared static-libs" |
105 |
+ |
106 |
+RDEPEND="dev-python/pyyaml |
107 |
+ dev-ada/gnatcoll-bindings[${ADA_USEDEP},iconv,shared=,static-libs=] |
108 |
+ ${ADA_DEPS} |
109 |
+ ${PYTHON_DEPS}" |
110 |
+DEPEND="${RDEPEND} |
111 |
+ ~dev-ada/langkit-2018 |
112 |
+ dev-ada/gprbuild[${ADA_USEDEP}]" |
113 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
114 |
+ ${ADA_REQUIRED_USE}" |
115 |
+ |
116 |
+S="${WORKDIR}"/${MYP} |
117 |
+ |
118 |
+PATCHES=( |
119 |
+ "${FILESDIR}"/${P}-gentoo.patch |
120 |
+ "${FILESDIR}"/${PN}-2017-gentoo.patch |
121 |
+) |
122 |
+ |
123 |
+src_configure() { |
124 |
+ ada/manage.py -v debug generate || die |
125 |
+} |
126 |
+ |
127 |
+src_compile() { |
128 |
+ ada/manage.py \ |
129 |
+ -v \ |
130 |
+ $(use_enable shared) \ |
131 |
+ $(use_enable static-libs static) \ |
132 |
+ build \ |
133 |
+ --build-mode='prod' || die |
134 |
+} |
135 |
+ |
136 |
+src_test () { |
137 |
+ ada/manage.py test | grep FAILED && die |
138 |
+} |
139 |
+ |
140 |
+src_install () { |
141 |
+ ada/manage.py \ |
142 |
+ $(use_enable shared) \ |
143 |
+ $(use_enable static-libs static) \ |
144 |
+ install "${D}"/usr || die |
145 |
+ python_domodule build/python/libadalang.py |
146 |
+ rm -r "${D}"/usr/python || die |
147 |
+} |
148 |
|
149 |
diff --git a/dev-ada/libadalang/libadalang-2019-r1.ebuild b/dev-ada/libadalang/libadalang-2019-r1.ebuild |
150 |
new file mode 100644 |
151 |
index 00000000000..23ddcc1668b |
152 |
--- /dev/null |
153 |
+++ b/dev-ada/libadalang/libadalang-2019-r1.ebuild |
154 |
@@ -0,0 +1,69 @@ |
155 |
+# Copyright 1999-2019 Gentoo Authors |
156 |
+# Distributed under the terms of the GNU General Public License v2 |
157 |
+ |
158 |
+EAPI=7 |
159 |
+ |
160 |
+PYTHON_COMPAT=( python2_7 ) |
161 |
+ADA_COMPAT=( gnat_201{8,9} ) |
162 |
+ |
163 |
+inherit ada python-single-r1 |
164 |
+ |
165 |
+MYP=${P}-20190510-19916-src |
166 |
+DESCRIPTION="high performance semantic engine for the Ada programming language" |
167 |
+HOMEPAGE="https://libre.adacore.com/" |
168 |
+SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf8f3331e87a8f1c967d27 |
169 |
+ -> ${MYP}.tar.gz" |
170 |
+ |
171 |
+LICENSE="GPL-3 gcc-runtime-library-exception-3.1" |
172 |
+SLOT="0" |
173 |
+KEYWORDS="~amd64 ~x86" |
174 |
+IUSE="+shared static-libs" |
175 |
+ |
176 |
+RDEPEND="dev-python/pyyaml |
177 |
+ dev-ada/gnatcoll-bindings[${ADA_USEDEP},iconv,shared=,static-libs=] |
178 |
+ ${ADA_DEPS} |
179 |
+ ${PYTHON_DEPS}" |
180 |
+DEPEND="${RDEPEND} |
181 |
+ dev-ada/gprbuild[${ADA_USEDEP}] |
182 |
+ >=dev-ada/langkit-2019" |
183 |
+ |
184 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE} |
185 |
+ ${ADA_REQUIRED_USE}" |
186 |
+ |
187 |
+S="${WORKDIR}"/${MYP} |
188 |
+ |
189 |
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) |
190 |
+ |
191 |
+src_configure() { |
192 |
+ ada/manage.py -v debug generate || die |
193 |
+} |
194 |
+ |
195 |
+src_compile() { |
196 |
+ libtype=relocatable |
197 |
+ if use shared; then |
198 |
+ if use static-libs; then |
199 |
+ libtype=static,relocatable |
200 |
+ fi |
201 |
+ elif use static-libs; then |
202 |
+ libtype=static |
203 |
+ fi |
204 |
+ ada/manage.py \ |
205 |
+ -v \ |
206 |
+ --library-types $libtype \ |
207 |
+ build \ |
208 |
+ --build-mode='prod' || die |
209 |
+} |
210 |
+ |
211 |
+src_test () { |
212 |
+ ada/manage.py test | tee libadalang.testOut; |
213 |
+ grep -q FAILED libadalang.testOut && die |
214 |
+} |
215 |
+ |
216 |
+src_install () { |
217 |
+ ada/manage.py \ |
218 |
+ -v \ |
219 |
+ --library-types $libtype \ |
220 |
+ install "${D}"/usr || die |
221 |
+ python_domodule build/python/libadalang |
222 |
+ rm -r "${D}"/usr/python || die |
223 |
+} |