Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/lesspipe/
Date: Thu, 18 Aug 2022 03:10:26
Message-Id: 1660792197.bb2641741479ad64a0959c6eb3b80c4b6106e056.sam@gentoo
1 commit: bb2641741479ad64a0959c6eb3b80c4b6106e056
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Thu Aug 18 02:58:18 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Thu Aug 18 03:09:57 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb264174
7
8 app-text/lesspipe: add 2.06
9
10 Bug: https://bugs.gentoo.org/865631
11 Signed-off-by: Sam James <sam <AT> gentoo.org>
12
13 app-text/lesspipe/Manifest | 1 +
14 app-text/lesspipe/lesspipe-2.06.ebuild | 52 ++++++++++++++++++++++++++++++++++
15 2 files changed, 53 insertions(+)
16
17 diff --git a/app-text/lesspipe/Manifest b/app-text/lesspipe/Manifest
18 index ffb4af808828..8cfe33b34fa5 100644
19 --- a/app-text/lesspipe/Manifest
20 +++ b/app-text/lesspipe/Manifest
21 @@ -1 +1,2 @@
22 DIST lesspipe-2.05.tar.gz 167135 BLAKE2B 6f54a68a3857fcafa19148ba798d6ac49b2693e547e88a4a4fb6a178768d75ba8ae08e808a9e08aabfe903538bd401e3bd25e22ec240bf3a52365df729d87b9e SHA512 b4220b28fb609060735663067f5a738cae32d12e90efc397db3749e4dcfa7bfc063a4458c1f39b8a43be3b04effdc00a25c4feebd6e9a3b23f0064b879bbb698
23 +DIST lesspipe-2.06.tar.gz 168100 BLAKE2B a7447efa85cd422343f9dbb06001e85fa7b33c92db752f8248e4b4a0d9ecce4ef0241240d6993c5a71157c44da2f4ffc3efd41ac5e0a31e89ed5b80ac99f71fe SHA512 b2411c5e6b287fb67e1ea9b6d10377fe19b58e8c0f54587f825d1ee4c1a85f9a8ed3244a7cf339bcba960094e95821d9a56929951d862eb697f1d12fe55ef20d
24
25 diff --git a/app-text/lesspipe/lesspipe-2.06.ebuild b/app-text/lesspipe/lesspipe-2.06.ebuild
26 new file mode 100644
27 index 000000000000..b16b5f900cda
28 --- /dev/null
29 +++ b/app-text/lesspipe/lesspipe-2.06.ebuild
30 @@ -0,0 +1,52 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +inherit bash-completion-r1
37 +
38 +DESCRIPTION="A preprocessor for less"
39 +HOMEPAGE="https://github.com/wofr06/lesspipe"
40 +SRC_URI="https://github.com/wofr06/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
45 +IUSE="test"
46 +
47 +# Please check again on bumps!
48 +# bug #734896
49 +RESTRICT="!test? ( test ) test"
50 +
51 +RDEPEND="dev-lang/perl"
52 +BDEPEND="
53 + ${RDEPEND}
54 + virtual/pkgconfig
55 + test? ( app-editors/vim )
56 +"
57 +
58 +src_configure() {
59 + # Not an autoconf script.
60 + ./configure --fixed || die
61 +}
62 +
63 +src_compile() {
64 + # Nothing to build (avoids the "all" target)
65 + :
66 +}
67 +
68 +src_install() {
69 + emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install
70 + einstalldocs
71 +
72 + rm -r "${ED}"/etc/bashcompletion.d || die
73 + newbashcomp less_completion less
74 +}
75 +
76 +pkg_preinst() {
77 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
78 + elog "This package installs 'lesspipe.sh' which is distinct from 'lesspipe'."
79 + elog "The latter is the Gentoo-specific version. Make sure to update your"
80 + elog "LESSOPEN environment variable if you wish to use this copy."
81 + fi
82 +}