From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EBD481382C5 for ; Tue, 9 Feb 2021 17:49:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4512FE08DD; Tue, 9 Feb 2021 17:49:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1F4DCE08DD for ; Tue, 9 Feb 2021 17:49:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B896E340E2D for ; Tue, 9 Feb 2021 17:49:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6D651C3 for ; Tue, 9 Feb 2021 17:49:49 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1612892977.fb6c36404e813f6160eddede1e188cf643546e4c.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/why3-for-spark/, sci-mathematics/why3-for-spark/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/why3-for-spark/Manifest sci-mathematics/why3-for-spark/files/why3-for-spark-2020-bibtex.patch sci-mathematics/why3-for-spark/files/why3-for-spark-2020-flags.patch sci-mathematics/why3-for-spark/files/why3-for-spark-2020-gentoo.patch sci-mathematics/why3-for-spark/why3-for-spark-2020.ebuild X-VCS-Directories: sci-mathematics/why3-for-spark/files/ sci-mathematics/why3-for-spark/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: fb6c36404e813f6160eddede1e188cf643546e4c X-VCS-Branch: master Date: Tue, 9 Feb 2021 17:49:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4e9525e2-7705-4c5c-8dc0-c086fa510a06 X-Archives-Hash: 7fc12dd79908758ab4c4c55fd7df67a4 commit: fb6c36404e813f6160eddede1e188cf643546e4c Author: Alfredo Tupone gentoo org> AuthorDate: Tue Feb 9 17:49:37 2021 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Tue Feb 9 17:49:37 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb6c3640 sci-mathematics/why3-for-spark: version bump to 2020 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Alfredo Tupone gentoo.org> sci-mathematics/why3-for-spark/Manifest | 1 + .../files/why3-for-spark-2020-bibtex.patch | 11 ++ .../files/why3-for-spark-2020-flags.patch | 28 +++++ .../files/why3-for-spark-2020-gentoo.patch | 10 ++ .../why3-for-spark/why3-for-spark-2020.ebuild | 123 +++++++++++++++++++++ 5 files changed, 173 insertions(+) diff --git a/sci-mathematics/why3-for-spark/Manifest b/sci-mathematics/why3-for-spark/Manifest index e2f1ef56af6..470f4f0fce2 100644 --- a/sci-mathematics/why3-for-spark/Manifest +++ b/sci-mathematics/why3-for-spark/Manifest @@ -1,2 +1,3 @@ +DIST 8bb5801e17b8b23453262da69c981c091959eec7?filename=why3-2020-20200429-199EF-src.tar.gz 9739066 BLAKE2B c7c11a92d4926f90be9ffa94d74e65ad78423953b53ee617565ccfcea4a5a60b251367b0712c30d170ab717d5868f7d95d62694f38c3d2f52805a28a6522ab8a SHA512 61cd5509957230ff81186d2507b9749b182cdc44698f6658337ce294d210742e57164d25d7c0eb3eb5ea0c53f5f46dea099e6a0769fadcb709a5a8557ed3cae3 DIST why3-2019-20190517-197BB-src.tar.gz 9439414 BLAKE2B 68072064e8ee9152528c90afc948047a1f4d58b960ac05b276761fdca5ba1204100c75f33db7bb0ea1a8a646b734e62892ed41bd875b954354f52b8f9d498d4a SHA512 9169a4ff9ee994a19f9f04b689d1b9c679f5340bcd631d7d49b4c55064f505bd5a6ca8149077e5d24d36f5365f0cab58587094e86f352a9105fc46f10c0746ba DIST why3-for-spark-gpl-2018-src.tar.gz 7682767 BLAKE2B 0b0272ca4d5519ca402990b234d0847378bcd2a0949fea78ea10e355233a16aebe79b938cdf8e4daadabb909171cab83b9d6ccacf9f2dc1c0b57bb6da6fd1fe0 SHA512 fc798acf343484fd8e70f470a318753c9a0e9967ff579f20ec185bf3c2a75e7a4a556388fc86a378610ce4a467f3e722c6f610da34d4c33bc3d6b10551731f07 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 new file mode 100644 index 00000000000..bcc4762641b --- /dev/null +++ b/sci-mathematics/why3-for-spark/files/why3-for-spark-2020-bibtex.patch @@ -0,0 +1,11 @@ +--- a/doc/conf.py 2021-02-08 20:09:27.000629537 +0100 ++++ b/doc/conf.py 2021-02-08 20:10:04.653994573 +0100 +@@ -34,6 +34,8 @@ + 'why3' + ] + ++bibtex_bibfiles = ['manual.bib'] ++ + # Add any paths that contain templates here, relative to this directory. + templates_path = ['_templates'] + 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 new file mode 100644 index 00000000000..2e5247ac3fa --- /dev/null +++ b/sci-mathematics/why3-for-spark/files/why3-for-spark-2020-flags.patch @@ -0,0 +1,28 @@ +--- a/Makefile.in 2020-06-12 21:03:33.375534124 +0200 ++++ b/Makefile.in 2020-06-12 21:03:48.623283408 +0200 +@@ -121,7 +121,7 @@ + + WARNINGS = A-4-9-41-44-45-50-52@5@8@48 + +-FLAGS = -w $(WARNINGS) -safe-string -keep-locs -bin-annot -dtypes -g $(INCLUDES) ++FLAGS = -w $(WARNINGS) -safe-string -keep-locs -bin-annot -dtypes -g $(INCLUDES) -cclib "$(LDFLAGS)" -ccopt "$(CFLAGS)" + OFLAGS = $(FLAGS) + BFLAGS = $(FLAGS) + +@@ -664,13 +664,13 @@ + all: $(TOOLS) + + lib/why3server$(EXE): $(SERVER_O) +- $(CC) -Wall -o $@ $^ ++ $(CC) -Wall $(CFLAGS) -o $@ $^ $(LDFLAGS) + + lib/why3cpulimit$(EXE): $(CPULIM_O) +- $(CC) -Wall -o $@ $^ ++ $(CC) -Wall $(CFLAGS) -o $@ $^ $(LDFLAGS) + + %.o: %.c +- $(CC) -Wall -O -g -o $@ -c $< ++ $(CC) -Wall -O -g $(CFLAGS) -o $@ -c $< + + uninstall-bin:: + rm -f $(LIBDIR)/why3/why3server$(EXE) $(LIBDIR)/why3/why3cpulimit$(EXE) 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 new file mode 100644 index 00000000000..47daa3e6990 --- /dev/null +++ b/sci-mathematics/why3-for-spark/files/why3-for-spark-2020-gentoo.patch @@ -0,0 +1,10 @@ +--- a/Makefile.in 2020-05-27 21:19:08.736241502 +0200 ++++ b/Makefile.in 2020-05-27 21:19:14.042156954 +0200 +@@ -50,7 +50,6 @@ + OCAMLINSTALLLIB = $(DESTDIR)@OCAMLINSTALLLIB@ + OCAMLBEST = @OCAMLBEST@ + OCAMLVERSION = @OCAMLVERSION@ +-CC = gcc + COQC = @COQC@ + COQDEP = @COQDEP@ + FRAMAC_LIBDIR = $(DESTDIR)@FRAMAC_LIBDIR@ diff --git a/sci-mathematics/why3-for-spark/why3-for-spark-2020.ebuild b/sci-mathematics/why3-for-spark/why3-for-spark-2020.ebuild new file mode 100644 index 00000000000..a7fe3230408 --- /dev/null +++ b/sci-mathematics/why3-for-spark/why3-for-spark-2020.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit autotools + +MYP=why3-${PV}-20200429-199EF-src + +DESCRIPTION="Platform for deductive program verification" +HOMEPAGE="http://why3.lri.fr/" +SRC_URI="https://community.download.adacore.com/v1/8bb5801e17b8b23453262da69c981c091959eec7?filename=${MYP}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="coq doc emacs gtk html +ocamlopt zarith zip" +RESTRICT="strip" + +DEPEND=">=dev-lang/ocaml-4.09.0:=[ocamlopt=] + >=dev-ml/ocamlbuild-0.14.0 + dev-ml/menhir:= + dev-ml/num:= + dev-ml/yojson:= + coq? ( + >=sci-mathematics/coq-8.9.1 + =dev-ml/lablgtk-2.18.8:=[sourceview] ) + emacs? ( >=app-editors/emacs-23.1:* ) + html? ( dev-tex/hevea:= ) + zarith? ( dev-ml/zarith:= ) + zip? ( >=dev-ml/camlzip-1.07:= )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/${MYP} + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-flags.patch + "${FILESDIR}"/${P}-bibtex.patch +) + +QA_FLAGS_IGNORED=( + /usr/lib64/why3/commands/why3shell + /usr/lib64/why3/commands/why3extract + /usr/lib64/why3/commands/why3execute + /usr/lib64/why3/commands/why3prove + /usr/lib64/why3/commands/why3wc + /usr/lib64/why3/commands/why3doc + /usr/lib64/why3/commands/why3replay + /usr/lib64/why3/commands/why3webserver + /usr/lib64/why3/plugins/'.*'.cmxs + /usr/lib64/ocaml/why3/why3.cmxs + /usr/lib64/ocaml/why3/why3extract.cmxs + /usr/bin/why3 + /usr/bin/why3config + /usr/bin/why3session + /usr/bin/gnat_server + /usr/bin/gnatwhy3 + /usr/bin/why3realize +) + +REQUIRED_USE="html? ( doc )" + +src_prepare() { + find examples -name \*gz | xargs gunzip + default + eautoreconf +} + +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-pdf) \ + $(use_enable ocamlopt native-code) \ + $(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 + local cmdPath=/usr/$(get_libdir)/why3/commands + dosym ../why3server ${cmdPath}/why3server + # Remove duplicated files + for filename in config ide realize server session; do + if [[ -e "${D}"${cmdPath}/why3${filename} ]]; then + rm "${D}"${cmdPath}/why3${filename} + dosym ../../../bin/why3${filename} ${cmdPath}/why3${filename} + fi + done + rm "${D}"/usr/$(get_libdir)/why3/why3cpulimit + dosym ../../bin/why3cpulimit /usr/$(get_libdir)/why3/why3cpulimit + + einstalldocs + docompress -x /usr/share/doc/${PF}/examples + dodoc -r examples + if use doc; then + use html && dodoc -r doc/html + fi +}