public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/lean/
Date: Wed, 24 May 2023 23:29:28 +0000 (UTC)	[thread overview]
Message-ID: <1684970106.fe3cf754c1e7031e14cfbe8491fc00e6de38ab81.xgqt@gentoo> (raw)

commit:     fe3cf754c1e7031e14cfbe8491fc00e6de38ab81
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Wed May 24 23:15:06 2023 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Wed May 24 23:15:06 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe3cf754

sci-mathematics/lean: bump to 3.51.1

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 sci-mathematics/lean/Manifest           |  1 +
 sci-mathematics/lean/lean-3.51.1.ebuild | 80 +++++++++++++++++++++++++++++++++
 2 files changed, 81 insertions(+)

diff --git a/sci-mathematics/lean/Manifest b/sci-mathematics/lean/Manifest
index 065df8cd90b3..a7e68689fb92 100644
--- a/sci-mathematics/lean/Manifest
+++ b/sci-mathematics/lean/Manifest
@@ -1,3 +1,4 @@
 DIST lean-3.49.0.tar.gz 1918154 BLAKE2B 9f9973d00d2d5d5b7d26d50117c27754feb5132e88decd55859432a384dac2897184dcf8d841ad0034854657ac25e462dc69cdbe1cf2040787d108bb7e1370f4 SHA512 b4672843c2e923da8d56b91c14966fc2ec66c573564d68db9c52f9b40f2c97d82497f2ef6424b023c4ae50f6f0c11674e2d79053844ea669d226d0fe24077ade
 DIST lean-3.50.3.tar.gz 1918462 BLAKE2B f8cb3857989e4966c12a9b4f4a13403ceab0ae9d33ddf81970ef886fb1f46bfd14bfc15aea498ea360cc801224c60489f0ce3b33fe10bead4dcbf3f6a06eee93 SHA512 849b9e8854585ce119f87e8bea655bcb834f1f986bccbf5ffa148fd4a1aae2030b6be938adbf377f0076361a3d9338802e1af8965f01b9c4d2a0517be330beef
 DIST lean-3.51.0.tar.gz 1918905 BLAKE2B 83131417011d89846084608fc9b6b5b8254584da63b2e2d7626064a170c3bd3780973483ce60afc49713df840e150c4ed92951bfd7fbdeb520791e58164313cd SHA512 712c5520d298cf7098f5e5d787ba91096d73ba08a15581f4478836c7790679950a1a0b0d7d9c876b1557ae7dc56b10430ac1b4227b5d30ac1ad398e196c2fb11
+DIST lean-3.51.1.tar.gz 1918894 BLAKE2B 9a240fe73193794a57001582c0623052cfc1c08ef3b155cac2d9dfc029202cb79b85e844fdf068e454498a35522ec3e18330da8c644bba3c6f708cbde04816f7 SHA512 dccdf6c3fbcd98115e62b9944645af6a2ce21412d63baa9565871807862e8d83cc6f29d1fb687f19b802240a5f9c019443caa00412ecfabe621744dff900e3ee

diff --git a/sci-mathematics/lean/lean-3.51.1.ebuild b/sci-mathematics/lean/lean-3.51.1.ebuild
new file mode 100644
index 000000000000..72a23985077c
--- /dev/null
+++ b/sci-mathematics/lean/lean-3.51.1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2023 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}-3.50.3-gcc-13.patch
+	"${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 -a 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 -a 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
+}


             reply	other threads:[~2023-05-24 23:29 UTC|newest]

Thread overview: 64+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-24 23:29 Maciej Barć [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-19  7:32 [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/lean/ Arthur Zamarin
2025-01-02 23:10 Maciej Barć
2025-01-02 21:49 Maciej Barć
2025-01-02 21:49 Maciej Barć
2024-12-14 15:58 Sam James
2024-09-19 22:01 Maciej Barć
2024-09-19 22:01 Maciej Barć
2024-01-18 17:25 Sam James
2024-01-15 21:20 Maciej Barć
2023-11-30 16:54 Maciej Barć
2023-10-26 13:13 Maciej Barć
2023-10-26 13:13 Maciej Barć
2023-10-07 14:57 Maciej Barć
2023-10-07 14:57 Maciej Barć
2023-10-07 14:57 Maciej Barć
2023-08-15 15:45 Arthur Zamarin
2023-05-26  7:15 Sam James
2023-05-17 20:45 Maciej Barć
2023-04-18 13:55 Maciej Barć
2023-04-18 13:55 Maciej Barć
2022-12-27  2:21 Maciej Barć
2022-12-27  2:21 Maciej Barć
2022-12-24  2:47 Maciej Barć
2022-12-24  2:47 Maciej Barć
2022-12-21 23:52 Sam James
2022-12-21 23:49 Maciej Barć
2022-12-15  8:41 Maciej Barć
2022-12-15  8:41 Maciej Barć
2022-12-15  8:41 Maciej Barć
2022-11-18 22:15 Maciej Barć
2022-11-12  5:19 Maciej Barć
2022-11-12  5:19 Maciej Barć
2022-08-30 14:35 Maciej Barć
2022-08-30 14:35 Maciej Barć
2022-08-26  0:32 Maciej Barć
2022-08-26  0:32 Maciej Barć
2022-08-26  0:32 Maciej Barć
2022-08-09  0:57 Maciej Barć
2022-08-09  0:57 Maciej Barć
2022-08-02 21:42 Maciej Barć
2022-07-14 10:05 Maciej Barć
2022-07-14 10:05 Maciej Barć
2022-06-27 14:50 Maciej Barć
2022-06-27 14:50 Maciej Barć
2022-05-18 19:29 Maciej Barć
2022-05-18 19:29 Maciej Barć
2022-03-27  1:52 Maciej Barć
2022-03-27  1:52 Maciej Barć
2022-03-26 19:47 Agostino Sarubbo
2022-03-18 19:38 Maciej Barć
2022-03-12 10:17 Maciej Barć
2022-03-12 10:11 Maciej Barć
2022-02-22 18:34 Maciej Barć
2022-02-22 18:34 Maciej Barć
2022-02-22 18:34 Maciej Barć
2022-02-08 17:21 Maciej Barć
2022-02-08 17:21 Maciej Barć
2022-01-30 19:21 Maciej Barć
2022-01-08  3:02 Maciej Barć
2021-12-25 20:46 Maciej Barć
2021-12-04  2:36 Maciej Barć
2021-11-26 14:16 Maciej Barć
2021-11-26 14:16 Maciej Barć

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1684970106.fe3cf754c1e7031e14cfbe8491fc00e6de38ab81.xgqt@gentoo \
    --to=xgqt@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox