From ef0fedb39c21a343a3f316726f272bad9005b22c Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 12 Mar 2025 01:49:51 +0000 Subject: gentoo auto-resync : 12:03:2025 - 01:49:51 --- sci-mathematics/Manifest.gz | Bin 19524 -> 19535 bytes sci-mathematics/coq/Manifest | 6 +- sci-mathematics/coq/coq-8.17.1-r1.ebuild | 123 +++++++++++++++++++++++++++ sci-mathematics/coq/coq-8.17.1.ebuild | 122 --------------------------- sci-mathematics/coq/coq-8.19.2-r1.ebuild | 123 +++++++++++++++++++++++++++ sci-mathematics/coq/coq-8.19.2.ebuild | 122 --------------------------- sci-mathematics/coq/coq-8.20.0-r1.ebuild | 140 +++++++++++++++++++++++++++++++ sci-mathematics/coq/coq-8.20.0.ebuild | 139 ------------------------------ sci-mathematics/z3/Manifest | 2 + sci-mathematics/z3/z3-4.14.1.ebuild | 107 +++++++++++++++++++++++ 10 files changed, 498 insertions(+), 386 deletions(-) create mode 100644 sci-mathematics/coq/coq-8.17.1-r1.ebuild delete mode 100644 sci-mathematics/coq/coq-8.17.1.ebuild create mode 100644 sci-mathematics/coq/coq-8.19.2-r1.ebuild delete mode 100644 sci-mathematics/coq/coq-8.19.2.ebuild create mode 100644 sci-mathematics/coq/coq-8.20.0-r1.ebuild delete mode 100644 sci-mathematics/coq/coq-8.20.0.ebuild create mode 100644 sci-mathematics/z3/z3-4.14.1.ebuild (limited to 'sci-mathematics') diff --git a/sci-mathematics/Manifest.gz b/sci-mathematics/Manifest.gz index 77ea32cc2641..8a09ae968050 100644 Binary files a/sci-mathematics/Manifest.gz and b/sci-mathematics/Manifest.gz differ diff --git a/sci-mathematics/coq/Manifest b/sci-mathematics/coq/Manifest index 22b204260021..fb3c7e19bfeb 100644 --- a/sci-mathematics/coq/Manifest +++ b/sci-mathematics/coq/Manifest @@ -1,7 +1,7 @@ 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 -EBUILD coq-8.17.1.ebuild 2491 BLAKE2B cc88e3c71a041b67cbb100551f78c168111e77c7d8b5e3219331b629af909cc80be4a3ef2651fd1705f37505e5df80de5ae0a802f3e8b33a7fa97cc9d1fbaf0e SHA512 b532cd7cecb6279f077a94ddc3dfb579243361f4d3eeb4690467fd3e79e7e8de43c98b9293264733345ca9e4716edd268e6ad68c344d24d3d46b5b9ea823280f -EBUILD coq-8.19.2.ebuild 2490 BLAKE2B 256cdcc9dd137a45d00f29b7d3f426231b3da7ea3b83a1f6fc6d7a488b74a3d960bbe64fe9086c9d966e286451f6a5db395d508ca269c5468db36349386b5a92 SHA512 ef1951b26bd3e181b7f496dcd4d083bd4d2a7a72a49b5d7001deaa3e2f148080ff3c40a3fbdfc5feff380ce41df5bb611e71bdd7ebd08a240e0cc963650adecf -EBUILD coq-8.20.0.ebuild 2902 BLAKE2B f733906f095c446825c9266a9dcd302325a9ea7e516362a7fd99cf6290797660a6a2e500e516544187c046f613076f5b970fd8b55aaf615312620929f7a0379f SHA512 d1d2bd27a3fe7b98bb8dae6bf4dbbeaad8721fa0f0193b23427520c10d6fb642026fd2a9f7f8293363ee9226bf4fa68ef70fdff188b691a8299cfe9f00f4e579 +EBUILD coq-8.17.1-r1.ebuild 2510 BLAKE2B 43729e740d83d7f3224f88f595134c62db87a0b6f867e03e47e84b45bc7a9c093477923871f07d4b0ad4c50bfab8af3938ee81f1283b932cd0519921c9e28693 SHA512 ca1e61e6397e41d967d367b7e7ab80ab488f2afda95617f1a4dde6f0b3caabcf01d4b71643801a70fc8f4de5eed244c837c6efdd8a15c584b38cbe7c4776ab15 +EBUILD coq-8.19.2-r1.ebuild 2509 BLAKE2B 815c629a0ba452e476ddd84899b5aef353a6ceed733d6042568c702422e869f54fd2c761be4623de91e0a5759e6e76d917216e62e46b423b588f6d0f7cef46a0 SHA512 53675281338147b59c9fde7bf3cb865d3c6cec4d1287ceaa1194968c96bccbd1587b0c8d0fc58cd3672bccba443ff00a4de613f43038cb55cd8d59ed85f756c6 +EBUILD coq-8.20.0-r1.ebuild 2921 BLAKE2B 1249a269c3d42d5357137cdaefbe60becdba7cb016ebc242e8174deed036e3bcc34d8271aaade0f42b90d8f551d5ce6862e8922cdc7e1e0c39f8e7462fd406b8 SHA512 0e69b9a618d48a95b993eaf416e310a56728ff569762f5e39d3c8cffc21d742b8cb5a421577980e35197a63fa43486ff7bd066972b69ff06030392298bf80afa MISC metadata.xml 1047 BLAKE2B 9f6defdf213139ee6549bc8f3b36ce5e8f53ea73bd5aad9262932cbaea7e90bd97c9ffc9dbbd03ac50097c5a6f19f5ddf00dd2b74cc6a5349faf1b597244fb67 SHA512 0f5bfbdd9ffd6f64379e697ed7cf90c2d9257cd1815e520aa14235f1cb399d20fc863221a0cae803cc88e5975be964b9debc3d750a6378ea157146f2e567c5dc diff --git a/sci-mathematics/coq/coq-8.17.1-r1.ebuild b/sci-mathematics/coq/coq-8.17.1-r1.ebuild new file mode 100644 index 000000000000..0376c24fc404 --- /dev/null +++ b/sci-mathematics/coq/coq-8.17.1-r1.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PV="${PV/_p/pl}" +MY_P="${PN}-${MY_PV}" + +inherit check-reqs desktop dune edo + +DESCRIPTION="Proof assistant written in O'Caml" +HOMEPAGE="http://coq.inria.fr/ + https://github.com/coq/coq/" +SRC_URI="https://github.com/coq/coq/archive/V${MY_PV}.tar.gz + -> ${P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-2.1" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="debug doc gui +ocamlopt test" + +# TODO: Lots of failing tests. Maybe investigate later. +# RESTRICT="!test? ( test )" +RESTRICT="test" + +RDEPEND=" + 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?] + ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-ml/findlib + doc? ( + >=dev-java/antlr-4.7:4 + dev-python/antlr4-python3-runtime + dev-python/beautifulsoup4 + dev-python/pexpect + dev-python/sphinx-rtd-theme + dev-python/sphinxcontrib-bibtex + dev-tex/latexmk + dev-texlive/texlive-fontsextra + dev-texlive/texlive-latexextra + dev-texlive/texlive-xetex + media-fonts/freefont + ) + test? ( + dev-ml/ounit2 + ) + /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/coq-8.17.1.ebuild b/sci-mathematics/coq/coq-8.17.1.ebuild deleted file mode 100644 index f9f1b9c3cb76..000000000000 --- a/sci-mathematics/coq/coq-8.17.1.ebuild +++ /dev/null @@ -1,122 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MY_PV="${PV/_p/pl}" -MY_P="${PN}-${MY_PV}" - -inherit check-reqs desktop dune edo - -DESCRIPTION="Proof assistant written in O'Caml" -HOMEPAGE="http://coq.inria.fr/ - https://github.com/coq/coq/" -SRC_URI="https://github.com/coq/coq/archive/V${MY_PV}.tar.gz - -> ${P}.tar.gz" -S="${WORKDIR}/${MY_P}" - -LICENSE="LGPL-2.1" -SLOT="0/${PV}" -KEYWORDS="~amd64 ~arm64 ~x86" -IUSE="debug doc gui +ocamlopt test" - -# TODO: Lots of failing tests. Maybe investigate later. -# RESTRICT="!test? ( test )" -RESTRICT="test" - -RDEPEND=" - 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?] - ) -" -DEPEND=" - ${RDEPEND} -" -BDEPEND=" - dev-ml/findlib - doc? ( - >=dev-java/antlr-4.7:4 - dev-python/antlr4-python3-runtime - dev-python/beautifulsoup4 - dev-python/pexpect - dev-python/sphinx-rtd-theme - dev-python/sphinxcontrib-bibtex - dev-tex/latexmk - dev-texlive/texlive-fontsextra - dev-texlive/texlive-latexextra - dev-texlive/texlive-xetex - media-fonts/freefont - ) - test? ( - dev-ml/ounit2 - ) -" - -CHECKREQS_DISK_BUILD="2G" - -DOCS=( CODE_OF_CONDUCT.md CONTRIBUTING.md CREDITS INSTALL.md README.md ) -DUNE_PACKAGES=() - -src_prepare() { - # Remove failing tests. bug #904186 - rm -r test-suite/coq-makefile/timing || die - - default -} - -src_configure() { - export CAML_LD_LIBRARY_PATH="${S}/kernel/byterun/" - - DUNE_PACKAGES=( - coq-core - coq-stdlib - coqide-server - coq - ) - use gui && DUNE_PACKAGES+=( coqide ) - - emake clean - - local -a myconf=( - -prefix /usr - -libdir "/usr/$(get_libdir)/coq" - -mandir /usr/share/man - -docdir "/usr/share/doc/${PF}" - -datadir /usr/share/coq - -configdir "/etc/xdg/${PN}" - -native-compiler "$(usex ocamlopt yes no)" - ) - use debug && myconf+=( -debug ) - edo sh ./configure "${myconf[@]}" -} - -src_compile() { - emake DUNEOPT="--display=short --profile release" VERBOSE=1 dunestrap - - dune-compile "${DUNE_PACKAGES[@]}" - - use doc && emake refman-html -} - -src_install() { - dune-install "${DUNE_PACKAGES[@]}" - - if use gui ; then - make_desktop_entry coqide "Coq IDE" "${EPREFIX}/usr/share/coq/coq.png" - fi - - local ocamlc_where - ocamlc_where="$(ocamlc -where)" - - # Dune installs into /usr//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/coq-8.19.2-r1.ebuild b/sci-mathematics/coq/coq-8.19.2-r1.ebuild new file mode 100644 index 000000000000..9613fc3a4f84 --- /dev/null +++ b/sci-mathematics/coq/coq-8.19.2-r1.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MY_PV="${PV/_p/pl}" +MY_P="${PN}-${MY_PV}" + +inherit check-reqs desktop dune edo + +DESCRIPTION="Proof assistant written in O'Caml" +HOMEPAGE="http://coq.inria.fr/ + https://github.com/coq/coq/" +SRC_URI="https://github.com/coq/coq/archive/V${MY_PV}.tar.gz + -> ${P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +LICENSE="LGPL-2.1" +SLOT="0/${PV}" +KEYWORDS="amd64 ~arm64 ~x86" +IUSE="debug doc gui +ocamlopt test" + +# TODO: Lots of failing tests. Maybe investigate later. +# RESTRICT="!test? ( test )" +RESTRICT="test" + +RDEPEND=" + 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?] + ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-ml/findlib + doc? ( + >=dev-java/antlr-4.7:4 + dev-python/antlr4-python3-runtime + dev-python/beautifulsoup4 + dev-python/pexpect + dev-python/sphinx-rtd-theme + dev-python/sphinxcontrib-bibtex + dev-tex/latexmk + dev-texlive/texlive-fontsextra + dev-texlive/texlive-latexextra + dev-texlive/texlive-xetex + media-fonts/freefont + ) + test? ( + dev-ml/ounit2 + ) + /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/coq-8.19.2.ebuild b/sci-mathematics/coq/coq-8.19.2.ebuild deleted file mode 100644 index b18c93f1bb56..000000000000 --- a/sci-mathematics/coq/coq-8.19.2.ebuild +++ /dev/null @@ -1,122 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MY_PV="${PV/_p/pl}" -MY_P="${PN}-${MY_PV}" - -inherit check-reqs desktop dune edo - -DESCRIPTION="Proof assistant written in O'Caml" -HOMEPAGE="http://coq.inria.fr/ - https://github.com/coq/coq/" -SRC_URI="https://github.com/coq/coq/archive/V${MY_PV}.tar.gz - -> ${P}.tar.gz" -S="${WORKDIR}/${MY_P}" - -LICENSE="LGPL-2.1" -SLOT="0/${PV}" -KEYWORDS="amd64 ~arm64 ~x86" -IUSE="debug doc gui +ocamlopt test" - -# TODO: Lots of failing tests. Maybe investigate later. -# RESTRICT="!test? ( test )" -RESTRICT="test" - -RDEPEND=" - 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?] - ) -" -DEPEND=" - ${RDEPEND} -" -BDEPEND=" - dev-ml/findlib - doc? ( - >=dev-java/antlr-4.7:4 - dev-python/antlr4-python3-runtime - dev-python/beautifulsoup4 - dev-python/pexpect - dev-python/sphinx-rtd-theme - dev-python/sphinxcontrib-bibtex - dev-tex/latexmk - dev-texlive/texlive-fontsextra - dev-texlive/texlive-latexextra - dev-texlive/texlive-xetex - media-fonts/freefont - ) - test? ( - dev-ml/ounit2 - ) -" - -CHECKREQS_DISK_BUILD="2G" - -DOCS=( CODE_OF_CONDUCT.md CONTRIBUTING.md CREDITS INSTALL.md README.md ) -DUNE_PACKAGES=() - -src_prepare() { - # Remove failing tests. bug #904186 - rm -r test-suite/coq-makefile/timing || die - - default -} - -src_configure() { - export CAML_LD_LIBRARY_PATH="${S}/kernel/byterun/" - - DUNE_PACKAGES=( - coq-core - coq-stdlib - coqide-server - coq - ) - use gui && DUNE_PACKAGES+=( coqide ) - - emake clean - - local -a myconf=( - -prefix /usr - -libdir "/usr/$(get_libdir)/coq" - -mandir /usr/share/man - -docdir "/usr/share/doc/${PF}" - -datadir /usr/share/coq - -configdir "/etc/xdg/${PN}" - -native-compiler "$(usex ocamlopt yes no)" - ) - use debug && myconf+=( -debug ) - edo sh ./configure "${myconf[@]}" -} - -src_compile() { - emake DUNEOPT="--display=short --profile release" VERBOSE=1 dunestrap - - dune-compile "${DUNE_PACKAGES[@]}" - - use doc && emake refman-html -} - -src_install() { - dune-install "${DUNE_PACKAGES[@]}" - - if use gui ; then - make_desktop_entry coqide "Coq IDE" "${EPREFIX}/usr/share/coq/coq.png" - fi - - local ocamlc_where - ocamlc_where="$(ocamlc -where)" - - # Dune installs into /usr//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/coq-8.20.0-r1.ebuild b/sci-mathematics/coq/coq-8.20.0-r1.ebuild new file mode 100644 index 000000000000..1c69a8de9461 --- /dev/null +++ b/sci-mathematics/coq/coq-8.20.0-r1.ebuild @@ -0,0 +1,140 @@ +# 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="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.git" +else + SRC_URI="https://github.com/coq/coq/archive/V${PV}.tar.gz + -> ${P}.tar.gz" + + KEYWORDS="amd64 ~arm64 ~x86" +fi + +LICENSE="LGPL-2.1" +SLOT="0/${PV}" +IUSE="debug doc gui +ocamlopt test" + +# TODO: Lots of failing tests. Maybe investigate later. +# RESTRICT="!test? ( test )" +RESTRICT="test" + +RDEPEND=" + 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?] + ) +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + dev-ml/findlib + doc? ( + >=dev-java/antlr-4.7:4 + dev-python/antlr4-python3-runtime + dev-python/beautifulsoup4 + dev-python/pexpect + dev-python/sphinx-rtd-theme + dev-python/sphinxcontrib-bibtex + dev-tex/latexmk + dev-texlive/texlive-fontsextra + dev-texlive/texlive-latexextra + dev-texlive/texlive-xetex + media-fonts/freefont + ) + test? ( + dev-ml/ounit2 + ) + /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/coq-8.20.0.ebuild b/sci-mathematics/coq/coq-8.20.0.ebuild deleted file mode 100644 index 67166c74be15..000000000000 --- a/sci-mathematics/coq/coq-8.20.0.ebuild +++ /dev/null @@ -1,139 +0,0 @@ -# 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="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.git" -else - SRC_URI="https://github.com/coq/coq/archive/V${PV}.tar.gz - -> ${P}.tar.gz" - - KEYWORDS="amd64 ~arm64 ~x86" -fi - -LICENSE="LGPL-2.1" -SLOT="0/${PV}" -IUSE="debug doc gui +ocamlopt test" - -# TODO: Lots of failing tests. Maybe investigate later. -# RESTRICT="!test? ( test )" -RESTRICT="test" - -RDEPEND=" - 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?] - ) -" -DEPEND=" - ${RDEPEND} -" -BDEPEND=" - dev-ml/findlib - doc? ( - >=dev-java/antlr-4.7:4 - dev-python/antlr4-python3-runtime - dev-python/beautifulsoup4 - dev-python/pexpect - dev-python/sphinx-rtd-theme - dev-python/sphinxcontrib-bibtex - dev-tex/latexmk - dev-texlive/texlive-fontsextra - dev-texlive/texlive-latexextra - dev-texlive/texlive-xetex - media-fonts/freefont - ) - test? ( - dev-ml/ounit2 - ) -" - -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-per-line - 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() { - export CAML_LD_LIBRARY_PATH="${S}/kernel/byterun/" - - DUNE_PACKAGES=( - coq-core - coq-stdlib - coqide-server - coq - ) - use gui && DUNE_PACKAGES+=( coqide ) - - emake clean - - local -a myconf=( - -prefix /usr - -libdir "/usr/$(get_libdir)/coq" - -mandir /usr/share/man - -docdir "/usr/share/doc/${PF}" - -datadir /usr/share/coq - -configdir "/etc/xdg/${PN}" - -native-compiler "$(usex ocamlopt yes no)" - ) - use debug && myconf+=( -debug ) - edo sh ./configure "${myconf[@]}" -} - -src_compile() { - emake DUNEOPT="--display=short --profile release" VERBOSE="1" dunestrap - - dune-compile "${DUNE_PACKAGES[@]}" - - use doc && emake refman-html -} - -src_install() { - dune-install "${DUNE_PACKAGES[@]}" - - if use gui ; then - make_desktop_entry coqide "Coq IDE" "${EPREFIX}/usr/share/coq/coq.png" - fi - - local ocamlc_where="$(ocamlc -where)" - - # Dune installs into /usr//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/z3/Manifest b/sci-mathematics/z3/Manifest index 3d8f76999ea9..9b3153e21635 100644 --- a/sci-mathematics/z3/Manifest +++ b/sci-mathematics/z3/Manifest @@ -1,3 +1,5 @@ DIST z3-4.14.0.tar.gz 5841848 BLAKE2B fc56ab4538a8fa07fd7ea34fdd403a13941f93fee500e90686cfc827b5094d83662ad02fda0c9ff146cb425603a3d65aadc1c006d26dd40c8cbd91462381670a SHA512 5a3de3207b5c05f77f8369d7fdbb9e13a7db850f8c3edaa8f2adfcf58b186d34409e4a56d44646f853027850941135be5042e67a53ddf3302dc3b645c1ab3db4 +DIST z3-4.14.1.tar.gz 5844214 BLAKE2B a9589acaebb46f37c66efe5120c2470b11433b21043103b9584f1cbc129316149c28ffa5328daad16b2ebdb5aa47de9318e892e91f76585f5e12a1828fc5feab SHA512 5850821aa93908c952663bfdcae291a9e8cd00082e0fa6d3ea4ffaebf076116d524660e22934e339da4972f43510adcccba1816be0a3e6bb60ab2c380f5a58ab EBUILD z3-4.14.0.ebuild 2606 BLAKE2B 4d1558de478d4cde52c6202ce2dabb22645a71cee0782daf78bf36ca879b8bd539f9a95a9cbbfa9b7a0b0b08d780239bba50b5eb83c876071d5a993fb30c599b SHA512 210add2e050e469860ced42ddd316061646fcc8e9cba78cfc1ef0b6c9ad4ca9cc82ecee73a291c0fa290ed879b5b09c81b3b61afaf90dd2431700d8a7944a337 +EBUILD z3-4.14.1.ebuild 2612 BLAKE2B 2199cfdeaa07a1dc9a22a3a07bdb77645b65632b70a520b966d74ba56beb8499b50f95b6608b48b3cea2f548186217c46fc3d9394980904b875fb01837fd4878 SHA512 88bdeb3290537b666e5453de807e466a6020f7f5dc76fb804b9b635006d1e9300980ef2405377b6b4a90152ee5720bdf68d12d092ae2272932ed2f1fe2df840b MISC metadata.xml 1718 BLAKE2B a94783909c12aa7dd2d5fd1f9d2fc75e20ca91b6abffd6dc020f602e57ef698f7184acaf14def4b6e21bb659e595abd44956ba37a679134d11b523103b0461df SHA512 ed375986a8010a7ae1eadab3107342126194a5513cbb22ce2064ffeff42c7184ea94f4f69017204c73bd61236847475cd1f0d8b3ba369236b26630dc8b2f46a2 diff --git a/sci-mathematics/z3/z3-4.14.1.ebuild b/sci-mathematics/z3/z3-4.14.1.ebuild new file mode 100644 index 000000000000..759a8f720476 --- /dev/null +++ b/sci-mathematics/z3/z3-4.14.1.ebuild @@ -0,0 +1,107 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) + +inherit cmake-multilib java-pkg-opt-2 python-single-r1 + +DESCRIPTION="An efficient theorem prover" +HOMEPAGE="https://github.com/Z3Prover/z3/" +SRC_URI="https://github.com/Z3Prover/z3/archive/${P}.tar.gz" +S=${WORKDIR}/z3-${P} + +LICENSE="MIT" +SLOT="0/$(ver_cut 1-2)" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="doc examples gmp isabelle java python" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + gmp? ( dev-libs/gmp:0=[cxx(+),${MULTILIB_USEDEP}] ) +" +DEPEND=" + ${RDEPEND} + java? ( >=virtual/jdk-1.8 ) +" +BDEPEND=" + doc? ( app-text/doxygen[dot] ) +" + +CMAKE_BUILD_TYPE=RelWithDebInfo + +src_prepare() { + cmake_src_prepare + java-pkg-opt-2_src_prepare +} + +multilib_src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_DOCDIR="${EPREFIX}/usr/share/doc/${PF}" + -DZ3_USE_LIB_GMP=$(usex gmp) + -DZ3_ENABLE_EXAMPLE_TARGETS=OFF + -DZ3_BUILD_DOCUMENTATION=$(multilib_native_usex doc) + -DZ3_BUILD_PYTHON_BINDINGS=$(multilib_native_usex python) + -DZ3_BUILD_JAVA_BINDINGS=$(multilib_native_usex java) + -DZ3_INCLUDE_GIT_DESCRIBE=OFF + -DZ3_INCLUDE_GIT_HASH=OFF + ) + + multilib_is_native_abi && use java && mycmakeargs+=( -DJAVA_HOME="$(java-config -g JAVA_HOME )" ) + + cmake_src_configure +} + +multilib_src_test() { + cmake_build test-z3 + set -- "${BUILD_DIR}"/test-z3 /a + echo "${@}" >&2 + "${@}" || die +} + +multilib_src_install_all() { + dodoc README.md + use examples && dodoc -r examples + use python && python_optimize + + if use isabelle; then + insinto /usr/share/Isabelle/contrib/${P}/etc + newins - settings <<-EOF + Z3_COMPONENT="\$COMPONENT" + Z3_HOME="${EPREFIX}/usr/bin" + Z3_SOLVER="${EPREFIX}/usr/bin/z3" + Z3_REMOTE_SOLVER="z3" + Z3_VERSION="${PV}" + Z3_INSTALLED="yes" + Z3_NON_COMMERCIAL="yes" + EOF + fi +} + +pkg_postinst() { + if use isabelle; then + if [[ -f ${ROOT}/etc/isabelle/components ]]; then + sed -e "/contrib\/${PN}-[0-9.]*/d" \ + -i "${ROOT}/etc/isabelle/components" || die + cat <<-EOF >> "${ROOT}/etc/isabelle/components" || die + contrib/${P} + EOF + fi + fi +} + +pkg_postrm() { + if use isabelle; then + if [[ ! ${REPLACING_VERSIONS} ]]; then + if [[ -f "${ROOT}/etc/isabelle/components" ]]; then + # Note: this sed should only match the version of this ebuild + # Which is what we want as we do not want to remove the line + # of a new Isabelle component being installed during an upgrade. + sed -e "/contrib\/${P}/d" \ + -i "${ROOT}/etc/isabelle/components" || die + fi + fi + fi +} -- cgit v1.2.3