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: Fri, 15 Feb 2019 09:36:19
Message-Id: 1550223368.fb8ecf9fdaa8179003f735957a539b3e1569626c.polynomial-c@gentoo
1 commit: fb8ecf9fdaa8179003f735957a539b3e1569626c
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Feb 15 09:34:30 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 15 09:36:08 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb8ecf9f
7
8 Revert "sys-apps/less: Drop old"
9
10 This reverts commit d4db6ed0b1cd858a64cbf7516e65b3115033eb6f.
11 which is the last release being considered stable by upstream.
12
13 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
14
15 sys-apps/less/Manifest | 1 +
16 sys-apps/less/less-530.ebuild | 42 ++++++++++++++++++++++++++++++++++++++++++
17 2 files changed, 43 insertions(+)
18
19 diff --git a/sys-apps/less/Manifest b/sys-apps/less/Manifest
20 index dda4aa0b1ed..f9eb1925fee 100644
21 --- a/sys-apps/less/Manifest
22 +++ b/sys-apps/less/Manifest
23 @@ -1,3 +1,4 @@
24 +DIST less-530.tar.gz 339723 BLAKE2B 9321548b06330c0b1b5b5a36147f5b9348619ff15d907808744b89581edeb4d8c2118ba455d024a23850902cac4d2c34d1e7b9897e02769584315c0e67ef667e SHA512 8d83a18b5648c4fe85921a563aa2c40bcf495aeb611098c83cd167b1e2f706649846cdf457c8506ae2683ab362ad970a0b261747349673020894bccdb9acbc10
25 DIST less-531.tar.gz 340466 BLAKE2B 6ac75b623fce478114d18cff429659499fedf4ef1a7bb067465ace91c28a7968efb224a4994a1e376a8cf40b110492f10ecda634628029107b38187044a0cd1e SHA512 180b665f194d7cc40d4bbb37bd64b10be463c0705e81795bef84b20dbba1c61825bb3e3da8bcd79f9176bb3af7b1f4e4c3dfe0829a5a2195a11f5b42294daca1
26 DIST less-547.tar.gz 346045 BLAKE2B c6f8dedd0f2f3e4383617ed0013c08b74416e4b804f1dfb5f8617c929d7f2b0d8cb0590d765e9cd98c224c98511532e8ce892948eacd6ada489566f0e038a31f SHA512 4f85019a6617b90ac1dec4009f62e6ca223af326b08d1f39eaea39d96b5e975f4cc0072cdfa73cff8fa71fe7859cba36f0e58104cc5754fa5b262d8341743d51
27 DIST less-548.tar.gz 346139 BLAKE2B 0cdea7f3db069b8f4b4a070067f1956f0f2d86ff8061506c330fdcf4b3cfdbc56f22ffaba782190d799685129a446ef68bd3349fb50491ad6d84b6feee05fa65 SHA512 4e42ed3812d038634a12ae6f719869b228fe4ec270ceda560afb666543669f40c0c5746fc9b94c00584e78db356d900347ec5b7e3ca15249a9656dbd8b6b8dcb
28
29 diff --git a/sys-apps/less/less-530.ebuild b/sys-apps/less/less-530.ebuild
30 new file mode 100644
31 index 00000000000..212cdd7590b
32 --- /dev/null
33 +++ b/sys-apps/less/less-530.ebuild
34 @@ -0,0 +1,42 @@
35 +# Copyright 1999-2018 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +
38 +EAPI=6
39 +
40 +DESCRIPTION="Excellent text file viewer"
41 +HOMEPAGE="http://www.greenwoodsoftware.com/less/"
42 +SRC_URI="http://www.greenwoodsoftware.com/less/${P}.tar.gz"
43 +
44 +LICENSE="|| ( GPL-3 BSD-2 )"
45 +SLOT="0"
46 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
47 +IUSE="pcre unicode"
48 +
49 +DEPEND=">=app-misc/editor-wrapper-3
50 + >=sys-libs/ncurses-5.2:0=
51 + pcre? ( dev-libs/libpcre )"
52 +RDEPEND="${DEPEND}"
53 +
54 +src_configure() {
55 + export ac_cv_lib_ncursesw_initscr=$(usex unicode)
56 + export ac_cv_lib_ncurses_initscr=$(usex !unicode)
57 + econf \
58 + --with-regex=$(usex pcre pcre posix) \
59 + --with-editor="${EPREFIX}"/usr/libexec/editor
60 +}
61 +
62 +src_install() {
63 + default
64 +
65 + newbin "${FILESDIR}"/lesspipe.sh lesspipe
66 + newenvd "${FILESDIR}"/less.envd 70less
67 +}
68 +
69 +pkg_preinst() {
70 + if has_version "<${CATEGORY}/${PN}-483-r1" ; then
71 + elog "The lesspipe.sh symlink has been dropped. If you are still setting"
72 + elog "LESSOPEN to that, you will need to update it to '|lesspipe %s'."
73 + elog "Colorization support has been dropped. If you want that, check out"
74 + elog "the new app-text/lesspipe package."
75 + fi
76 +}