commit: 56d5f40d5d5e922b200142051ebc8a46a2958e94 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> AuthorDate: Thu Oct 21 14:12:28 2021 +0000 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> CommitDate: Thu Oct 21 14:12:28 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=56d5f40d
dev-lang/lean: add 3.34.0 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> dev-lang/lean/Manifest | 1 + dev-lang/lean/lean-3.34.0.ebuild | 53 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/dev-lang/lean/Manifest b/dev-lang/lean/Manifest index fd42aa380..b5cb6ec03 100644 --- a/dev-lang/lean/Manifest +++ b/dev-lang/lean/Manifest @@ -1 +1,2 @@ DIST lean-3.33.0.tar.gz 1890511 BLAKE2B 93fed81409a5d2fc31fd0963e00262ffbf7ce177954501e01d988666bf55bd4e0243488139f34eb4322055a5512565c6770749f793a8b7a8c7eb6e3045c5c2e7 SHA512 813f21f57913c15ca52b3a40bb0493d156b714ea26c5dcf4d159ee7aedf05dd6259ff57c05aa278bc72a3bfb9a531835387fc8cfbaca7d8341e0f2fbe9535bf3 +DIST lean-3.34.0.tar.gz 1891710 BLAKE2B 53c25b93c2e720187bfa5980a6bf3c9790aebb757b732704f6f5ad250b333c192417a938bc1cd6274a45f5b5f49f8e275da1f5c5597ffd7bc2da7bbe8b0371f7 SHA512 bc3f81ffbfa3291675d3c09c28c3eacccc2d44d021fb7e9923c7116091046b57f388589074e984f257842757c77972ef3b354d8690cccbebf6d3e2aae1f811a5 diff --git a/dev-lang/lean/lean-3.34.0.ebuild b/dev-lang/lean/lean-3.34.0.ebuild new file mode 100644 index 000000000..31967bcd4 --- /dev/null +++ b/dev-lang/lean/lean-3.34.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_IN_SOURCE_BUILD="ON" + +inherit cmake optfeature + +DESCRIPTION="The Lean Theorem Prover" +HOMEPAGE="https://leanprover-community.github.io/" + +if [[ "${PV}" == *9999* ]]; then + MAJOR=3 # sync this periodically for the live version + inherit git-r3 + EGIT_REPO_URI="https://github.com/leanprover-community/lean.git" +else + MAJOR=$(ver_cut 1) + SRC_URI="https://github.com/leanprover-community/lean/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi +S="${WORKDIR}/lean-${PV}/src" + +RESTRICT="!test? ( test )" +LICENSE="Apache-2.0" +SLOT="0/${MAJOR}" +IUSE="+json test +threads" + +RDEPEND="dev-libs/gmp" +DEPEND="${RDEPEND}" + +src_configure() { + local mycmakeargs=( + -DALPHA=ON + -DAUTO_THREAD_FINALIZATION=ON + -DJSON=$(usex json) + -DLEAN_EXTRA_CXX_FLAGS="${CXXFLAGS}" + -DMULTI_THREAD=$(usex threads) + -DUSE_GITHASH=OFF + ) + cmake_src_configure +} + +pkg_postinst() { + elog "You probably want to use lean with mathlib, to install it you can either:" + elog " - Do not install mathlib globally and use local versions" + elog " - Use leanproject from sci-mathematics/mathlib-tools" + elog " $ leanproject global-install" + elog " - Use leanpkg and compile mathlib (which will take long time)" + elog " $ leanpkg install https://github.com/leanprover-community/mathlib" + + optfeature "project management with leanproject" sci-mathematics/mathlib-tools +}
