Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@××××××.net>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-lang/lean/
Date: Fri, 05 Nov 2021 09:20:03
Message-Id: 1636101048.be2c39fcdaa2101aaae7b14c17b337bf82b97186.xgqt@gentoo
1 commit: be2c39fcdaa2101aaae7b14c17b337bf82b97186
2 Author: Maciej Barć <xgqt <AT> riseup <DOT> net>
3 AuthorDate: Fri Nov 5 08:29:34 2021 +0000
4 Commit: Maciej Barć <xgqt <AT> riseup <DOT> net>
5 CommitDate: Fri Nov 5 08:30:48 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=be2c39fc
7
8 dev-lang/lean: bump to 3.35.0
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Maciej Barć <xgqt <AT> riseup.net>
12
13 dev-lang/lean/Manifest | 1 +
14 dev-lang/lean/lean-3.35.0.ebuild | 70 ++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 71 insertions(+)
16
17 diff --git a/dev-lang/lean/Manifest b/dev-lang/lean/Manifest
18 index b5cb6ec03..c9c3a7261 100644
19 --- a/dev-lang/lean/Manifest
20 +++ b/dev-lang/lean/Manifest
21 @@ -1,2 +1,3 @@
22 DIST lean-3.33.0.tar.gz 1890511 BLAKE2B 93fed81409a5d2fc31fd0963e00262ffbf7ce177954501e01d988666bf55bd4e0243488139f34eb4322055a5512565c6770749f793a8b7a8c7eb6e3045c5c2e7 SHA512 813f21f57913c15ca52b3a40bb0493d156b714ea26c5dcf4d159ee7aedf05dd6259ff57c05aa278bc72a3bfb9a531835387fc8cfbaca7d8341e0f2fbe9535bf3
23 DIST lean-3.34.0.tar.gz 1891710 BLAKE2B 53c25b93c2e720187bfa5980a6bf3c9790aebb757b732704f6f5ad250b333c192417a938bc1cd6274a45f5b5f49f8e275da1f5c5597ffd7bc2da7bbe8b0371f7 SHA512 bc3f81ffbfa3291675d3c09c28c3eacccc2d44d021fb7e9923c7116091046b57f388589074e984f257842757c77972ef3b354d8690cccbebf6d3e2aae1f811a5
24 +DIST lean-3.35.0.tar.gz 1872221 BLAKE2B 8cdcaa65eb49ad6ed8b6961912d162a5832d45d5f8855ea62334010a1af647cd2aa4906d83317ee16c95cdb44522c1f7cb8f62ece6abda12354e18534e560e6e SHA512 b48a8134bdc39dc098a49303549ed4b96a2ca9e69043b9dca12c4789f60462b94374a184aee6fa33abd5a8f1acce9553b8144e935e539833c853e2384c41c2e7
25
26 diff --git a/dev-lang/lean/lean-3.35.0.ebuild b/dev-lang/lean/lean-3.35.0.ebuild
27 new file mode 100644
28 index 000000000..3ab4b15f4
29 --- /dev/null
30 +++ b/dev-lang/lean/lean-3.35.0.ebuild
31 @@ -0,0 +1,70 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +CMAKE_IN_SOURCE_BUILD="ON"
38 +
39 +inherit cmake optfeature
40 +
41 +DESCRIPTION="The Lean Theorem Prover"
42 +HOMEPAGE="https://leanprover-community.github.io/"
43 +
44 +if [[ "${PV}" == *9999* ]]; then
45 + MAJOR=3 # sync this periodically for the live version
46 + inherit git-r3
47 + EGIT_REPO_URI="https://github.com/leanprover-community/lean.git"
48 +else
49 + MAJOR=$(ver_cut 1)
50 + SRC_URI="https://github.com/leanprover-community/lean/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
51 + KEYWORDS="~amd64"
52 +fi
53 +S="${WORKDIR}/lean-${PV}/src"
54 +
55 +LICENSE="Apache-2.0"
56 +SLOT="0/${MAJOR}"
57 +IUSE="debug +json +threads"
58 +
59 +RDEPEND="dev-libs/gmp"
60 +DEPEND="${RDEPEND}"
61 +
62 +PATCHES=( "${FILESDIR}/fix_flags.patch" )
63 +
64 +src_configure() {
65 + local CMAKE_BUILD_TYPE
66 + if use debug; then
67 + CMAKE_BUILD_TYPE="Debug"
68 + else
69 + CMAKE_BUILD_TYPE="Release"
70 + fi
71 +
72 + local mycmakeargs=(
73 + -DALPHA=ON
74 + -DAUTO_THREAD_FINALIZATION=ON
75 + -DJSON=$(usex json)
76 + -DLEAN_EXTRA_CXX_FLAGS="${CXXFLAGS}"
77 + -DMULTI_THREAD=$(usex threads)
78 + -DUSE_GITHASH=OFF
79 + )
80 + cmake_src_configure
81 +}
82 +
83 +src_test() {
84 + local myctestargs=(
85 + # Disable problematic "style_check" cpplint test,
86 + # this also removes python test dependency
87 + --exclude-regex style_check
88 + )
89 + cmake_src_test
90 +}
91 +
92 +pkg_postinst() {
93 + elog "You probably want to use lean with mathlib, to install it you can either:"
94 + elog " - Do not install mathlib globally and use local versions"
95 + elog " - Use leanproject from sci-mathematics/mathlib-tools"
96 + elog " $ leanproject global-install"
97 + elog " - Use leanpkg and compile mathlib (which will take long time)"
98 + elog " $ leanpkg install https://github.com/leanprover-community/mathlib"
99 +
100 + optfeature "project management with leanproject" sci-mathematics/mathlib-tools
101 +}