1 |
commit: fb6c36404e813f6160eddede1e188cf643546e4c |
2 |
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 9 17:49:37 2021 +0000 |
4 |
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Feb 9 17:49:37 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb6c3640 |
7 |
|
8 |
sci-mathematics/why3-for-spark: version bump to 2020 |
9 |
|
10 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
11 |
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org> |
12 |
|
13 |
sci-mathematics/why3-for-spark/Manifest | 1 + |
14 |
.../files/why3-for-spark-2020-bibtex.patch | 11 ++ |
15 |
.../files/why3-for-spark-2020-flags.patch | 28 +++++ |
16 |
.../files/why3-for-spark-2020-gentoo.patch | 10 ++ |
17 |
.../why3-for-spark/why3-for-spark-2020.ebuild | 123 +++++++++++++++++++++ |
18 |
5 files changed, 173 insertions(+) |
19 |
|
20 |
diff --git a/sci-mathematics/why3-for-spark/Manifest b/sci-mathematics/why3-for-spark/Manifest |
21 |
index e2f1ef56af6..470f4f0fce2 100644 |
22 |
--- a/sci-mathematics/why3-for-spark/Manifest |
23 |
+++ b/sci-mathematics/why3-for-spark/Manifest |
24 |
@@ -1,2 +1,3 @@ |
25 |
+DIST 8bb5801e17b8b23453262da69c981c091959eec7?filename=why3-2020-20200429-199EF-src.tar.gz 9739066 BLAKE2B c7c11a92d4926f90be9ffa94d74e65ad78423953b53ee617565ccfcea4a5a60b251367b0712c30d170ab717d5868f7d95d62694f38c3d2f52805a28a6522ab8a SHA512 61cd5509957230ff81186d2507b9749b182cdc44698f6658337ce294d210742e57164d25d7c0eb3eb5ea0c53f5f46dea099e6a0769fadcb709a5a8557ed3cae3 |
26 |
DIST why3-2019-20190517-197BB-src.tar.gz 9439414 BLAKE2B 68072064e8ee9152528c90afc948047a1f4d58b960ac05b276761fdca5ba1204100c75f33db7bb0ea1a8a646b734e62892ed41bd875b954354f52b8f9d498d4a SHA512 9169a4ff9ee994a19f9f04b689d1b9c679f5340bcd631d7d49b4c55064f505bd5a6ca8149077e5d24d36f5365f0cab58587094e86f352a9105fc46f10c0746ba |
27 |
DIST why3-for-spark-gpl-2018-src.tar.gz 7682767 BLAKE2B 0b0272ca4d5519ca402990b234d0847378bcd2a0949fea78ea10e355233a16aebe79b938cdf8e4daadabb909171cab83b9d6ccacf9f2dc1c0b57bb6da6fd1fe0 SHA512 fc798acf343484fd8e70f470a318753c9a0e9967ff579f20ec185bf3c2a75e7a4a556388fc86a378610ce4a467f3e722c6f610da34d4c33bc3d6b10551731f07 |
28 |
|
29 |
diff --git a/sci-mathematics/why3-for-spark/files/why3-for-spark-2020-bibtex.patch b/sci-mathematics/why3-for-spark/files/why3-for-spark-2020-bibtex.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..bcc4762641b |
32 |
--- /dev/null |
33 |
+++ b/sci-mathematics/why3-for-spark/files/why3-for-spark-2020-bibtex.patch |
34 |
@@ -0,0 +1,11 @@ |
35 |
+--- a/doc/conf.py 2021-02-08 20:09:27.000629537 +0100 |
36 |
++++ b/doc/conf.py 2021-02-08 20:10:04.653994573 +0100 |
37 |
+@@ -34,6 +34,8 @@ |
38 |
+ 'why3' |
39 |
+ ] |
40 |
+ |
41 |
++bibtex_bibfiles = ['manual.bib'] |
42 |
++ |
43 |
+ # Add any paths that contain templates here, relative to this directory. |
44 |
+ templates_path = ['_templates'] |
45 |
+ |
46 |
|
47 |
diff --git a/sci-mathematics/why3-for-spark/files/why3-for-spark-2020-flags.patch b/sci-mathematics/why3-for-spark/files/why3-for-spark-2020-flags.patch |
48 |
new file mode 100644 |
49 |
index 00000000000..2e5247ac3fa |
50 |
--- /dev/null |
51 |
+++ b/sci-mathematics/why3-for-spark/files/why3-for-spark-2020-flags.patch |
52 |
@@ -0,0 +1,28 @@ |
53 |
+--- a/Makefile.in 2020-06-12 21:03:33.375534124 +0200 |
54 |
++++ b/Makefile.in 2020-06-12 21:03:48.623283408 +0200 |
55 |
+@@ -121,7 +121,7 @@ |
56 |
+ |
57 |
+ WARNINGS = A-4-9-41-44-45-50-52@5@8@48 |
58 |
+ |
59 |
+-FLAGS = -w $(WARNINGS) -safe-string -keep-locs -bin-annot -dtypes -g $(INCLUDES) |
60 |
++FLAGS = -w $(WARNINGS) -safe-string -keep-locs -bin-annot -dtypes -g $(INCLUDES) -cclib "$(LDFLAGS)" -ccopt "$(CFLAGS)" |
61 |
+ OFLAGS = $(FLAGS) |
62 |
+ BFLAGS = $(FLAGS) |
63 |
+ |
64 |
+@@ -664,13 +664,13 @@ |
65 |
+ all: $(TOOLS) |
66 |
+ |
67 |
+ lib/why3server$(EXE): $(SERVER_O) |
68 |
+- $(CC) -Wall -o $@ $^ |
69 |
++ $(CC) -Wall $(CFLAGS) -o $@ $^ $(LDFLAGS) |
70 |
+ |
71 |
+ lib/why3cpulimit$(EXE): $(CPULIM_O) |
72 |
+- $(CC) -Wall -o $@ $^ |
73 |
++ $(CC) -Wall $(CFLAGS) -o $@ $^ $(LDFLAGS) |
74 |
+ |
75 |
+ %.o: %.c |
76 |
+- $(CC) -Wall -O -g -o $@ -c $< |
77 |
++ $(CC) -Wall -O -g $(CFLAGS) -o $@ -c $< |
78 |
+ |
79 |
+ uninstall-bin:: |
80 |
+ rm -f $(LIBDIR)/why3/why3server$(EXE) $(LIBDIR)/why3/why3cpulimit$(EXE) |
81 |
|
82 |
diff --git a/sci-mathematics/why3-for-spark/files/why3-for-spark-2020-gentoo.patch b/sci-mathematics/why3-for-spark/files/why3-for-spark-2020-gentoo.patch |
83 |
new file mode 100644 |
84 |
index 00000000000..47daa3e6990 |
85 |
--- /dev/null |
86 |
+++ b/sci-mathematics/why3-for-spark/files/why3-for-spark-2020-gentoo.patch |
87 |
@@ -0,0 +1,10 @@ |
88 |
+--- a/Makefile.in 2020-05-27 21:19:08.736241502 +0200 |
89 |
++++ b/Makefile.in 2020-05-27 21:19:14.042156954 +0200 |
90 |
+@@ -50,7 +50,6 @@ |
91 |
+ OCAMLINSTALLLIB = $(DESTDIR)@OCAMLINSTALLLIB@ |
92 |
+ OCAMLBEST = @OCAMLBEST@ |
93 |
+ OCAMLVERSION = @OCAMLVERSION@ |
94 |
+-CC = gcc |
95 |
+ COQC = @COQC@ |
96 |
+ COQDEP = @COQDEP@ |
97 |
+ FRAMAC_LIBDIR = $(DESTDIR)@FRAMAC_LIBDIR@ |
98 |
|
99 |
diff --git a/sci-mathematics/why3-for-spark/why3-for-spark-2020.ebuild b/sci-mathematics/why3-for-spark/why3-for-spark-2020.ebuild |
100 |
new file mode 100644 |
101 |
index 00000000000..a7fe3230408 |
102 |
--- /dev/null |
103 |
+++ b/sci-mathematics/why3-for-spark/why3-for-spark-2020.ebuild |
104 |
@@ -0,0 +1,123 @@ |
105 |
+# Copyright 1999-2021 Gentoo Authors |
106 |
+# Distributed under the terms of the GNU General Public License v2 |
107 |
+ |
108 |
+EAPI=7 |
109 |
+ |
110 |
+inherit autotools |
111 |
+ |
112 |
+MYP=why3-${PV}-20200429-199EF-src |
113 |
+ |
114 |
+DESCRIPTION="Platform for deductive program verification" |
115 |
+HOMEPAGE="http://why3.lri.fr/" |
116 |
+SRC_URI="https://community.download.adacore.com/v1/8bb5801e17b8b23453262da69c981c091959eec7?filename=${MYP}.tar.gz" |
117 |
+ |
118 |
+LICENSE="GPL-3" |
119 |
+SLOT="0" |
120 |
+KEYWORDS="~amd64" |
121 |
+IUSE="coq doc emacs gtk html +ocamlopt zarith zip" |
122 |
+RESTRICT="strip" |
123 |
+ |
124 |
+DEPEND=">=dev-lang/ocaml-4.09.0:=[ocamlopt=] |
125 |
+ >=dev-ml/ocamlbuild-0.14.0 |
126 |
+ dev-ml/menhir:= |
127 |
+ dev-ml/num:= |
128 |
+ dev-ml/yojson:= |
129 |
+ coq? ( |
130 |
+ >=sci-mathematics/coq-8.9.1 |
131 |
+ <sci-mathematics/coq-8.12 |
132 |
+ ) |
133 |
+ doc? ( |
134 |
+ dev-tex/rubber |
135 |
+ dev-python/sphinx |
136 |
+ media-gfx/graphviz |
137 |
+ dev-python/sphinxcontrib-bibtex |
138 |
+ ) |
139 |
+ gtk? ( >=dev-ml/lablgtk-2.18.8:=[sourceview] ) |
140 |
+ emacs? ( >=app-editors/emacs-23.1:* ) |
141 |
+ html? ( dev-tex/hevea:= ) |
142 |
+ zarith? ( dev-ml/zarith:= ) |
143 |
+ zip? ( >=dev-ml/camlzip-1.07:= )" |
144 |
+RDEPEND="${DEPEND}" |
145 |
+ |
146 |
+S="${WORKDIR}"/${MYP} |
147 |
+ |
148 |
+PATCHES=( |
149 |
+ "${FILESDIR}"/${P}-gentoo.patch |
150 |
+ "${FILESDIR}"/${P}-flags.patch |
151 |
+ "${FILESDIR}"/${P}-bibtex.patch |
152 |
+) |
153 |
+ |
154 |
+QA_FLAGS_IGNORED=( |
155 |
+ /usr/lib64/why3/commands/why3shell |
156 |
+ /usr/lib64/why3/commands/why3extract |
157 |
+ /usr/lib64/why3/commands/why3execute |
158 |
+ /usr/lib64/why3/commands/why3prove |
159 |
+ /usr/lib64/why3/commands/why3wc |
160 |
+ /usr/lib64/why3/commands/why3doc |
161 |
+ /usr/lib64/why3/commands/why3replay |
162 |
+ /usr/lib64/why3/commands/why3webserver |
163 |
+ /usr/lib64/why3/plugins/'.*'.cmxs |
164 |
+ /usr/lib64/ocaml/why3/why3.cmxs |
165 |
+ /usr/lib64/ocaml/why3/why3extract.cmxs |
166 |
+ /usr/bin/why3 |
167 |
+ /usr/bin/why3config |
168 |
+ /usr/bin/why3session |
169 |
+ /usr/bin/gnat_server |
170 |
+ /usr/bin/gnatwhy3 |
171 |
+ /usr/bin/why3realize |
172 |
+) |
173 |
+ |
174 |
+REQUIRED_USE="html? ( doc )" |
175 |
+ |
176 |
+src_prepare() { |
177 |
+ find examples -name \*gz | xargs gunzip |
178 |
+ default |
179 |
+ eautoreconf |
180 |
+} |
181 |
+ |
182 |
+src_configure() { |
183 |
+ econf \ |
184 |
+ --disable-pvs-libs \ |
185 |
+ --disable-isabelle-libs \ |
186 |
+ --enable-verbose-make \ |
187 |
+ $(use_enable coq coq-libs) \ |
188 |
+ $(use_enable doc) \ |
189 |
+ $(use_enable emacs emacs-compilation) \ |
190 |
+ $(use_enable gtk ide) \ |
191 |
+ $(use_enable html html-pdf) \ |
192 |
+ $(use_enable ocamlopt native-code) \ |
193 |
+ $(use_enable zarith) \ |
194 |
+ $(use_enable zip) |
195 |
+} |
196 |
+ |
197 |
+src_compile() { |
198 |
+ emake -j1 |
199 |
+ if use ocamlopt; then |
200 |
+ emake byte |
201 |
+ fi |
202 |
+ use doc && emake doc |
203 |
+} |
204 |
+ |
205 |
+src_install() { |
206 |
+ emake DESTDIR="${D}" -j1 install |
207 |
+ emake DESTDIR="${D}" -j1 install-lib |
208 |
+ emake DESTDIR="${D}" install_spark2014_dev |
209 |
+ local cmdPath=/usr/$(get_libdir)/why3/commands |
210 |
+ dosym ../why3server ${cmdPath}/why3server |
211 |
+ # Remove duplicated files |
212 |
+ for filename in config ide realize server session; do |
213 |
+ if [[ -e "${D}"${cmdPath}/why3${filename} ]]; then |
214 |
+ rm "${D}"${cmdPath}/why3${filename} |
215 |
+ dosym ../../../bin/why3${filename} ${cmdPath}/why3${filename} |
216 |
+ fi |
217 |
+ done |
218 |
+ rm "${D}"/usr/$(get_libdir)/why3/why3cpulimit |
219 |
+ dosym ../../bin/why3cpulimit /usr/$(get_libdir)/why3/why3cpulimit |
220 |
+ |
221 |
+ einstalldocs |
222 |
+ docompress -x /usr/share/doc/${PF}/examples |
223 |
+ dodoc -r examples |
224 |
+ if use doc; then |
225 |
+ use html && dodoc -r doc/html |
226 |
+ fi |
227 |
+} |