1 |
commit: e124cd89e3a8e36edbccc14fd5b791b8c11b9857 |
2 |
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Mar 27 00:56:32 2022 +0000 |
4 |
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Mar 27 01:46:25 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e124cd89 |
7 |
|
8 |
sci-mathematics/lean: bump to 3.42.1 |
9 |
|
10 |
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org> |
11 |
|
12 |
sci-mathematics/lean/Manifest | 1 + |
13 |
sci-mathematics/lean/lean-3.42.1.ebuild | 75 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 76 insertions(+) |
15 |
|
16 |
diff --git a/sci-mathematics/lean/Manifest b/sci-mathematics/lean/Manifest |
17 |
index ad0e723b1b3c..910ec2d2d32c 100644 |
18 |
--- a/sci-mathematics/lean/Manifest |
19 |
+++ b/sci-mathematics/lean/Manifest |
20 |
@@ -2,3 +2,4 @@ DIST lean-3.39.1.tar.gz 1878481 BLAKE2B b3d1760594751418d6ebb7754d733e8fdebc5e0e |
21 |
DIST lean-3.40.0.tar.gz 1878547 BLAKE2B 762c12b9fee9ac405730fb4a748326e7c9603c50f44512166f94df51e8cde0096803f11d0201980e1a1c0121a2b278075bf238452254d83e2d8b7b5566355416 SHA512 4daa32b60195a9776019c3c13c3765a1f5a817d78f189c3f92859298118815af4cb47359816ebbb977f35453be358956f3680b06b5930d5cf3a4245599602873 |
22 |
DIST lean-3.41.0.tar.gz 1905966 BLAKE2B 1921ba4a975ed8fc6001695151bb366341e0895989a570bb7fbef1e719685945d0b7c51ed0716ff29daaf81af24ce2e289cab41b251c686a286cd94a0cf708f8 SHA512 855a56812ba5dc7cf431490957570d0fcbc4760faa1602095e708ddcc4e5a3c6aeac42133c210375d4538d97c8ae90df3ab3c7e7840e8896b8d0db439e925fbf |
23 |
DIST lean-3.42.0.tar.gz 1908134 BLAKE2B 7b6403786cc1a3a2b974f8df4c2bf2921e4e374ead4290a0e263c8464a9c009fd2f62e7cf5bdbc5087d0c9bb4c57f798b9d1a4b8ee2d66152714ec2af649e196 SHA512 2f1fc1bf3aff7fa806e1cd4647380d6896d98a9191f2035d5a37cc35938de42b243188984aa2fced37bdbee3b2c3c6ef25d27bf2428bf9a0307cc3237c80560f |
24 |
+DIST lean-3.42.1.tar.gz 1908398 BLAKE2B 7a83269deb3dc7ee60bf7a09b36df332355d9caf575b8435345956697121e95e1fb44cada1237e44bab04a56af4fb40c0d01e49f4cb3e4896e616f2bc58bf9ef SHA512 ab266e385e3026ce3219eef6ef171e243576e291fb26cef3d97ca4cc5190988e3bd6fe93c37a1192b8d2eec0ae7620131826ee1073a038f5a024e706953242d1 |
25 |
|
26 |
diff --git a/sci-mathematics/lean/lean-3.42.1.ebuild b/sci-mathematics/lean/lean-3.42.1.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..5d8ee8eecd4b |
29 |
--- /dev/null |
30 |
+++ b/sci-mathematics/lean/lean-3.42.1.ebuild |
31 |
@@ -0,0 +1,75 @@ |
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 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="${WORKDIR}/lean-${PV}/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 |
+ local mycmakeargs=( |
72 |
+ -DALPHA=ON |
73 |
+ -DAUTO_THREAD_FINALIZATION=ON |
74 |
+ -DJSON=ON # bug 833900 |
75 |
+ -DLEAN_EXTRA_CXX_FLAGS="${CXXFLAGS}" |
76 |
+ -DMULTI_THREAD=$(usex threads) |
77 |
+ -DUSE_GITHASH=OFF |
78 |
+ ) |
79 |
+ cmake_src_configure |
80 |
+} |
81 |
+ |
82 |
+src_test() { |
83 |
+ local myctestargs=( |
84 |
+ # Disable problematic "style_check" cpplint test, |
85 |
+ # this also removes the python test dependency |
86 |
+ --exclude-regex style_check |
87 |
+ ) |
88 |
+ cmake_src_test |
89 |
+} |
90 |
+ |
91 |
+src_install() { |
92 |
+ cmake_src_install |
93 |
+ |
94 |
+ local DISABLE_AUTOFORMATTING="yes" |
95 |
+ local DOC_CONTENTS="You probably want to use lean with mathlib, you can either: |
96 |
+ - Do not install mathlib globally and use local versions |
97 |
+ - Use leanproject from sci-mathematics/mathlib-tools |
98 |
+ $ leanproject global-install |
99 |
+ - Use leanpkg and compile mathlib (which will take some time) |
100 |
+ $ leanpkg install https://github.com/leanprover-community/mathlib" |
101 |
+ readme.gentoo_create_doc |
102 |
+} |
103 |
+ |
104 |
+pkg_postinst() { |
105 |
+ readme.gentoo_print_elog |
106 |
+} |