1 |
commit: 717ce126fd8e6a0f2d20044e0f89b536944d9037 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Oct 31 22:53:51 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 1 02:38:06 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=717ce126 |
7 |
|
8 |
dev-lang/dafny-bin: bump to 3.9.1 |
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.9.1.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 67e2634f4132..02347ba64b2b 100644 |
18 |
--- a/dev-lang/dafny-bin/Manifest |
19 |
+++ b/dev-lang/dafny-bin/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST dafny-3.8.0-x64-ubuntu-16.04.zip 76181911 BLAKE2B 9fbae78bb08ed448a164188758c53de6eb928f16e941ee2830c5d8ed3980e3f4ccdd4f1b99c30061a5838ef96dd71ad0ac4a69ffdf45ca8a428e37cbd1f8049d SHA512 43628709dfe34d91fda3b723e4f9deacace463a4002c520d62b319f3618b2e62dec93e2fd913926e41c8ef75dd3535a909c4eeb2e58e00faa6ffdd1f028f8277 |
22 |
DIST dafny-3.8.1-x64-ubuntu-16.04.zip 76192825 BLAKE2B fbfe65f917fb1c04151969e466097ea5703b70fea5c2e04ed6ed756d05c3c46796951d641cca66c30b59d4b70dcee2bef9c7ccac6cd04fe3204b41a08910197c SHA512 ae10f912977827525902317a2215b3066f4271efd2dfdf314859b8c82cfb18ea881bafba5bde0d9f31f3b1429bef252774ca7a495f6661dff7f9f0d5fe042806 |
23 |
DIST dafny-3.9.0-x64-ubuntu-16.04.zip 76348358 BLAKE2B aa217b8583a54f11e23769c214bff182025d7a8669a27f63ef3ee161640f1637d3eebc3e154c44d6cb0dc07060ac0bb3ba38dc7504af04c7a3c04425ee7437df SHA512 e595c80eed0c994a5e2f6cc34b18262f3401d7968e9da32449638591898998a56de70989240e8227ed6c40946205ba20542ac13e4e90cc597de657d81d389060 |
24 |
+DIST dafny-3.9.1-x64-ubuntu-16.04.zip 76356092 BLAKE2B 7337cbc5b698cec24ffcc3d05cc00403e37a865e422bab36860ca4a1136c3bf4d8dc70647640d0e3f1dc6846a0b72a3edc6a09cef51d7d56ab455dabd006236a SHA512 dbacd0dbeb4e97497faf7f6b6bfedac1ccc9f0e1da129ac1e3b124a0920ac659b6c78237102c5e087d350017c3bb3fd93ac8ca353b1b0e2d13073f35bfc9df7d |
25 |
|
26 |
diff --git a/dev-lang/dafny-bin/dafny-bin-3.9.1.ebuild b/dev-lang/dafny-bin/dafny-bin-3.9.1.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..c7dbe567fbba |
29 |
--- /dev/null |
30 |
+++ b/dev-lang/dafny-bin/dafny-bin-3.9.1.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" |
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 |
+} |