From 5087ee3bf0055aae666159351774f2fb3610e571 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 3 Jan 2025 06:31:16 +0000 Subject: gentoo auto-resync : 03:01:2025 - 06:31:16 --- sci-mathematics/Manifest.gz | Bin 19689 -> 19693 bytes sci-mathematics/lean/Manifest | 7 +- .../lean/files/lean-4.14.0-src-cmakelists.patch | 23 +++++ sci-mathematics/lean/lean-4.14.0-r1.ebuild | 97 +++++++++++++++++++++ sci-mathematics/lean/lean-4.2.0.ebuild | 78 ----------------- sci-mathematics/lean/metadata.xml | 11 ++- 6 files changed, 132 insertions(+), 84 deletions(-) create mode 100644 sci-mathematics/lean/files/lean-4.14.0-src-cmakelists.patch create mode 100644 sci-mathematics/lean/lean-4.14.0-r1.ebuild delete mode 100644 sci-mathematics/lean/lean-4.2.0.ebuild (limited to 'sci-mathematics') diff --git a/sci-mathematics/Manifest.gz b/sci-mathematics/Manifest.gz index 02031e4fb3a2..9c5e886bd144 100644 Binary files a/sci-mathematics/Manifest.gz and b/sci-mathematics/Manifest.gz differ diff --git a/sci-mathematics/lean/Manifest b/sci-mathematics/lean/Manifest index af7499375b50..0846c795bffc 100644 --- a/sci-mathematics/lean/Manifest +++ b/sci-mathematics/lean/Manifest @@ -1,9 +1,10 @@ AUX lean-3.50.3-gcc-13.patch 263 BLAKE2B cf589616f4612319bbe1d21e798787a72da3d0f319cef3ef0042b8baa89d87066867311fd804862d43599a262c64e2b747a6c21415bb69137a3e8e59dd332155 SHA512 013fe4ec983c8ca612621319fad5fe66e081516979e4dace71f24ec72cac8d7fe2a021e701b2bcae1e87209783330c02b799cdb6c1274f7f8d3dc51efaf130b6 +AUX lean-4.14.0-src-cmakelists.patch 1084 BLAKE2B d236998224c99aec69248b59f314e3347ac21acf3bcbe99e006004a67d985ee899db0ff3a7f920a477066085707813fd908fba8cbc4d6b0f7a43f1c1525263c7 SHA512 8dff3962980cf06526d83d10f5175eac8505cc365d50f816a3690c68029e3f2ce69356b8f963adcdad2b06cc936fbd99a9fccb6d7ec24ebbdcad4519e9274ea9 AUX lean-CMakeLists-fix_flags.patch 1285 BLAKE2B 0507e553c1acf2a53c5267932127117d5ae5ba9015a08c88748b3d82c041f8d904d15cd033dd7934ac55c474fa75a5d4a46f680cc887fee37c05c3f5f3832839 SHA512 11a5918847e45aac7bf79e48d8f881ef5cd3e6b09dbb0979f3f0b88fd36458be21ebeb530158da801399a0cdc8fe382444ff338cd793cd9f1bfced90c5d5a71b DIST lean-3.51.1.tar.gz 1918894 BLAKE2B 9a240fe73193794a57001582c0623052cfc1c08ef3b155cac2d9dfc029202cb79b85e844fdf068e454498a35522ec3e18330da8c644bba3c6f708cbde04816f7 SHA512 dccdf6c3fbcd98115e62b9944645af6a2ce21412d63baa9565871807862e8d83cc6f29d1fb687f19b802240a5f9c019443caa00412ecfabe621744dff900e3ee DIST lean-4.11.0.tar.gz 25790812 BLAKE2B d9a4eb15199f81c6757acf35fb17c795bb9d69158c7e7deb11d98a45bebf569dcda5f7733b2effd2be0eea879a6c7c24b270d97159e5898215e82e853320918c SHA512 2314659910b4d872c4ae0dda648a9cab9e1cc44cd4c55486a494b65b20fdae236ab9db99a42d7fb1a80030e300e95606065ee7dd27578b12a4c47fc8c102e2bb -DIST lean-4.2.0.tar.gz 16382466 BLAKE2B 3a8770d92ae89041f3e12089c3bb9171a993e8a1c702162925b569e13ed8d8819b3e9aa3c00e314a80a118ff8e4b18fb6df8b8a0e85a21fcb1daa5c0bfc29d4f SHA512 b0bd91f39319c1c6fd6851732d9dcb8758734500abc8faf0648c03582a81d51f2d942fa5deecedf81116b894d0b65e93eccab557bf155e69d65bda83eccaf7bb +DIST lean-4.14.0.tar.gz 28508743 BLAKE2B 692972402726a77ca9255edbecfc2bd30033d5c7137b00e85821d5bb74f7ed77398b19e7e3098eeecf6812ad9ca568a4076b11a91456b84f4ad78be8f6441286 SHA512 871169b3d7951934990a86a2b5d1741b00f4559c53c69ecdf0ca1c091426f1d7a6baa5ce69029dbecfc4a9dc9da9ee36b327cbef0ab28e80a9f64d34a2666c78 EBUILD lean-3.51.1.ebuild 1815 BLAKE2B 767ff4cc188049e3b54d903ff3a314012997369beadf7335a33e01193b0da69707e4b845946afde25a617e9e344df479adb70c8937e84dc1854fe2db9b0d979b SHA512 630f5690c1a4321e56d640186b894623fa5551de17af21793b4a66c32ccfb66697b4144ada36742262e5bd037d094b0448511433e73affdac36ad7e06874635d EBUILD lean-4.11.0.ebuild 1395 BLAKE2B 9dea5026d1cef60c08d7de76061cdd7401f3c49e551df397a02b61cc5ce4fa34dddd636a339013ac424b090635196d0b94142fa2af895f43d8a0dcfc2a5c009b SHA512 e336e331fafbaa6b658007e5e6b1fd726044bde52fbdda56935c9c65ff47b1942bc721365be74118a62c9439e2bb395bdca160e906237374e3c235cb62c17825 -EBUILD lean-4.2.0.ebuild 1314 BLAKE2B 5d4bf0f35c2935eedec2da03e93eef5ae03e5d3520b6addb8682083782deab721d1f2aa3f1bc958887b7110bb4f5c031cc200780cf9c5dabccd1d4918617a043 SHA512 ce464635431381a814c8ef8823c06477992b2c3691c09421a9d068d3cabe40e775f999020dde5e53f7100082e304658c4d52e62372e1f21185fd3195774c0dc2 -MISC metadata.xml 606 BLAKE2B 6478d84a762a59082fdea0a11a95b27c093782228c48dba58dc490ea9ac2cecef54cc3101dc98e385f3a29f85d84af21b7d2ae1a9f089ee0313158ecb44eb0e7 SHA512 02d2ac07b155c7a04c857d397d476a39864d02b10dd81c5830db5e21eb86c6dcff26da552a04717f5f587b326ddf8e2e8d27f1a138f88b391f0199d8004d8cb7 +EBUILD lean-4.14.0-r1.ebuild 1797 BLAKE2B 592a520a4ee85bdea58e0da5294eb68b0d13ca7d5d32d70a4003294a2e944f50fa7b3648da47a36f81fe32f5cc399ca9ed7dc77c0704de543512c65cc1084c14 SHA512 86c446e89816ddf89c4ebfbb8b8dc49004dcb954f726aac35f606f10f76769fbab56e09b41bbc463ccfd14ba6494ebaaecd9d8d0f8b0073a3c6363147d598259 +MISC metadata.xml 954 BLAKE2B 338f64bbe848dca10f77fb7d5b7503684d36742139a4fd45f7a4c48250a11af6a78e40f5304d44166ce56f7fe4d22c6f980b55cab411bb7be93cc279694e9b66 SHA512 ec7c25a75237d2d54704e2d7b1811489a95780885c748a832643760d012eaceaeb5bfec9fc80509d5699940e749e770e841880cca1361848244b5031636e48b2 diff --git a/sci-mathematics/lean/files/lean-4.14.0-src-cmakelists.patch b/sci-mathematics/lean/files/lean-4.14.0-src-cmakelists.patch new file mode 100644 index 000000000000..f6fbf7fed4ba --- /dev/null +++ b/sci-mathematics/lean/files/lean-4.14.0-src-cmakelists.patch @@ -0,0 +1,23 @@ +diff --git a/src/CMakeLists.txt.orig b/src/CMakeLists.txt +index 1bd0cb2..7ea94f5 100644 +--- a/src/CMakeLists.txt.orig ++++ b/src/CMakeLists.txt +@@ -40,15 +40,15 @@ endif() + enable_testing() + + option(MULTI_THREAD "MULTI_THREAD" ON) +-option(CCACHE "use ccache" ON) ++option(CCACHE "use ccache" OFF) + option(SPLIT_STACK "SPLIT_STACK" OFF) + # When OFF we disable LLVM support + option(LLVM "LLVM" OFF) + + # When ON we include githash in the version string +-option(USE_GITHASH "GIT_HASH" ON) ++option(USE_GITHASH "GIT_HASH" OFF) + # When ON we install LICENSE files to CMAKE_INSTALL_PREFIX +-option(INSTALL_LICENSE "INSTALL_LICENSE" ON) ++option(INSTALL_LICENSE "INSTALL_LICENSE" OFF) + # When ON thread storage is automatically finalized, it assumes platform support pthreads. + # This option is important when using Lean as library that is invoked from a different programming language (e.g., Haskell). + option(AUTO_THREAD_FINALIZATION "AUTO_THREAD_FINALIZATION" ON) diff --git a/sci-mathematics/lean/lean-4.14.0-r1.ebuild b/sci-mathematics/lean/lean-4.14.0-r1.ebuild new file mode 100644 index 000000000000..153bf8d286fb --- /dev/null +++ b/sci-mathematics/lean/lean-4.14.0-r1.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +MAJOR="$(ver_cut 1)" + +CMAKE_MAKEFILE_GENERATOR="emake" +PYTHON_COMPAT=( python3_{11..13} ) + +inherit check-reqs cmake flag-o-matic python-any-r1 + +DESCRIPTION="The Lean Theorem Prover" +HOMEPAGE="https://leanprover-community.github.io/ + https://github.com/leanprover/lean4/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/leanprover/${PN}${MAJOR}.git" +else + SRC_URI="https://github.com/leanprover/${PN}${MAJOR}/archive/refs/tags/v${PV/_/-}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/${PN}${MAJOR}-${PV/_/-}" + + KEYWORDS="~amd64" +fi + +LICENSE="Apache-2.0" +SLOT="0/${MAJOR}" +IUSE="debug source" + +RDEPEND=" + dev-libs/gmp:= + dev-libs/libuv:= + sci-mathematics/cadical +" +DEPEND=" + ${RDEPEND} +" +BDEPEND=" + ${PYTHON_DEPS} +" + +PATCHES=( "${FILESDIR}/lean-4.14.0-src-cmakelists.patch" ) + +CHECKREQS_DISK_BUILD="4G" +CHECKREQS_DISK_USR="2G" + +# Built by lean's build tool. +QA_FLAGS_IGNORED=" +usr/lib/lean/libInit_shared.so +usr/lib/lean/libleanshared_1.so +" + +pkg_setup() { + python-any-r1_pkg_setup +} + +src_prepare() { + filter-lto + + sed -e "s|-O[23]|${CFLAGS}|g" -i ./src/CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + local CMAKE_BUILD_TYPE="" + + if use debug ; then + CMAKE_BUILD_TYPE="Debug" + else + CMAKE_BUILD_TYPE="Release" + fi + + local -a mycmakeargs=( + -DCCACHE="OFF" + -DGIT_HASH="OFF" + -DINSTALL_LICENSE="OFF" + -DLEANC_EXTRA_FLAGS="${CFLAGS}" + -DLEAN_EXTRA_CXX_FLAGS="${CXXFLAGS}" + -DLEAN_EXTRA_LINKER_FLAGS="${LDFLAGS}" + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + # Build/install process copies "cadical" from CBUILD host. + rm "${ED}/usr/bin/cadical" || die + + if ! use source ; then + rm -r "${ED}/usr/src" || die + fi +} diff --git a/sci-mathematics/lean/lean-4.2.0.ebuild b/sci-mathematics/lean/lean-4.2.0.ebuild deleted file mode 100644 index 4f9f3b199ff1..000000000000 --- a/sci-mathematics/lean/lean-4.2.0.ebuild +++ /dev/null @@ -1,78 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -MAJOR="$(ver_cut 1)" - -CMAKE_MAKEFILE_GENERATOR="emake" -PYTHON_COMPAT=( python3_{10..12} ) - -inherit cmake flag-o-matic python-any-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/${PN}${MAJOR}.git" -else - SRC_URI="https://github.com/leanprover/${PN}${MAJOR}/archive/refs/tags/v${PV/_/-}.tar.gz - -> ${P}.tar.gz" - S="${WORKDIR}/${PN}${MAJOR}-${PV/_/-}" - - KEYWORDS="amd64" -fi - -LICENSE="Apache-2.0" -SLOT="0/${MAJOR}" -IUSE="debug source" - -RDEPEND=" - dev-libs/gmp:= -" -DEPEND=" - ${RDEPEND} -" -BDEPEND=" - ${PYTHON_DEPS} -" - -pkg_setup() { - python-any-r1_pkg_setup -} - -src_prepare() { - filter-lto - - sed -e "s|-O[23]|${CFLAGS}|g" -i src/CMakeLists.txt || die - - cmake_src_prepare -} - -src_configure() { - local CMAKE_BUILD_TYPE - - if use debug ; then - CMAKE_BUILD_TYPE="Debug" - else - CMAKE_BUILD_TYPE="Release" - fi - - local -a mycmakeargs=( - -DLEAN_EXTRA_CXX_FLAGS="${CXXFLAGS}" - -DLEAN_EXTRA_LINKER_FLAGS="${LDFLAGS}" - ) - cmake_src_configure -} - -src_install() { - cmake_src_install - - rm "${ED}/usr/LICENSE"* || die - - if ! use source ; then - rm -r "${ED}/usr/src" || die - fi -} diff --git a/sci-mathematics/lean/metadata.xml b/sci-mathematics/lean/metadata.xml index ddb0be8a571c..c43ac3a1bfb1 100644 --- a/sci-mathematics/lean/metadata.xml +++ b/sci-mathematics/lean/metadata.xml @@ -8,10 +8,15 @@ The Lean theorem prover is a proof assistant developed principally - by Leonardo de Moura at Microsoft Research. + by Leonardo de Moura at Microsoft Research. Lean is a functional + programming language that makes it easy to write correct and + maintainable code. You can also use Lean as an interactive theorem + prover. Lean programming primarily involves defining types and + functions. This allows your focus to remain on the problem domain and + manipulating its data, rather than the details of programming. - https://github.com/leanprover-community/lean/issues - leanprover-community/lean + https://github.com/leanprover/lean4/issues + leanprover/lean4 -- cgit v1.2.3