diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-30 17:40:25 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-30 17:40:25 +0100 |
commit | 3c78a1ce7924fbf571e133e697f8a29e18d2bf4b (patch) | |
tree | 5bbedb5d3c2716d5b332f7e74f54941c9a2b50b8 /dev-lang/dafny-bin/dafny-bin-4.3.0.ebuild | |
parent | c417025a2ab386cddabb71ad598a9b75b47af313 (diff) |
gentoo auto-resync : 30:09:2023 - 17:40:25
Diffstat (limited to 'dev-lang/dafny-bin/dafny-bin-4.3.0.ebuild')
-rw-r--r-- | dev-lang/dafny-bin/dafny-bin-4.3.0.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/dev-lang/dafny-bin/dafny-bin-4.3.0.ebuild b/dev-lang/dafny-bin/dafny-bin-4.3.0.ebuild new file mode 100644 index 000000000000..0f5cd85b46af --- /dev/null +++ b/dev-lang/dafny-bin/dafny-bin-4.3.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2023 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" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="-* ~amd64" +REQUIRED_USE="elibc_glibc" + +RDEPEND=" + !dev-lang/dafny + dev-libs/userspace-rcu + dev-util/lttng-ust:0/2.12 + sci-mathematics/z3 +" +BDEPEND="app-arch/unzip" + +S="${WORKDIR}/dafny" +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 ../../${dest}/DafnyServer /usr/bin/dafny-server +} |