summaryrefslogtreecommitdiff
path: root/sci-mathematics/lean
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-11-19 00:59:31 +0000
committerV3n3RiX <venerix@koprulu.sector>2022-11-19 00:59:31 +0000
commit6e476156e1a0d2f4aa53968c37835c3441301367 (patch)
treeaa9b3b9d969a8846aff874749938ea20b6cb06c2 /sci-mathematics/lean
parent1b07dd0a2cbe034321c613ee58a1f99a0df17995 (diff)
gentoo auto-resync : 19:11:2022 - 00:59:30
Diffstat (limited to 'sci-mathematics/lean')
-rw-r--r--sci-mathematics/lean/Manifest2
-rw-r--r--sci-mathematics/lean/lean-3.49.1.ebuild77
2 files changed, 79 insertions, 0 deletions
diff --git a/sci-mathematics/lean/Manifest b/sci-mathematics/lean/Manifest
index 62494336bfaa..eae2b26e4d38 100644
--- a/sci-mathematics/lean/Manifest
+++ b/sci-mathematics/lean/Manifest
@@ -2,8 +2,10 @@ AUX lean-CMakeLists-fix_flags.patch 1285 BLAKE2B 0507e553c1acf2a53c5267932127117
DIST lean-3.47.0.tar.gz 1917990 BLAKE2B 1249654b3a71d1a3b601c79915232d5f53335cd4a5b3c41f97dd5cb39e86bc5ea3c4208b5ebca9fae43c01b7da64579cdf6bcec12b8861ca69339277efe7431d SHA512 11879e4bc324e036b917af0761d918eb393aa3226a36b305dbcd233988504178082290dab2d2e25bc3b7732cb5246a397e29fbd4c956efa9ea454cb46568d942
DIST lean-3.48.0.tar.gz 1918012 BLAKE2B 4616af2e4d66c56866f321797d6bb05049925f62c2c62c72a3a5552d39cc83c48c1dc2e59b9d81a7341346ed6f3173ef6e69902b8e8a5a24c4af86dace76360b SHA512 9e017484f88fac40e35604643c972d5f316df70c18b00f90b107d994f5e58eeb0637033354c1e0159a9dfc8c72fe3ea9d3b70569b46fc37b22a94c3d7445cdac
DIST lean-3.49.0.tar.gz 1918154 BLAKE2B 9f9973d00d2d5d5b7d26d50117c27754feb5132e88decd55859432a384dac2897184dcf8d841ad0034854657ac25e462dc69cdbe1cf2040787d108bb7e1370f4 SHA512 b4672843c2e923da8d56b91c14966fc2ec66c573564d68db9c52f9b40f2c97d82497f2ef6424b023c4ae50f6f0c11674e2d79053844ea669d226d0fe24077ade
+DIST lean-3.49.1.tar.gz 1918165 BLAKE2B bebb29023f7d8979dae19d7c5ef6503be03012366c8a4f21a69244a1daadf90c73e8a8754656d7b1a6eccb1123f0905f3dcaa15885b0307399979024d2c5a051 SHA512 6648ab84840099495df5bec9432c75c40fc0920ac2a18297b42c35de593ec4eaee8bcf807cb6e273c2715090e5d1ab6c59652f482016af68d758e7e6e55dd87f
EBUILD lean-3.47.0.ebuild 1768 BLAKE2B 79dc1a54bd55667913f1dba0204ea845e3ae707f4dfdcbd7c8274d3fe00db9292228975dddfadcac6f068d65b49f076ac47480a3a394f294c40b7174c81b2b40 SHA512 28c85c3af753322f828f05ae20e14a8545a4ef5913572c8c998a4699a7fb3d7092b7bc5f9d2b045f8550b20b6c0ba967c9e9944753ff775a827c15b11c8e2198
EBUILD lean-3.48.0.ebuild 1768 BLAKE2B 79dc1a54bd55667913f1dba0204ea845e3ae707f4dfdcbd7c8274d3fe00db9292228975dddfadcac6f068d65b49f076ac47480a3a394f294c40b7174c81b2b40 SHA512 28c85c3af753322f828f05ae20e14a8545a4ef5913572c8c998a4699a7fb3d7092b7bc5f9d2b045f8550b20b6c0ba967c9e9944753ff775a827c15b11c8e2198
EBUILD lean-3.49.0.ebuild 1768 BLAKE2B 79dc1a54bd55667913f1dba0204ea845e3ae707f4dfdcbd7c8274d3fe00db9292228975dddfadcac6f068d65b49f076ac47480a3a394f294c40b7174c81b2b40 SHA512 28c85c3af753322f828f05ae20e14a8545a4ef5913572c8c998a4699a7fb3d7092b7bc5f9d2b045f8550b20b6c0ba967c9e9944753ff775a827c15b11c8e2198
+EBUILD lean-3.49.1.ebuild 1768 BLAKE2B 79dc1a54bd55667913f1dba0204ea845e3ae707f4dfdcbd7c8274d3fe00db9292228975dddfadcac6f068d65b49f076ac47480a3a394f294c40b7174c81b2b40 SHA512 28c85c3af753322f828f05ae20e14a8545a4ef5913572c8c998a4699a7fb3d7092b7bc5f9d2b045f8550b20b6c0ba967c9e9944753ff775a827c15b11c8e2198
EBUILD lean-3.9999.ebuild 1767 BLAKE2B 39700411a69b0ac91dbb14ef4c12979ca94c6529b7c085bb04b29b667d7852983fcc90519748a506b547141a53a88de196bc693e2c40cc12ea438a383b302728 SHA512 6075af9174d9487b82557cdf4641848fc98de380e77f47308649eb3fac0c32193a92c47223a7146f3ccdc6db1b4d4e1987dd560b44081dfdda3c00c69fd10026
MISC metadata.xml 606 BLAKE2B 6478d84a762a59082fdea0a11a95b27c093782228c48dba58dc490ea9ac2cecef54cc3101dc98e385f3a29f85d84af21b7d2ae1a9f089ee0313158ecb44eb0e7 SHA512 02d2ac07b155c7a04c857d397d476a39864d02b10dd81c5830db5e21eb86c6dcff26da552a04717f5f587b326ddf8e2e8d27f1a138f88b391f0199d8004d8cb7
diff --git a/sci-mathematics/lean/lean-3.49.1.ebuild b/sci-mathematics/lean/lean-3.49.1.ebuild
new file mode 100644
index 000000000000..e008b81cf582
--- /dev/null
+++ b/sci-mathematics/lean/lean-3.49.1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MAJOR=$(ver_cut 1)
+CMAKE_IN_SOURCE_BUILD="ON"
+
+inherit flag-o-matic cmake readme.gentoo-r1
+
+DESCRIPTION="The Lean Theorem Prover"
+HOMEPAGE="https://leanprover-community.github.io/"
+
+if [[ ${PV} == *9999* ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/leanprover-community/lean.git"
+else
+ SRC_URI="https://github.com/leanprover-community/lean/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+S="${S}/src"
+
+LICENSE="Apache-2.0"
+SLOT="0/${MAJOR}"
+IUSE="debug +threads"
+
+RDEPEND="dev-libs/gmp:="
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${PN}-CMakeLists-fix_flags.patch )
+
+src_configure() {
+ local CMAKE_BUILD_TYPE
+ if use debug; then
+ CMAKE_BUILD_TYPE="Debug"
+ else
+ CMAKE_BUILD_TYPE="Release"
+ fi
+
+ filter-lto
+
+ local mycmakeargs=(
+ -DALPHA=ON
+ -DAUTO_THREAD_FINALIZATION=ON
+ -DJSON=ON # bug 833900
+ -DLEAN_EXTRA_CXX_FLAGS="${CXXFLAGS}"
+ -DMULTI_THREAD=$(usex threads)
+ -DUSE_GITHASH=OFF
+ )
+ cmake_src_configure
+}
+
+src_test() {
+ local myctestargs=(
+ # Disable problematic "style_check" cpplint test,
+ # this also removes the python test dependency
+ --exclude-regex style_check
+ )
+ cmake_src_test
+}
+
+src_install() {
+ cmake_src_install
+
+ local DISABLE_AUTOFORMATTING="yes"
+ local DOC_CONTENTS="You probably want to use lean with mathlib, you can either:
+ - Do not install mathlib globally and use local versions
+ - Use leanproject from sci-mathematics/mathlib-tools
+ $ leanproject global-install
+ - Use leanpkg and compile mathlib (which will take some time)
+ $ leanpkg install https://github.com/leanprover-community/mathlib"
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ readme.gentoo_print_elog
+}