dev-lang/dafny-bin: bump to 4.11.0

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2025-08-26 12:40:13 +02:00
parent 9052251878
commit 3eb17aab0d
2 changed files with 57 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST dafny-4.10.0-x64-ubuntu-20.04.zip 61352501 BLAKE2B 68227a1566e49a52b9159ab0d7ceaa4369fe0a2a18d97495b865b5d25507399a1e9753244fba19035231e4e0dd130881b0854479944479b8bed32c959c38a4ed SHA512 51929386f27841b4302b1e00865986b4aeea6205852ce7c90398a71a820dd334d3f71cf26255daf3a9a75fb4cc1bb84491165c77fd10ffaa35a267942294fd4b
DIST dafny-4.11.0-x64-ubuntu-22.04.zip 65307946 BLAKE2B 14f391424e89a0c5cc35d99a1a488e55774cf49de71125fcef63a3d175f5b6b88b5bbbe9b61a2f96920e84a0083309e0c98be3a06a4cd1a1e1ea20be79a7df39 SHA512 dc921bb26afe184a7142f3bc44792255ee156958fffa2fb1293ecbb87629ca54d75a672e2d08d48bcf2ff1e55b8d3f3c6a7ba905728dd6b5a617c505a48c36a0

View File

@@ -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-22.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
}