Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/dafny-bin/
Date: Sat, 27 Aug 2022 23:11:54
Message-Id: 1661563622.3f50d6f5c1b74194e7a32bbe2ab741f9d540ce45.xgqt@gentoo
1 commit: 3f50d6f5c1b74194e7a32bbe2ab741f9d540ce45
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 27 01:16:43 2022 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 27 01:27:02 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f50d6f5
7
8 dev-lang/dafny-bin: bump to 3.8.0
9
10 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
11
12 dev-lang/dafny-bin/Manifest | 1 +
13 dev-lang/dafny-bin/dafny-bin-3.8.0.ebuild | 51 +++++++++++++++++++++++++++++++
14 2 files changed, 52 insertions(+)
15
16 diff --git a/dev-lang/dafny-bin/Manifest b/dev-lang/dafny-bin/Manifest
17 index 061ade61d849..fb17c2418c44 100644
18 --- a/dev-lang/dafny-bin/Manifest
19 +++ b/dev-lang/dafny-bin/Manifest
20 @@ -1,3 +1,4 @@
21 DIST dafny-3.7.1-x64-ubuntu-16.04.zip 76008449 BLAKE2B 5685dcc04e750960fa9bed536d6fae8f70979be899349eaab54bb7045a6e6a9849988be10db3ad33c9096a8d91d17f7b055e50507f736a169aa4fdcb6654b8f6 SHA512 689f3a125e336806c7fe15a8e0cc95e3242f99b719bfae57715313699880c21b13cf2eddfe4163e40da8de20f81c7148dce132dbc511b7a5c2320c1e96d2040a
22 DIST dafny-3.7.2-x64-ubuntu-16.04.zip 76166815 BLAKE2B a0b2531dedbe413298b6d92a65c854d70785d8732688d1e3556a5e5dc8c268b36dbb994e35960f2a18ecf40e64a6ff0912fa8df79beb6f2f81164be51907d262 SHA512 e472b1c848aece2980e67134a27bc1cab4a531b048790b7b36638e618d59f3f3e8ddcb538cd24723135266899a02b7c8952a73d81c4848e672c21c99c40c5af0
23 DIST dafny-3.7.3-x64-ubuntu-16.04.zip 76169341 BLAKE2B eb8bee64a0bd39b8af0996e298590c83bcf306dbfda5bc486ef70b13187b4fc0131fd2b98d5eb1b87a3177b1f25c5cd64b82522e4d57cf1b0d2aa1eb34869789 SHA512 0bdda39e8ae22eff72bd57e4ef5f07495e27156b11ff553a2e1f76731d7daa5ce6ac4f4d8b16b3365eacbbd25bc81d88cbfece9a0350e2a0faac2a035f3d5561
24 +DIST dafny-3.8.0-x64-ubuntu-16.04.zip 76181911 BLAKE2B 9fbae78bb08ed448a164188758c53de6eb928f16e941ee2830c5d8ed3980e3f4ccdd4f1b99c30061a5838ef96dd71ad0ac4a69ffdf45ca8a428e37cbd1f8049d SHA512 43628709dfe34d91fda3b723e4f9deacace463a4002c520d62b319f3618b2e62dec93e2fd913926e41c8ef75dd3535a909c4eeb2e58e00faa6ffdd1f028f8277
25
26 diff --git a/dev-lang/dafny-bin/dafny-bin-3.8.0.ebuild b/dev-lang/dafny-bin/dafny-bin-3.8.0.ebuild
27 new file mode 100644
28 index 000000000000..39a827f48c53
29 --- /dev/null
30 +++ b/dev-lang/dafny-bin/dafny-bin-3.8.0.ebuild
31 @@ -0,0 +1,51 @@
32 +# Copyright 1999-2022 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +DESCRIPTION="Verification-aware programming language"
38 +HOMEPAGE="https://dafny.org/"
39 +SRC_URI="https://github.com/dafny-lang/dafny/releases/download/v${PV}/dafny-${PV}-x64-ubuntu-16.04.zip"
40 +
41 +LICENSE="MIT"
42 +SLOT="0"
43 +KEYWORDS="-* ~amd64" # Binaries are compiled only for x86_64.
44 +REQUIRED_USE="elibc_glibc"
45 +
46 +RDEPEND="
47 + dev-libs/userspace-rcu
48 + dev-util/lttng-ust
49 + sci-mathematics/z3
50 +"
51 +BDEPEND="app-arch/unzip"
52 +
53 +S="${WORKDIR}"/dafny
54 +QA_PREBUILT="*"
55 +
56 +src_prepare() {
57 + default
58 +
59 + # Remove bundled z3.
60 + # NOTICE: New versions do not need the bundled one but older versions
61 + # hardcoded the path relative to "dafny" binary.
62 + # While bumping make sure to verify that system's "z3" is used
63 + # by, for example, compiling/verifying a simple dafny program.
64 + rm -r z3 || die
65 +}
66 +
67 +src_install() {
68 + local dest=/opt/dafny
69 +
70 + insinto ${dest}
71 + # Maybe too general, but this installation mode matched how it arrives.
72 + insopts -m0755
73 + doins "${S}"/*
74 +
75 + local bin
76 + for bin in DafnyServer dafny ; do
77 + dosym ../../${dest}/${bin} /usr/bin/${bin}
78 + done
79 +
80 + # Make "dafny-server" clients happy.
81 + dosym ../../${dest}/DafnyServer /usr/bin/dafny-server
82 +}