Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-mathematics/why3/
Date: Wed, 31 Mar 2021 10:23:19
Message-Id: 1617132741.42c0da6a668a33653427f8b8ff93073a189819c7.andrewammerlaan@gentoo
1 commit: 42c0da6a668a33653427f8b8ff93073a189819c7
2 Author: François-Xavier Carton <fx.carton91 <AT> gmail <DOT> com>
3 AuthorDate: Tue Mar 30 19:32:21 2021 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
5 CommitDate: Tue Mar 30 19:32:21 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=42c0da6a
7
8 sci-mathematics/why3: bump to 1.4.0
9
10 Signed-off-by: François-Xavier Carton <fx.carton91 <AT> gmail.com>
11
12 sci-mathematics/why3/Manifest | 1 +
13 sci-mathematics/why3/metadata.xml | 1 +
14 sci-mathematics/why3/why3-1.4.0.ebuild | 83 ++++++++++++++++++++++++++++++++++
15 3 files changed, 85 insertions(+)
16
17 diff --git a/sci-mathematics/why3/Manifest b/sci-mathematics/why3/Manifest
18 index 20a390e40..9987a255a 100644
19 --- a/sci-mathematics/why3/Manifest
20 +++ b/sci-mathematics/why3/Manifest
21 @@ -1 +1,2 @@
22 DIST why3-1.3.3.tar.gz 5807572 BLAKE2B b1a04e78010f841e217b9a81c096cadfa0cddabadbe81ef55c310a104668feb1e46cd50576a965a58c74658903d6d08f9fd348bd2064a79ac3b176548927bcbe SHA512 a2dc95691cea29bbd20843a05add3985f777085086b654b53566ecdb752ba892366da703e232c85d5e0237d0e59564527aed55f6ccae9118d49e5f2cf93a53ce
23 +DIST why3-1.4.0.tar.gz 6306524 BLAKE2B ade7803a608d090ea06d974ae47e920993de92a5849d60bd63dba68252919a8f4fd1f0f6a3c975fdb727c4ae3afe13921b5d31a14c005e0d08f518e64bcf05e5 SHA512 b492f08a3c7073782b143a4849c47766b12045ad53c56aa8d251fd5b6bc1863ddebe260c99b3ddb27c4e1e1e9ab986c8b02286ec24f4c30f99f81f5f13fdc90a
24
25 diff --git a/sci-mathematics/why3/metadata.xml b/sci-mathematics/why3/metadata.xml
26 index 444f26b5b..008bf6030 100644
27 --- a/sci-mathematics/why3/metadata.xml
28 +++ b/sci-mathematics/why3/metadata.xml
29 @@ -21,6 +21,7 @@ language for the verification of C, Java, or Ada programs.
30 <flag name="coq">Add <pkg>sci-mathematics/coq</pkg> support</flag>
31 <flag name="gtk">Build the IDE <pkg>x11-libs/gtk+</pkg></flag>
32 <flag name="re">Use Re (<pkg>dev-ml/re</pkg>) instead of Str for regular expressions</flag>
33 + <flag name="sexp">Add support for outputting S-expressions with <pkg>dev-ml/ppx_sexp_conv</pkg></flag>
34 <flag name="zarith">Use Zarith (<pkg>dev-ml/zarith</pkg>) instead of Nums (<pkg>dev-ml/num</pkg>) for computations</flag>
35 <flag name="zip">Enable compression of session files</flag>
36 </use>
37
38 diff --git a/sci-mathematics/why3/why3-1.4.0.ebuild b/sci-mathematics/why3/why3-1.4.0.ebuild
39 new file mode 100644
40 index 000000000..d85c95cfc
41 --- /dev/null
42 +++ b/sci-mathematics/why3/why3-1.4.0.ebuild
43 @@ -0,0 +1,83 @@
44 +# Copyright 1999-2020 Gentoo Authors
45 +# Distributed under the terms of the GNU General Public License v2
46 +
47 +EAPI=7
48 +
49 +inherit autotools
50 +
51 +DESCRIPTION="Platform for deductive program verification"
52 +HOMEPAGE="http://why3.lri.fr/"
53 +SRC_URI="https://gforge.inria.fr/frs/download.php/file/38425/${P}.tar.gz"
54 +
55 +LICENSE="LGPL-2"
56 +SLOT="0"
57 +KEYWORDS="~amd64"
58 +IUSE="coq doc emacs gtk +ocamlopt re sexp +zarith zip"
59 +
60 +DEPEND=">=dev-lang/ocaml-4.05.0[ocamlopt?]
61 + >=dev-ml/menhir-20151112
62 + dev-ml/findlib
63 + dev-ml/num
64 + coq? ( >=sci-mathematics/coq-8.6 )
65 + doc? (
66 + dev-python/sphinx
67 + dev-python/sphinxcontrib-bibtex
68 + || ( dev-texlive/texlive-latex dev-tex/latexmk dev-tex/rubber )
69 + )
70 + emacs? ( app-editors/emacs:* )
71 + gtk? ( dev-ml/lablgtk:*[sourceview,ocamlopt?] )
72 + re? ( dev-ml/re dev-ml/seq )
73 + sexp? (
74 + dev-ml/ppx_deriving[ocamlopt?]
75 + dev-ml/ppx_sexp_conv[ocamlopt?]
76 + dev-ml/sexplib[ocamlopt?]
77 + )
78 + zarith? ( dev-ml/zarith )
79 + zip? ( dev-ml/camlzip )"
80 +RDEPEND="${DEPEND}"
81 +
82 +DOCS=( CHANGES.md README.md )
83 +
84 +src_prepare() {
85 + mv configure.in configure.ac || die
86 + sed -i 's/configure\.in/configure.ac/g' Makefile.in || die
87 + eautoreconf
88 + eapply_user
89 +}
90 +
91 +src_configure() {
92 + econf \
93 + --disable-hypothesis-selection \
94 + --disable-pvs-libs \
95 + --disable-isabelle-libs \
96 + --disable-frama-c \
97 + --disable-infer \
98 + --disable-web-ide \
99 + $(use_enable coq coq-libs) \
100 + $(use_enable doc) \
101 + $(use_enable emacs emacs-compilation) \
102 + $(use_enable gtk ide) \
103 + $(use_enable ocamlopt native-code) \
104 + $(use_enable re) \
105 + $(use_enable sexp pp-sexp) \
106 + $(use_enable zarith) \
107 + $(use_enable zip)
108 +}
109 +
110 +src_compile() {
111 + emake
112 + emake plugins
113 + use doc && emake doc
114 +}
115 +
116 +src_install(){
117 + emake install install-lib DESTDIR="${ED}"
118 +
119 + einstalldocs
120 + docompress -x /usr/share/doc/${PF}/examples
121 + dodoc -r examples
122 + if use doc; then
123 + dodoc doc/latex/manual.pdf
124 + dodoc -r doc/html
125 + fi
126 +}