commit:     d53b71f85b0a0eac777c476cb523c7bc30d3e5da
Author:     Tupone Alfredo <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Jan 14 07:51:42 2020 +0000
Commit:     Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Jan 14 07:51:42 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d53b71f8

sci-mathematics/why3-for-spark: use ocaml-4.09

Closes: https://bugs.gentoo.org/705072
Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>

 .../why3-for-spark/why3-for-spark-2019-r1.ebuild   | 78 ++++++++++++++++++++++
 1 file changed, 78 insertions(+)

diff --git a/sci-mathematics/why3-for-spark/why3-for-spark-2019-r1.ebuild 
b/sci-mathematics/why3-for-spark/why3-for-spark-2019-r1.ebuild
new file mode 100644
index 00000000000..6df32dd7409
--- /dev/null
+++ b/sci-mathematics/why3-for-spark/why3-for-spark-2019-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+MYP=why3-${PV}-20190517-197BB-src
+
+DESCRIPTION="Platform for deductive program verification"
+HOMEPAGE="http://why3.lri.fr/";
+SRC_URI="http://mirrors.cdn.adacore.com/art/5cdf915d31e87a8f1c967d54
+       -> ${MYP}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="coq doc emacs gtk html hypothesis-selection +ocamlopt profiling zarith 
zip"
+RESTRICT=strip
+
+DEPEND=">=dev-lang/ocaml-4.09.0[ocamlopt?]
+       >=dev-ml/ocamlbuild-0.14.0
+       dev-ml/menhir
+       dev-ml/num
+       coq? ( sci-mathematics/coq )
+       doc? ( dev-tex/rubber )
+       gtk? ( dev-ml/lablgtk[sourceview] )
+       emacs? ( >=app-editors/emacs-23.1:* )
+       html? ( dev-tex/hevea )
+       hypothesis-selection? ( dev-ml/ocamlgraph )
+       zarith? ( dev-ml/zarith )
+       zip? ( >=dev-ml/camlzip-1.07 )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"/${MYP}
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+
+REQUIRED_USE="html? ( doc )"
+
+src_configure() {
+       econf \
+               --disable-pvs-libs \
+               --disable-isabelle-libs \
+               --enable-verbose-make \
+               $(use_enable coq coq-libs) \
+               $(use_enable doc) \
+               $(use_enable emacs emacs-compilation) \
+               $(use_enable gtk ide) \
+               $(use_enable html html-doc) \
+               $(use_enable hypothesis-selection) \
+               $(use_enable ocamlopt native-code) \
+               $(use_enable profiling) \
+               $(use_enable zarith) \
+               $(use_enable zip)
+}
+
+src_compile() {
+       emake -j1
+       if use ocamlopt; then
+               emake byte
+       fi
+       use doc && emake doc
+}
+
+src_install() {
+       emake DESTDIR="${D}" -j1 install
+       emake DESTDIR="${D}" -j1 install-lib
+       emake DESTDIR="${D}" install_spark2014_dev
+       dosym ../why3server /usr/$(get_libdir)/why3/commands/why3server
+       einstalldocs
+       docompress -x /usr/share/doc/${PF}/examples
+       dodoc -r examples
+       if use doc; then
+               dodoc doc/manual.pdf
+               use html && dodoc -r doc/html
+       fi
+}

Reply via email to