commit: 7e9cfecc751e364ca22a82c51dae344563e5a051 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Tue Feb 17 21:12:56 2026 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Tue Feb 17 22:08:15 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e9cfecc
sci-mathematics/coq: bump to 9.1.1 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> sci-mathematics/coq/Manifest | 1 + sci-mathematics/coq/coq-9.1.1.ebuild | 143 +++++++++++++++++++++++++++++++++++ 2 files changed, 144 insertions(+) diff --git a/sci-mathematics/coq/Manifest b/sci-mathematics/coq/Manifest index 4b6ee2debd73..3bfa9687da78 100644 --- a/sci-mathematics/coq/Manifest +++ b/sci-mathematics/coq/Manifest @@ -3,3 +3,4 @@ DIST coq-8.19.2.tar.gz 7678311 BLAKE2B 5f9617fbe0127b0c8357c63f331ba3e9fb5a931be DIST coq-8.20.0.tar.gz 7839432 BLAKE2B 9b489db0cc6874b0a629f3bdb4b503201005ec95a3375441538cd7e51d371a39561b9d0ab23ac485652782fdc7ae8d90c97ca1ff4d9a85fb8727a39ed4a6f48c SHA512 1a7eac6e2f58724a3f9d68bbb321e4cfe963ba1a5551b9b011db4b3f559c79be433d810ff262593d753770ee41ea68fbd6a60daa1e2319ea00dff64c8851d70b DIST coq-9.0.0.tar.gz 6305764 BLAKE2B 01e84c75f55f1dc6ff7706bc3e9454da268bcee88b0123334644aefcfa102b349d5196d0b215d6acae65e5066d187e17d74d6768d3790c78f1534972cebf06fb SHA512 f4f76a6a178e421c99ee7a331a2fd97a06e9c5d0168d7e60c44e3820d8e1a124370ea104ad90c7f87a9a1e9d87b2d0d7d2d387c998feeaed4a75ed04e176a4be DIST coq-9.1.0.tar.gz 6394996 BLAKE2B 3dc0cc1584f3c042324ec85eb4b5afd236a9f8391b059d6fc163dea846496bade7e7d2894795d348d44882409d30cb70a7120b47c0b3a1a7e1dc18c048a6f30e SHA512 83b5d01e24089e6a377948d811a3fa81d0b17466c18e6011059c9d1bca47624b210c07f590236466711080a2ad2feb55b7b7fd57bb8798a08b11ba729c820d97 +DIST coq-9.1.1.tar.gz 6395021 BLAKE2B 392ea63d6dfbc1404a04fe37fcb26f21321c50bdccf8d626b490d490607ec6c6344a1b0a81d87805ef2b3ded54ab2af6cb4289ea2d8153afe6e79ae8d9125ba6 SHA512 18ef7eff168711ad739a6ced49ae3eda1a3ecbc50a0708488ff66e16be44b5208b3db52e9de9b1eff06a977a6ed9d9e2c46d510c98f497d124e6b5cc7c612497 diff --git a/sci-mathematics/coq/coq-9.1.1.ebuild b/sci-mathematics/coq/coq-9.1.1.ebuild new file mode 100644 index 000000000000..358e1b41e9e2 --- /dev/null +++ b/sci-mathematics/coq/coq-9.1.1.ebuild @@ -0,0 +1,143 @@ +# Copyright 1999-2026 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://rocq-prover.org + https://github.com/rocq-prover/rocq/" + +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" + S="${WORKDIR}/rocq-${PV}" + + KEYWORDS="~amd64 ~arm64" +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/yojson:= + dev-ml/zarith:= + gui? ( + >=dev-ml/lablgtk-3.1.2:3=[sourceview,ocamlopt?] + >=dev-ml/lablgtk-sourceview-3.1.2:3=[ocamlopt?] + ) + native-compiler? ( + <dev-lang/ocaml-5:= + ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-ml/findlib + test? ( + dev-ml/ounit2 + ) +" +PDEPEND=" + sci-mathematics/coq-stdlib +" + +CHECKREQS_DISK_BUILD="2G" + +DOCS=( CODE_OF_CONDUCT.md CONTRIBUTING.md CREDITS INSTALL.md README.md ) +DUNE_PACKAGES=() + +src_prepare() { + # Remove bad tests (recursive). + local -a bad_tests=( + coq-makefile/timing-aggregate + coq-makefile/timing-error + coq-makefile/timing-per-file + coq-makefile/timing-template + ) + local bad_test="" + for bad_test in "${bad_tests[@]}" ; do + if [[ -e "test-suite/${bad_test}" ]] ; then + rm -r "test-suite/${bad_test}" || die "failed to remove test ${bad_test}" + else + ewarn "Test file ${bad_test} does not exist" + fi + done + + default +} + +src_configure() { + local -x CAML_LD_LIBRARY_PATH="${S}/kernel/byterun/" + + DUNE_PACKAGES=( + coq-core + rocq-core + rocq-devtools + rocq-runtime + ) + + if use gui ; then + DUNE_PACKAGES+=( + coqide-server + rocqide + ) + fi + + local -a myconf=( + -prefix /usr + -libdir "/usr/$(get_libdir)/ocaml/coq" + -mandir /usr/share/man + -docdir "/usr/share/doc/${PF}" + -datadir /usr/share/coq + -configdir "/etc/xdg/${PN}" + -native-compiler "$(usex native-compiler yes no)" + ) + + if use debug ; then + myconf+=( + -debug + ) + fi + + emake clean + edo sh ./configure "${myconf[@]}" +} + +src_compile() { + emake DUNEOPT="--display=short --profile release" VERBOSE="1" dunestrap + + dune-compile "${DUNE_PACKAGES[@]}" +} + +src_install() { + dune-install "${DUNE_PACKAGES[@]}" + + if use gui ; then + make_desktop_entry rocqide "Coq IDE" "${EPREFIX}/usr/share/coq/coq.png" + fi + + local ocamlc_where="$(ocamlc -where)" + + # Dune installs into /usr/<libdir>/ocaml/<coq> but + # Coq wants /usr/<libdir>/<coq> ; symlink those directories + local sym="" + for sym in "${DUNE_PACKAGES[@]}" ; do + dosym "${ocamlc_where}/${sym}" "/usr/$(get_libdir)/${sym}" + done + + einstalldocs +}
