1 |
commit: 3939d117488a33f2c0404c51f86e976b896f06fa |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 1 13:30:18 2023 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 1 14:09:57 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3939d117 |
7 |
|
8 |
dev-lang/dafny-bin: bump to 3.11.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.11.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 bc3b38d89abb..0ee7b3ba08aa 100644 |
18 |
--- a/dev-lang/dafny-bin/Manifest |
19 |
+++ b/dev-lang/dafny-bin/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST dafny-3.10.0-x64-ubuntu-16.04.zip 76468200 BLAKE2B d3b35260fca709f1808ec47874f5566dd2fc42af9a43354a97b86b8962b1b15c95df10f25fa8f0d6a12c83f5c12569aa981d56b796aeb1fd7563fc59c62d4259 SHA512 3f8e669025fd655a7709334876652176b3dce1eb980f1f797cf829fa53b125129a66a175d3a4fcc56aa276e28661c6d795ccc01901d0e457bdac754b29382ca3 |
22 |
+DIST dafny-3.11.0-x64-ubuntu-16.04.zip 76510888 BLAKE2B 03591064f7af8971c5e175b4538c1344d6fd09c4ca2f3c52fef65af424d5fe462112f3853a59a0d3e84bf5945290b3b088472378577cb0881cf8129401606148 SHA512 0535151b0622f70b49457f1eaaa15c031b5ade5e44e64e79a6c6d1c46b9c2fed155f8da72274f8b8dd7815130ce80bd2b7af8a28d9423ebefde80d8cda1d12bb |
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.11.0.ebuild b/dev-lang/dafny-bin/dafny-bin-3.11.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..1d1588371688 |
29 |
--- /dev/null |
30 |
+++ b/dev-lang/dafny-bin/dafny-bin-3.11.0.ebuild |
31 |
@@ -0,0 +1,51 @@ |
32 |
+# Copyright 1999-2023 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:0/2.12 |
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 |
+} |