From 34c7618e76a7aa90a3f00a1311d105964bf281b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Sun, 16 Mar 2025 21:43:13 +0100 Subject: [PATCH] sci-mathematics/coq: bump to 9.0.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- sci-mathematics/coq/Manifest | 1 + sci-mathematics/coq/coq-9.0.0.ebuild | 143 +++++++++++++++++++++++++++ sci-mathematics/coq/metadata.xml | 5 + 3 files changed, 149 insertions(+) create mode 100644 sci-mathematics/coq/coq-9.0.0.ebuild diff --git a/sci-mathematics/coq/Manifest b/sci-mathematics/coq/Manifest index bb1e12a99dfd9..aceccdbdf532d 100644 --- a/sci-mathematics/coq/Manifest +++ b/sci-mathematics/coq/Manifest @@ -1,3 +1,4 @@ DIST coq-8.17.1.tar.gz 7506035 BLAKE2B 29b5b11666185ec293f50264f5a8ad66433c3ce05d74128b524f6fc3c6810551fe76d11d6f9db7d3741b829ac8bacb66948aad522d0cd2c487692c3df8b563ff SHA512 9a35311acec2a806730b94ac7dceabc88837f235c52a14c026827d9b89433bd7fa9555a9fc6829aa49edfedb24c8bbaf1411ebf463b74a50aeb17cba47745b6b DIST coq-8.19.2.tar.gz 7678311 BLAKE2B 5f9617fbe0127b0c8357c63f331ba3e9fb5a931be9a4a8e8de2e27820a0d986bf99ed9a512740a0f721c742504225ae56e240af893510aa0e449931499d10aab SHA512 91bc81530fa4f6498961583ad51eac5001f139881788b88e360a866ad8e2a6e2c5bce86d1a580ab4cd4782bf49d48318767df82471ce33ba3ac143e5569ad33c DIST coq-8.20.0.tar.gz 7839432 BLAKE2B 9b489db0cc6874b0a629f3bdb4b503201005ec95a3375441538cd7e51d371a39561b9d0ab23ac485652782fdc7ae8d90c97ca1ff4d9a85fb8727a39ed4a6f48c SHA512 1a7eac6e2f58724a3f9d68bbb321e4cfe963ba1a5551b9b011db4b3f559c79be433d810ff262593d753770ee41ea68fbd6a60daa1e2319ea00dff64c8851d70b +DIST coq-9.0.0.tar.gz 6305764 BLAKE2B 01e84c75f55f1dc6ff7706bc3e9454da268bcee88b0123334644aefcfa102b349d5196d0b215d6acae65e5066d187e17d74d6768d3790c78f1534972cebf06fb SHA512 f4f76a6a178e421c99ee7a331a2fd97a06e9c5d0168d7e60c44e3820d8e1a124370ea104ad90c7f87a9a1e9d87b2d0d7d2d387c998feeaed4a75ed04e176a4be diff --git a/sci-mathematics/coq/coq-9.0.0.ebuild b/sci-mathematics/coq/coq-9.0.0.ebuild new file mode 100644 index 0000000000000..44f4f9f8cea12 --- /dev/null +++ b/sci-mathematics/coq/coq-9.0.0.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit check-reqs desktop dune edo + +DESCRIPTION="Coq/Rocq is a proof assistant written in O'Caml" +HOMEPAGE="https://coq.inria.fr/ + https://github.com/coq/coq/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/coq/coq" +else + SRC_URI="https://github.com/coq/coq/archive/V${PV}.tar.gz + -> ${P}.tar.gz" + + KEYWORDS="~amd64" +fi + +LICENSE="LGPL-2.1" +SLOT="0/${PV}" +IUSE="debug gui native-compiler +ocamlopt test" + +# TODO: Lots of failing tests. +# RESTRICT="!test? ( test )" +RESTRICT="test" + +RDEPEND=" + dev-ml/camlzip:= + dev-ml/num:= + dev-ml/zarith:= + gui? ( + >=dev-ml/lablgtk-3.1.2:3=[sourceview,ocamlopt?] + >=dev-ml/lablgtk-sourceview-3.1.2:3=[ocamlopt?] + ) + native-compiler? ( + /ocaml/ but + # Coq wants /usr// ; symlink those directories + local sym="" + for sym in "${DUNE_PACKAGES[@]}" ; do + dosym "${ocamlc_where}/${sym}" "/usr/$(get_libdir)/${sym}" + done + + einstalldocs +} diff --git a/sci-mathematics/coq/metadata.xml b/sci-mathematics/coq/metadata.xml index bb29aa903edbb..3e812d4a672de 100644 --- a/sci-mathematics/coq/metadata.xml +++ b/sci-mathematics/coq/metadata.xml @@ -25,4 +25,9 @@ https://github.com/coq/coq/issues/ coq/coq + + + Enable "native_compute" and compile the Coq Standard Library + +