From: "Maciej Barć" <xgqt@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/lean/
Date: Fri, 26 Nov 2021 14:16:44 +0000 (UTC) [thread overview]
Message-ID: <1637936201.0ceb76e690bd355afa6d84a9d2f2ebcaec422baa.xgqt@gentoo> (raw)
commit: 0ceb76e690bd355afa6d84a9d2f2ebcaec422baa
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Fri Nov 26 14:04:04 2021 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Fri Nov 26 14:16:41 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0ceb76e6
sci-mathematics/lean: always use non-hardcoded MAJOR; use readme.gentoo
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
.../{lean-3.35.1.ebuild => lean-3.35.1-r1.ebuild} | 25 ++++++++++++++--------
1 file changed, 16 insertions(+), 9 deletions(-)
diff --git a/sci-mathematics/lean/lean-3.35.1.ebuild b/sci-mathematics/lean/lean-3.35.1-r1.ebuild
similarity index 69%
rename from sci-mathematics/lean/lean-3.35.1.ebuild
rename to sci-mathematics/lean/lean-3.35.1-r1.ebuild
index 71e0662ac80e..cc208dc27850 100644
--- a/sci-mathematics/lean/lean-3.35.1.ebuild
+++ b/sci-mathematics/lean/lean-3.35.1-r1.ebuild
@@ -3,19 +3,18 @@
EAPI=8
+MAJOR=$(ver_cut 1)
CMAKE_IN_SOURCE_BUILD="ON"
-inherit cmake optfeature
+inherit cmake optfeature readme.gentoo-r1
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 ~x86"
fi
@@ -58,11 +57,19 @@ src_test() {
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() {
- elog "You probably want to use lean with mathlib, 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 some time)"
- elog " $ leanpkg install https://github.com/leanprover-community/mathlib"
+ readme.gentoo_print_elog
}
next reply other threads:[~2021-11-26 14:16 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-26 14:16 Maciej Barć [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-11-26 14:16 [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/lean/ Maciej Barć
2021-12-04 2:36 Maciej Barć
2021-12-25 20:46 Maciej Barć
2022-01-08 3:02 Maciej Barć
2022-01-30 19:21 Maciej Barć
2022-02-08 17:21 Maciej Barć
2022-02-08 17:21 Maciej Barć
2022-02-22 18:34 Maciej Barć
2022-02-22 18:34 Maciej Barć
2022-02-22 18:34 Maciej Barć
2022-03-12 10:11 Maciej Barć
2022-03-12 10:17 Maciej Barć
2022-03-18 19:38 Maciej Barć
2022-03-26 19:47 Agostino Sarubbo
2022-03-27 1:52 Maciej Barć
2022-03-27 1:52 Maciej Barć
2022-05-18 19:29 Maciej Barć
2022-05-18 19:29 Maciej Barć
2022-06-27 14:50 Maciej Barć
2022-06-27 14:50 Maciej Barć
2022-07-14 10:05 Maciej Barć
2022-07-14 10:05 Maciej Barć
2022-08-02 21:42 Maciej Barć
2022-08-09 0:57 Maciej Barć
2022-08-09 0:57 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-30 14:35 Maciej Barć
2022-08-30 14:35 Maciej Barć
2022-11-12 5:19 Maciej Barć
2022-11-12 5:19 Maciej Barć
2022-11-18 22:15 Maciej Barć
2022-12-15 8:41 Maciej Barć
2022-12-15 8:41 Maciej Barć
2022-12-15 8:41 Maciej Barć
2022-12-21 23:49 Maciej Barć
2022-12-21 23:52 Sam James
2022-12-24 2:47 Maciej Barć
2022-12-24 2:47 Maciej Barć
2022-12-27 2:21 Maciej Barć
2022-12-27 2:21 Maciej Barć
2023-04-18 13:55 Maciej Barć
2023-04-18 13:55 Maciej Barć
2023-05-17 20:45 Maciej Barć
2023-05-24 23:29 Maciej Barć
2023-05-26 7:15 Sam James
2023-08-15 15:45 Arthur Zamarin
2023-10-07 14:57 Maciej Barć
2023-10-07 14:57 Maciej Barć
2023-10-07 14:57 Maciej Barć
2023-10-26 13:13 Maciej Barć
2023-10-26 13:13 Maciej Barć
2023-11-30 16:54 Maciej Barć
2024-01-15 21:20 Maciej Barć
2024-01-18 17:25 Sam James
2024-09-19 22:01 Maciej Barć
2024-09-19 22:01 Maciej Barć
2024-12-14 15:58 Sam James
2025-01-02 21:49 Maciej Barć
2025-01-02 21:49 Maciej Barć
2025-01-02 23:10 Maciej Barć
2025-02-19 7:32 Arthur Zamarin
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=1637936201.0ceb76e690bd355afa6d84a9d2f2ebcaec422baa.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