Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/less/
Date: Wed, 28 Apr 2021 18:09:08
Message-Id: 1619633337.5db40d6c6aa7f8b5602b340a866c92a2af385a09.polynomial-c@gentoo
1 commit: 5db40d6c6aa7f8b5602b340a866c92a2af385a09
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 28 18:08:24 2021 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 28 18:08:57 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5db40d6c
7
8 sys-apps/less: Bump to version 581.2
9
10 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
11
12 sys-apps/less/Manifest | 1 +
13 sys-apps/less/less-581.2.ebuild | 44 +++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 45 insertions(+)
15
16 diff --git a/sys-apps/less/Manifest b/sys-apps/less/Manifest
17 index 3aeacef6ca1..241782dd237 100644
18 --- a/sys-apps/less/Manifest
19 +++ b/sys-apps/less/Manifest
20 @@ -1,2 +1,3 @@
21 DIST less-563.tar.gz 335508 BLAKE2B 813e54b9a115600e4f20009ccad3708efc64ab4ee940aa3624e968045557bbfef6ace49b791f4b9efff86bf43df9fe2a04a160e76718396e0dae17f0bdaa62fb SHA512 79384ff3faa33aeb86da6027c8b264df78f9f8c799af43dc5340e2ca3d86053c9be168140bfa05734a4217e65ef9939652b004d6a536f64b2e0ef3b74b07f535
22 +DIST less-581.2.tar.gz 349230 BLAKE2B 3f9d3c94f3d9eae5ecd033c5f16a575bd3a179ca335b0318e097a916c6713379cafbe6c57459e86866e890a432fb02be9102726b35c46d9bdd07ca1b35f83058 SHA512 b1189396c798d7cb8655175f31b1af6163dcf8e8d7a72531161cc8396e72e0cf5858ce7b39173be603f9f16eda498f2805cf42c2b92ec6970fd9d2b603fb7b92
23 DIST less-581.tar.gz 349180 BLAKE2B 94ae4d4e3fea26499e3bcbd0edef98d0542b392cc4311e107111c332c6df962688d3326a7ca084079b753bc83779541c4810c01cf94ab3077175033069f349a1 SHA512 b2892c73fb6e8a5cb5d5c22280c653194d6a1667a7d65a4b972a76038818cce827f1d00f266d6222e65f93fecfe1760d30109e9d2cf1aa6872b476b49eecefd9
24
25 diff --git a/sys-apps/less/less-581.2.ebuild b/sys-apps/less/less-581.2.ebuild
26 new file mode 100644
27 index 00000000000..c91345dc9f3
28 --- /dev/null
29 +++ b/sys-apps/less/less-581.2.ebuild
30 @@ -0,0 +1,44 @@
31 +# Copyright 1999-2021 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +DESCRIPTION="Excellent text file viewer"
37 +HOMEPAGE="http://www.greenwoodsoftware.com/less/"
38 +SRC_URI="http://www.greenwoodsoftware.com/less/${P}.tar.gz"
39 +
40 +LICENSE="|| ( GPL-3 BSD-2 )"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
43 +IUSE="pcre unicode"
44 +
45 +DEPEND=">=app-misc/editor-wrapper-3
46 + >=sys-libs/ncurses-5.2:0=
47 + pcre? ( dev-libs/libpcre2 )"
48 +RDEPEND="${DEPEND}"
49 +
50 +src_configure() {
51 + export ac_cv_lib_ncursesw_initscr=$(usex unicode)
52 + export ac_cv_lib_ncurses_initscr=$(usex !unicode)
53 + local myeconfargs=(
54 + --with-regex=$(usex pcre pcre2 posix)
55 + --with-editor="${EPREFIX}"/usr/libexec/editor
56 + )
57 + econf "${myeconfargs[@]}"
58 +}
59 +
60 +src_install() {
61 + default
62 +
63 + newbin "${FILESDIR}"/lesspipe-r1.sh lesspipe
64 + newenvd "${FILESDIR}"/less.envd 70less
65 +}
66 +
67 +pkg_preinst() {
68 + if has_version "<${CATEGORY}/${PN}-483-r1" ; then
69 + elog "The lesspipe.sh symlink has been dropped. If you are still setting"
70 + elog "LESSOPEN to that, you will need to update it to '|lesspipe %s'."
71 + elog "Colorization support has been dropped. If you want that, check out"
72 + elog "the new app-text/lesspipe package."
73 + fi
74 +}