1 |
commit: 4c42b4e422dded92c6d4964caf09f6d6ac9c5800 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Aug 30 13:42:47 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 30 14:35:35 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c42b4e4 |
7 |
|
8 |
sci-mathematics/lean: bump to 3.48.0 |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
sci-mathematics/lean/Manifest | 1 + |
13 |
sci-mathematics/lean/lean-3.48.0.ebuild | 77 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 78 insertions(+) |
15 |
|
16 |
diff --git a/sci-mathematics/lean/Manifest b/sci-mathematics/lean/Manifest |
17 |
index 46924bc36752..2713b7b8577a 100644 |
18 |
--- a/sci-mathematics/lean/Manifest |
19 |
+++ b/sci-mathematics/lean/Manifest |
20 |
@@ -1,3 +1,4 @@ |
21 |
DIST lean-3.45.0.tar.gz 1913638 BLAKE2B f36548be556407cbf7b30a7988bb2454542543cafcd2d0f2af90f75f886d4b711c6955503f7241844ffff69400ec354a194cc345feca8f0dbcb06a673cc2d3d4 SHA512 c97c1dc6004823c73d8e40b5587ebbee7bd7a90b65ecdd3a976510d0d335b6df9a26916eedd5524f7137a32254a59dd5a6f15ce67f77d500926c9bc781aa5526 |
22 |
DIST lean-3.46.0.tar.gz 1913857 BLAKE2B de0a48ab3cff934d6a9583833a94a409a6351bd8433dbf47dbb510620a6c27aae26891472b4f1443e0f833b1c13de8653f0ea4edf61d14d43cfdb1aa25a555bf SHA512 d4487154cf6364b49ce19d1946a0bf0af6faeb1276ef08754a3dbed9bf071c2873eebdb1d6bcbe39ab2aaf5e93a97007ce954fd7c1ca4062fb2e6214e75e3b2b |
23 |
DIST lean-3.47.0.tar.gz 1917990 BLAKE2B 1249654b3a71d1a3b601c79915232d5f53335cd4a5b3c41f97dd5cb39e86bc5ea3c4208b5ebca9fae43c01b7da64579cdf6bcec12b8861ca69339277efe7431d SHA512 11879e4bc324e036b917af0761d918eb393aa3226a36b305dbcd233988504178082290dab2d2e25bc3b7732cb5246a397e29fbd4c956efa9ea454cb46568d942 |
24 |
+DIST lean-3.48.0.tar.gz 1918012 BLAKE2B 4616af2e4d66c56866f321797d6bb05049925f62c2c62c72a3a5552d39cc83c48c1dc2e59b9d81a7341346ed6f3173ef6e69902b8e8a5a24c4af86dace76360b SHA512 9e017484f88fac40e35604643c972d5f316df70c18b00f90b107d994f5e58eeb0637033354c1e0159a9dfc8c72fe3ea9d3b70569b46fc37b22a94c3d7445cdac |
25 |
|
26 |
diff --git a/sci-mathematics/lean/lean-3.48.0.ebuild b/sci-mathematics/lean/lean-3.48.0.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..e008b81cf582 |
29 |
--- /dev/null |
30 |
+++ b/sci-mathematics/lean/lean-3.48.0.ebuild |
31 |
@@ -0,0 +1,77 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+MAJOR=$(ver_cut 1) |
38 |
+CMAKE_IN_SOURCE_BUILD="ON" |
39 |
+ |
40 |
+inherit flag-o-matic cmake readme.gentoo-r1 |
41 |
+ |
42 |
+DESCRIPTION="The Lean Theorem Prover" |
43 |
+HOMEPAGE="https://leanprover-community.github.io/" |
44 |
+ |
45 |
+if [[ ${PV} == *9999* ]] ; then |
46 |
+ inherit git-r3 |
47 |
+ EGIT_REPO_URI="https://github.com/leanprover-community/lean.git" |
48 |
+else |
49 |
+ SRC_URI="https://github.com/leanprover-community/lean/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
50 |
+ KEYWORDS="~amd64 ~x86" |
51 |
+fi |
52 |
+S="${S}/src" |
53 |
+ |
54 |
+LICENSE="Apache-2.0" |
55 |
+SLOT="0/${MAJOR}" |
56 |
+IUSE="debug +threads" |
57 |
+ |
58 |
+RDEPEND="dev-libs/gmp:=" |
59 |
+DEPEND="${RDEPEND}" |
60 |
+ |
61 |
+PATCHES=( "${FILESDIR}"/${PN}-CMakeLists-fix_flags.patch ) |
62 |
+ |
63 |
+src_configure() { |
64 |
+ local CMAKE_BUILD_TYPE |
65 |
+ if use debug; then |
66 |
+ CMAKE_BUILD_TYPE="Debug" |
67 |
+ else |
68 |
+ CMAKE_BUILD_TYPE="Release" |
69 |
+ fi |
70 |
+ |
71 |
+ filter-lto |
72 |
+ |
73 |
+ local mycmakeargs=( |
74 |
+ -DALPHA=ON |
75 |
+ -DAUTO_THREAD_FINALIZATION=ON |
76 |
+ -DJSON=ON # bug 833900 |
77 |
+ -DLEAN_EXTRA_CXX_FLAGS="${CXXFLAGS}" |
78 |
+ -DMULTI_THREAD=$(usex threads) |
79 |
+ -DUSE_GITHASH=OFF |
80 |
+ ) |
81 |
+ cmake_src_configure |
82 |
+} |
83 |
+ |
84 |
+src_test() { |
85 |
+ local myctestargs=( |
86 |
+ # Disable problematic "style_check" cpplint test, |
87 |
+ # this also removes the python test dependency |
88 |
+ --exclude-regex style_check |
89 |
+ ) |
90 |
+ cmake_src_test |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ cmake_src_install |
95 |
+ |
96 |
+ local DISABLE_AUTOFORMATTING="yes" |
97 |
+ local DOC_CONTENTS="You probably want to use lean with mathlib, you can either: |
98 |
+ - Do not install mathlib globally and use local versions |
99 |
+ - Use leanproject from sci-mathematics/mathlib-tools |
100 |
+ $ leanproject global-install |
101 |
+ - Use leanpkg and compile mathlib (which will take some time) |
102 |
+ $ leanpkg install https://github.com/leanprover-community/mathlib" |
103 |
+ readme.gentoo_create_doc |
104 |
+} |
105 |
+ |
106 |
+pkg_postinst() { |
107 |
+ readme.gentoo_print_elog |
108 |
+} |