From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 91E56158086 for ; Fri, 26 Nov 2021 14:16:49 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C068B2BC01A; Fri, 26 Nov 2021 14:16:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1E7D92BC01A for ; Fri, 26 Nov 2021 14:16:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B3EC3342CD3 for ; Fri, 26 Nov 2021 14:16:46 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C3CC01C6 for ; Fri, 26 Nov 2021 14:16:44 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1637936201.0ceb76e690bd355afa6d84a9d2f2ebcaec422baa.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/lean/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/lean/lean-3.35.1-r1.ebuild sci-mathematics/lean/lean-3.35.1.ebuild X-VCS-Directories: sci-mathematics/lean/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 0ceb76e690bd355afa6d84a9d2f2ebcaec422baa X-VCS-Branch: master Date: Fri, 26 Nov 2021 14:16:44 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 90991979-5578-4a10-8d0f-d0dc307a5454 X-Archives-Hash: 7d3a99005235f13b74467f328e8495e6 commit: 0ceb76e690bd355afa6d84a9d2f2ebcaec422baa Author: Maciej Barć gentoo org> AuthorDate: Fri Nov 26 14:04:04 2021 +0000 Commit: Maciej Barć gentoo 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ć 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 }