Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/lean/
Date: Mon, 27 Jun 2022 14:50:23
Message-Id: 1656341417.657666c6a8b6cbfc7a0acdb14d343300c056f54a.xgqt@gentoo
1 commit: 657666c6a8b6cbfc7a0acdb14d343300c056f54a
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 27 14:41:16 2022 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 27 14:50:17 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=657666c6
7
8 sci-mathematics/lean: bump to 3.44.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.44.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 8727c64f6035..88926772a008 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.42.0.tar.gz 1908134 BLAKE2B 7b6403786cc1a3a2b974f8df4c2bf2921e4e374ead4290a0e263c8464a9c009fd2f62e7cf5bdbc5087d0c9bb4c57f798b9d1a4b8ee2d66152714ec2af649e196 SHA512 2f1fc1bf3aff7fa806e1cd4647380d6896d98a9191f2035d5a37cc35938de42b243188984aa2fced37bdbee3b2c3c6ef25d27bf2428bf9a0307cc3237c80560f
22 DIST lean-3.42.1.tar.gz 1908398 BLAKE2B 7a83269deb3dc7ee60bf7a09b36df332355d9caf575b8435345956697121e95e1fb44cada1237e44bab04a56af4fb40c0d01e49f4cb3e4896e616f2bc58bf9ef SHA512 ab266e385e3026ce3219eef6ef171e243576e291fb26cef3d97ca4cc5190988e3bd6fe93c37a1192b8d2eec0ae7620131826ee1073a038f5a024e706953242d1
23 DIST lean-3.43.0.tar.gz 1909158 BLAKE2B 587995afb123e6c74a730f9709a001bab6b2ac82471dcf8b1219dda782853fcdb9735d16038b95a7950f6530dd3cf1e0b13e4d1044d723d3662217951b809928 SHA512 25cbad94b869bb39edaf9ed2478ffc298b130f22cb4db7c116212546583d670079ddde1b524a33499d00ac43fc82b6928e6801c83d613597aae255db9c45d9f3
24 +DIST lean-3.44.1.tar.gz 1911708 BLAKE2B 33dc94fb1f1eac2684b7a37fda3545ad6d4f6d703e7914c44b9a05fb57e55d4b9bef484ff1f6608f9bb0fe453ca28b7fa5c74e6bce135df06fb25ad6d9d3a37b SHA512 69ffd1a8519b476dd1879bfe2f8f8f4268a5490f11b581ee1e583382e6f03f947d958e8b5ee8ceead562945a406ee2dc9b0ae2da6f29f03a38828eadab88a4f8
25
26 diff --git a/sci-mathematics/lean/lean-3.44.1.ebuild b/sci-mathematics/lean/lean-3.44.1.ebuild
27 new file mode 100644
28 index 000000000000..5d8ee8eecd4b
29 --- /dev/null
30 +++ b/sci-mathematics/lean/lean-3.44.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 +}