Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/why3/
Date: Sat, 07 May 2022 16:50:49
Message-Id: 1651942225.7a4a24d0168c9092f69cafa35ca1872d7e77e0de.xgqt@gentoo
1 commit: 7a4a24d0168c9092f69cafa35ca1872d7e77e0de
2 Author: François-Xavier Carton <fx.carton91 <AT> gmail <DOT> com>
3 AuthorDate: Sat May 7 16:15:12 2022 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Sat May 7 16:50:25 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a4a24d0
7
8 sci-mathematics/why3: bump to 1.5.0
9
10 Signed-off-by: François-Xavier Carton <fx.carton91 <AT> gmail.com>
11 Closes: https://github.com/gentoo/gentoo/pull/25372
12 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
13
14 sci-mathematics/why3/Manifest | 1 +
15 sci-mathematics/why3/metadata.xml | 1 +
16 sci-mathematics/why3/why3-1.5.0.ebuild | 103 +++++++++++++++++++++++++++++++++
17 3 files changed, 105 insertions(+)
18
19 diff --git a/sci-mathematics/why3/Manifest b/sci-mathematics/why3/Manifest
20 index 5eda325aedbe..e4d7b6aceaad 100644
21 --- a/sci-mathematics/why3/Manifest
22 +++ b/sci-mathematics/why3/Manifest
23 @@ -1,2 +1,3 @@
24 DIST why3-1.4.0.tar.gz 6306524 BLAKE2B ade7803a608d090ea06d974ae47e920993de92a5849d60bd63dba68252919a8f4fd1f0f6a3c975fdb727c4ae3afe13921b5d31a14c005e0d08f518e64bcf05e5 SHA512 b492f08a3c7073782b143a4849c47766b12045ad53c56aa8d251fd5b6bc1863ddebe260c99b3ddb27c4e1e1e9ab986c8b02286ec24f4c30f99f81f5f13fdc90a
25 DIST why3-1.4.1.tar.gz 6305011 BLAKE2B 2d916fbf333550f8021bff9e7ccf4ca5685763ca7f82ae133298feaf96f3e8b36290a103fd27224fb6fb2dc36c8d7ad5d93ffc92e8cf7fe1a61abb5a40aecb39 SHA512 7990519179c088be1bc9b5b6d469f6d6fbd683445e20cbf5edd5c97682f2931b2657a92b60e539d7647033bfdc5a63401f28af61fd9b14b41011144afa2016e0
26 +DIST why3-1.5.0.tar.gz 6723500 BLAKE2B e6ae5034cf0b3923dfaa760d604f754d4e385ea92ca1f70c7d4bd9985c75192ed381bb50d7211451f35d485e5c0969b3de4987603720b2fd6609cca5d074b85f SHA512 3ae443733321f2e487d6e503c4dbfe37d0e24c7dbe88eb94a3907775a1e6e30530b58ff835e3b2fff3fac5cd16622d758602e4f2b59aea567c7073199d67888c
27
28 diff --git a/sci-mathematics/why3/metadata.xml b/sci-mathematics/why3/metadata.xml
29 index 9974e9e2b8a1..c8d6f06359fb 100644
30 --- a/sci-mathematics/why3/metadata.xml
31 +++ b/sci-mathematics/why3/metadata.xml
32 @@ -31,6 +31,7 @@
33 <flag name="gtk">Build the IDE <pkg>x11-libs/gtk+</pkg></flag>
34 <flag name="re">Use Re (<pkg>dev-ml/re</pkg>) instead of Str for regular expressions</flag>
35 <flag name="sexp">Add support for outputting S-expressions with <pkg>dev-ml/ppx_sexp_conv</pkg></flag>
36 + <flag name="stackify">Enable structure reconstruction algorithm for MLCFG</flag>
37 <flag name="zarith">Use Zarith (<pkg>dev-ml/zarith</pkg>) instead of Nums (<pkg>dev-ml/num</pkg>) for computations</flag>
38 <flag name="zip">Enable compression of session files</flag>
39 </use>
40
41 diff --git a/sci-mathematics/why3/why3-1.5.0.ebuild b/sci-mathematics/why3/why3-1.5.0.ebuild
42 new file mode 100644
43 index 000000000000..9c250c09c3d0
44 --- /dev/null
45 +++ b/sci-mathematics/why3/why3-1.5.0.ebuild
46 @@ -0,0 +1,103 @@
47 +# Copyright 1999-2022 Gentoo Authors
48 +# Distributed under the terms of the GNU General Public License v2
49 +
50 +EAPI=7
51 +
52 +inherit autotools findlib
53 +
54 +DESCRIPTION="Platform for deductive program verification"
55 +HOMEPAGE="http://why3.lri.fr/"
56 +SRC_URI="https://why3.gitlabpages.inria.fr/releases/${P}.tar.gz"
57 +
58 +LICENSE="LGPL-2"
59 +SLOT="0/${PV}"
60 +KEYWORDS="~amd64"
61 +IUSE="coq doc emacs gtk +ocamlopt re sexp stackify +zarith zip"
62 +
63 +RDEPEND="
64 + !sci-mathematics/why3-for-spark
65 + >=dev-lang/ocaml-4.05.0:=[ocamlopt?]
66 + >=dev-ml/menhir-20170418:=
67 + dev-ml/num:=
68 + coq? ( >=sci-mathematics/coq-8.7 )
69 + emacs? ( app-editors/emacs:* )
70 + gtk? ( dev-ml/lablgtk:=[sourceview,ocamlopt?] )
71 + re? ( dev-ml/re:= dev-ml/seq:= )
72 + sexp? (
73 + dev-ml/ppx_deriving:=[ocamlopt?]
74 + dev-ml/ppx_sexp_conv:=[ocamlopt?]
75 + dev-ml/sexplib:=[ocamlopt?]
76 + )
77 + stackify? ( dev-ml/ocamlgraph:=[ocamlopt?] )
78 + zarith? ( dev-ml/zarith:= )
79 + zip? ( dev-ml/camlzip:= )
80 +"
81 +DEPEND="${RDEPEND}"
82 +BDEPEND="
83 + doc? (
84 + dev-python/sphinx
85 + dev-python/sphinxcontrib-bibtex
86 + media-gfx/graphviz
87 + dev-texlive/texlive-latex
88 + dev-texlive/texlive-fontsrecommended
89 + dev-texlive/texlive-latexextra
90 + )
91 +"
92 +
93 +DOCS=( CHANGES.md README.md )
94 +
95 +src_prepare() {
96 + mv configure.in configure.ac || die
97 + sed -i 's/configure\.in/configure.ac/g' Makefile.in || die
98 + sed -e '/^lib\/why3[a-z]*\$(EXE):/{n;s/-Wall/$(CFLAGS) $(LDFLAGS)/}' \
99 + -e '/^%.o: %.c/{n;s/\$(CC).*-o/$(CC) $(CFLAGS) -o/}' \
100 + -e '/\$(SPHINX)/s/ -d doc\/\.doctrees / /' \
101 + -i Makefile.in || die
102 +
103 + # remove QA warning about duplicated compressed file:
104 + rm examples/mlcfg/basic/why3shapes.gz || die
105 +
106 + eautoreconf
107 + default
108 +}
109 +
110 +src_configure() {
111 + local myconf=(
112 + --disable-hypothesis-selection
113 + --disable-pvs-libs
114 + --disable-isabelle-libs
115 + --disable-frama-c
116 + --disable-infer
117 + --disable-web-ide
118 + $(use_enable coq coq-libs)
119 + $(use_enable doc)
120 + $(use_enable emacs emacs-compilation)
121 + $(use_enable gtk ide)
122 + $(use_enable ocamlopt native-code)
123 + $(use_enable re)
124 + $(use_enable sexp pp-sexp)
125 + $(use_enable stackify)
126 + $(use_enable zarith)
127 + $(use_enable zip)
128 + )
129 + econf "${myconf[@]}"
130 +}
131 +
132 +src_compile() {
133 + emake
134 + emake plugins
135 + use doc && emake doc
136 +}
137 +
138 +src_install(){
139 + findlib_src_preinst
140 + emake install install-lib DESTDIR="${ED}"
141 +
142 + einstalldocs
143 + docompress -x /usr/share/doc/${PF}/examples
144 + dodoc -r examples
145 + if use doc; then
146 + dodoc doc/latex/manual.pdf
147 + dodoc -r doc/html
148 + fi
149 +}