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: Wed, 29 Dec 2021 05:35:13
Message-Id: 1640756055.76e5aadbbb8cab1392cf2ba273b95a8550275fca.sam@gentoo
1 commit: 76e5aadbbb8cab1392cf2ba273b95a8550275fca
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Wed Dec 29 04:07:50 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Dec 29 05:34:15 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76e5aadb
7
8 app-text/lesspipe: add 2.00
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 app-text/lesspipe/Manifest | 1 +
13 app-text/lesspipe/lesspipe-2.00.ebuild | 43 ++++++++++++++++++++++++++++++++++
14 2 files changed, 44 insertions(+)
15
16 diff --git a/app-text/lesspipe/Manifest b/app-text/lesspipe/Manifest
17 index ea1f332fce7b..ba2ef82f29e0 100644
18 --- a/app-text/lesspipe/Manifest
19 +++ b/app-text/lesspipe/Manifest
20 @@ -2,3 +2,4 @@ DIST lesspipe-1.85.tar.gz 120568 BLAKE2B d2c00f4121dc1bbed6b82220dac038068bbff87
21 DIST lesspipe-1.89.tar.gz 121118 BLAKE2B e730b6e8afc767a0118abbcc6221d2c18467393119c26baf71b8758b5826ba52230526b9c5cd67704aadda07b63a62dfe006db10de1dbae0a73ede1885b03ed0 SHA512 b8d7c92d3dae77f2ccee8e314af4354fefc9f3aaec1566af02c9be2640f11ebf7ea1432334470c5d5dbce39d2ac7c3e9f4074bcf9ee4a502dc59b370a21b54f5
22 DIST lesspipe-1.90.tar.gz 121098 BLAKE2B 269f4193f423e4ac5770171156e2f63d14966d7dcc77bf015c3100f281206424ef334acc1edf2edb6fe31f73aed80b9c3ba6c715d6e97993c5a90dfc1ce42405 SHA512 d402bd46c37d2509c90530e9da0560fa3e5da9002c37a515451a8ab9275576d1af44793a10914e74e804f10a3352439815c6763d2d77e5e41a0e9840286f518e
23 DIST lesspipe-1.91.tar.gz 121965 BLAKE2B 93c169b2b1a81db7e7b569718a43152a8f2b9ea95258047a00ae4940509817a3eb861fdadb6bafc5861c49e805ce910348a57f634bdae57317811ac6fbfc6945 SHA512 d080ceaae019d8885a53c8abb26f4a159b78578f68c2b9a024960aa69509651e3b6638e78bd6e2e57c23d81123d9a3cab167736f253ba4276a3889890d594bd3
24 +DIST lesspipe-2.00.tar.gz 190295 BLAKE2B 8f950853673e7939d6dd67c5022219ab101eea26b8efec1a7572e3c2c8465a14d09acbe945b204e927444b10953309b27fa47c5661df02e67aa2e2b98a940980 SHA512 f709bae63b17617d2c02bbe691736826c857ba1771907e37ba56bd407a29c2092a936ecb43d6a6e180a1d2eb5f54dccc894d2cf4eb113d42b4892ca6d8a4378d
25
26 diff --git a/app-text/lesspipe/lesspipe-2.00.ebuild b/app-text/lesspipe/lesspipe-2.00.ebuild
27 new file mode 100644
28 index 000000000000..c6c0557f8a33
29 --- /dev/null
30 +++ b/app-text/lesspipe/lesspipe-2.00.ebuild
31 @@ -0,0 +1,43 @@
32 +# Copyright 1999-2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +DESCRIPTION="A preprocessor for less"
38 +HOMEPAGE="https://github.com/wofr06/lesspipe"
39 +SRC_URI="https://github.com/wofr06/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
40 +
41 +LICENSE="GPL-2"
42 +SLOT="0"
43 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
44 +
45 +# Please check again on bumps!
46 +# bug #734896
47 +RESTRICT="test"
48 +
49 +BDEPEND="dev-lang/perl"
50 +RDEPEND="${DEPEND}
51 + !<sys-apps/less-483-r1"
52 +
53 +src_configure() {
54 + # Not an autoconf script.
55 + ./configure --fixed || die
56 +}
57 +
58 +src_compile() {
59 + # Nothing to build (avoids the "all" target)
60 + :
61 +}
62 +
63 +src_install() {
64 + emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install
65 + einstalldocs
66 +}
67 +
68 +pkg_preinst() {
69 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
70 + elog "This package installs 'lesspipe.sh' which is distinct from 'lesspipe'."
71 + elog "The latter is the Gentoo-specific version. Make sure to update your"
72 + elog "LESSOPEN environment variable if you wish to use this copy."
73 + fi
74 +}