mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
sci-mathematics/why3-for-spark: Adding why3 for spark
Package-Manager: Portage-2.3.8, Repoman-2.3.3
This commit is contained in:
@@ -0,0 +1 @@
|
||||
DIST why3-for-spark-gpl-2017-src.tar.gz 9248235 SHA256 7e7aee3912421847c416bc1f066ac342e811601c29d7b69e98e789a59a724d8e SHA512 8f444402f6c1744cd7c565117732935791b1ae7996a94314c40a66d125eae8a81f2257314246c94fd29d3cd16abcff6a50a152a1191a4aae39a2c8a8d7c3b9e1 WHIRLPOOL 256648567b3a220f762c7e30d0f90265fd10af21b66c3607b9072e81444b0a33dc971126232e11f3edc64eac2598fbd3ad428d063f2c9db8d247be2abe5be904
|
||||
@@ -0,0 +1,14 @@
|
||||
--- why3-for-spark-gpl-2017-src/src/gnat/gnat_config.ml.old 2017-10-18 09:07:03.118919785 +0200
|
||||
+++ why3-for-spark-gpl-2017-src/src/gnat/gnat_config.ml 2017-10-18 09:07:45.198216939 +0200
|
||||
@@ -12,10 +12,7 @@
|
||||
| Limit_Check of Gnat_expl.check
|
||||
| Limit_Line of Gnat_loc.loc
|
||||
|
||||
-let spark_prefix =
|
||||
- (Filename.dirname
|
||||
- (Filename.dirname (Filename.dirname
|
||||
- (Filename.dirname Sys.executable_name))))
|
||||
+let spark_prefix = "/usr"
|
||||
|
||||
let rec file_concat l =
|
||||
match l with
|
||||
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>sci-mathematics@gentoo.org</email>
|
||||
<name>Gentoo Mathematics Project</name>
|
||||
</maintainer>
|
||||
<longdescription>
|
||||
Why3 is a platform for deductive program verification. It provides
|
||||
a rich language for specification and programming, called WhyML,
|
||||
and relies on external theorem provers, both automated and interactive,
|
||||
to discharge verification conditions. Why3 comes with a standard
|
||||
library of logical theories (integer and real arithmetic, Boolean
|
||||
operations, sets and maps, etc.) and basic programming data structures
|
||||
(arrays, queues, hash tables, etc.). A user can write WhyML programs
|
||||
directly and get correct-by-construction OCaml programs through an
|
||||
automated extraction mechanism. WhyML is also used as an intermediate
|
||||
language for the verification of C, Java, or Ada programs.
|
||||
</longdescription>
|
||||
<use>
|
||||
<flag name="coq">Add <pkg>sci-mathematics/coq</pkg> support</flag>
|
||||
<flag name="html">Build HTML documentation</flag>
|
||||
<flag name="hypothesis-selection">Enable hypothesis selection</flag>
|
||||
<flag name="profiling">Enable profiling</flag>
|
||||
<flag name="zarith">Use <pkg>dev-ml/zarith</pkg></flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
||||
@@ -0,0 +1,74 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools
|
||||
|
||||
MYP=${PN}-gpl-${PV}-src
|
||||
|
||||
DESCRIPTION="Platform for deductive program verification"
|
||||
HOMEPAGE="http://why3.lri.fr/"
|
||||
SRC_URI="https//mirrors.cdn.adacore.com/art/591c45e2c7a447af2deed055
|
||||
-> ${MYP}.tar.gz"
|
||||
|
||||
LICENSE="GPL-3"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="coq doc emacs gtk html hypothesis-selection profiling zarith"
|
||||
|
||||
DEPEND=">=dev-lang/ocaml-4.02.3
|
||||
dev-ml/menhir
|
||||
coq? ( sci-mathematics/coq )
|
||||
doc? ( dev-tex/rubber )
|
||||
gtk? ( dev-ml/lablgtk[sourceview] )
|
||||
emacs? ( app-editors/emacs:* )
|
||||
html? ( dev-tex/hevea )
|
||||
hypothesis-selection? ( dev-ml/ocamlgraph )
|
||||
zarith? ( dev-ml/zarith )"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
S="${WORKDIR}"/${MYP}
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
|
||||
|
||||
REQUIRED_USE="html? ( doc )"
|
||||
|
||||
src_prepare() {
|
||||
mv configure.{in,ac} || die
|
||||
sed -i \
|
||||
-e "s:configure.in:configure.ac:g" \
|
||||
Makefile.in
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--disable-coq-tactic \
|
||||
--disable-pvs-libs \
|
||||
--disable-isabelle-libs \
|
||||
--disable-zip \
|
||||
$(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 profiling) \
|
||||
$(use_enable zarith)
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
use doc && emake doc
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
emake DESTDIR="${D}" install_spark2014_dev
|
||||
if use doc; then
|
||||
dodoc doc/manual.pdf
|
||||
use html && dodoc -r doc/html
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user