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, 02 Mar 2022 02:19:44
Message-Id: 1646187543.19c261add236d160d382332ce29785558f394bf9.sam@gentoo
1 commit: 19c261add236d160d382332ce29785558f394bf9
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Tue Mar 1 23:41:46 2022 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 2 02:19:03 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=19c261ad
7
8 app-text/lesspipe: add 2.04
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 app-text/lesspipe/Manifest | 1 +
13 app-text/lesspipe/lesspipe-2.04.ebuild | 42 ++++++++++++++++++++++++++++++++++
14 2 files changed, 43 insertions(+)
15
16 diff --git a/app-text/lesspipe/Manifest b/app-text/lesspipe/Manifest
17 index ab31d874e0f5..e3edb43046cf 100644
18 --- a/app-text/lesspipe/Manifest
19 +++ b/app-text/lesspipe/Manifest
20 @@ -1,2 +1,3 @@
21 DIST lesspipe-1.91.tar.gz 121965 BLAKE2B 93c169b2b1a81db7e7b569718a43152a8f2b9ea95258047a00ae4940509817a3eb861fdadb6bafc5861c49e805ce910348a57f634bdae57317811ac6fbfc6945 SHA512 d080ceaae019d8885a53c8abb26f4a159b78578f68c2b9a024960aa69509651e3b6638e78bd6e2e57c23d81123d9a3cab167736f253ba4276a3889890d594bd3
22 DIST lesspipe-2.03.tar.gz 166602 BLAKE2B a90324726f0401417c0f452f489463ac2ef2a710b790ef41c306803dc5c981637530abe034048c0739c1cd698b7901fcdcc074350d1d2a87f848ad5c4f9807ac SHA512 d83b4532f7f1cb58c48e274b34ad1f16c3392b120fbca1d66ff45997e1a28ca8804574e19522745f56344944fa8219ea0457dcb9579bd9b9fe7a8df8a82113f6
23 +DIST lesspipe-2.04.tar.gz 166831 BLAKE2B c33620b1c2714b01a89eaaeaeccfd72e62fd5123270ec84d3e27e914bda8f734758b36ea850126aa1ecd6ab36b9442577ac591024c373bdf6540b95816ed750b SHA512 04312d21c4f45b1630efd597ffafd69fc46ceff1fd5872d296a7811940f9d34da805c4ef4fa543af839de7e8bb4225c6ef5e680e9675eae4f56de669ec975669
24
25 diff --git a/app-text/lesspipe/lesspipe-2.04.ebuild b/app-text/lesspipe/lesspipe-2.04.ebuild
26 new file mode 100644
27 index 000000000000..ece7aa8140b7
28 --- /dev/null
29 +++ b/app-text/lesspipe/lesspipe-2.04.ebuild
30 @@ -0,0 +1,42 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +DESCRIPTION="A preprocessor for less"
37 +HOMEPAGE="https://github.com/wofr06/lesspipe"
38 +SRC_URI="https://github.com/wofr06/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
39 +
40 +LICENSE="GPL-2"
41 +SLOT="0"
42 +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"
43 +
44 +# Please check again on bumps!
45 +# bug #734896
46 +RESTRICT="test"
47 +
48 +BDEPEND="dev-lang/perl"
49 +RDEPEND="${DEPEND}"
50 +
51 +src_configure() {
52 + # Not an autoconf script.
53 + ./configure --fixed || die
54 +}
55 +
56 +src_compile() {
57 + # Nothing to build (avoids the "all" target)
58 + :
59 +}
60 +
61 +src_install() {
62 + emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install
63 + einstalldocs
64 +}
65 +
66 +pkg_preinst() {
67 + if [[ -z ${REPLACING_VERSIONS} ]] ; then
68 + elog "This package installs 'lesspipe.sh' which is distinct from 'lesspipe'."
69 + elog "The latter is the Gentoo-specific version. Make sure to update your"
70 + elog "LESSOPEN environment variable if you wish to use this copy."
71 + fi
72 +}