commit: 64659d67a4b400909c6ccd6862351e95f52e06a8 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> AuthorDate: Thu Feb 6 12:24:19 2025 +0000 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> CommitDate: Thu Feb 6 12:26:29 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64659d67
dev-lang/dafny-bin: bump to 4.10.0 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> dev-lang/dafny-bin/Manifest | 1 + dev-lang/dafny-bin/dafny-bin-4.10.0.ebuild | 56 ++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/dev-lang/dafny-bin/Manifest b/dev-lang/dafny-bin/Manifest index 395c0f318378..f0abe75712ad 100644 --- a/dev-lang/dafny-bin/Manifest +++ b/dev-lang/dafny-bin/Manifest @@ -1 +1,2 @@ +DIST dafny-4.10.0-x64-ubuntu-20.04.zip 61352501 BLAKE2B 68227a1566e49a52b9159ab0d7ceaa4369fe0a2a18d97495b865b5d25507399a1e9753244fba19035231e4e0dd130881b0854479944479b8bed32c959c38a4ed SHA512 51929386f27841b4302b1e00865986b4aeea6205852ce7c90398a71a820dd334d3f71cf26255daf3a9a75fb4cc1bb84491165c77fd10ffaa35a267942294fd4b DIST dafny-4.9.1-x64-ubuntu-20.04.zip 60815385 BLAKE2B 76e4b7cf6bfea6f97bb04b77c034cf62732cc9fcadf1893f4783cf9e44cffc81f4067bbc001474b3b0a92f699b329f87ec77a2e34747a945d7786a33e6fff5b6 SHA512 37fdc7ab2f3feab6cce86103d57248e671daca91aead6588cb9f8de34e4b229178cb2da8bcc5bc26a45b85b76bb445c4c87c440d6e6a84409e2a3fdf7d34765f diff --git a/dev-lang/dafny-bin/dafny-bin-4.10.0.ebuild b/dev-lang/dafny-bin/dafny-bin-4.10.0.ebuild new file mode 100644 index 000000000000..fa0411a41e93 --- /dev/null +++ b/dev-lang/dafny-bin/dafny-bin-4.10.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Verification-aware programming language" +HOMEPAGE="https://dafny.org/ + https://github.com/dafny-lang/dafny/" +SRC_URI="https://github.com/dafny-lang/dafny/releases/download/v${PV}/dafny-${PV}-x64-ubuntu-20.04.zip" +S="${WORKDIR}/dafny" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="-* ~amd64" +REQUIRED_USE="elibc_glibc" +RESTRICT="strip" + +RDEPEND=" + !dev-lang/dafny + dev-libs/userspace-rcu + dev-util/lttng-ust:0/2.12 + sci-mathematics/z3 +" +BDEPEND=" + app-arch/unzip +" + +QA_PREBUILT="*" + +src_prepare() { + default + + # Remove bundled z3. + # NOTICE: New versions do not need the bundled one but older versions + # hardcoded the path relative to "dafny" binary. + # While bumping make sure to verify that system's "z3" is used + # by, for example, compiling/verifying a simple dafny program. + rm -r z3 || die +} + +src_install() { + local dest="/opt/dafny" + + insinto "${dest}" + # Maybe too general, but this installation mode matched how it arrives. + insopts -m0755 + doins "${S}"/* + + local bin + for bin in DafnyServer dafny ; do + dosym "../../${dest}/${bin}" "/usr/bin/${bin}" + done + + # Make "dafny-server" clients happy. + dosym -r "/${dest}/DafnyServer" /usr/bin/dafny-server +}