1 |
commit: c9fad0064c8ddaf48f68c2f947e2979c9ace8420 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 26 18:48:02 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 26 18:48:02 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9fad006 |
7 |
|
8 |
app-text/lesspipe: add 1.89 |
9 |
|
10 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
11 |
|
12 |
app-text/lesspipe/Manifest | 1 + |
13 |
app-text/lesspipe/lesspipe-1.89.ebuild | 60 ++++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 61 insertions(+) |
15 |
|
16 |
diff --git a/app-text/lesspipe/Manifest b/app-text/lesspipe/Manifest |
17 |
index 09a0960c270..efff6c4552c 100644 |
18 |
--- a/app-text/lesspipe/Manifest |
19 |
+++ b/app-text/lesspipe/Manifest |
20 |
@@ -1,2 +1,3 @@ |
21 |
DIST lesspipe-1.85.tar.gz 120568 BLAKE2B d2c00f4121dc1bbed6b82220dac038068bbff87c732385399542cb212d4664c74d018db07829f90c38e938cb8623a443888c74b0d003fff725d0ddf207d8109e SHA512 420d087b9fc9783b9404855e4656b88c10852502bd2f1931978b7dc7ff15eba1a375b217184480f9b341322c12e7336d0861ba9c2f673f2b2a7fb340a381f5b2 |
22 |
DIST lesspipe-1.88.tar.gz 121053 BLAKE2B 9d754c38b7e13f11799c22ac75d1a3636a1c5a38f1f83bda5b41d24ae9a6ecda0191190edf72132b0bb4e09a16aa3696cad906269ad09c9d2e1f26b44cc6937e SHA512 ece17095e2ba4cabeb689f7a4eb2e04297ec4fd3910af719a067487127bea3f11d2946542048cf152cf9d269152fc5dfa4a57abb0ccd8f60c5e1f9f106f23559 |
23 |
+DIST lesspipe-1.89.tar.gz 121118 BLAKE2B e730b6e8afc767a0118abbcc6221d2c18467393119c26baf71b8758b5826ba52230526b9c5cd67704aadda07b63a62dfe006db10de1dbae0a73ede1885b03ed0 SHA512 b8d7c92d3dae77f2ccee8e314af4354fefc9f3aaec1566af02c9be2640f11ebf7ea1432334470c5d5dbce39d2ac7c3e9f4074bcf9ee4a502dc59b370a21b54f5 |
24 |
|
25 |
diff --git a/app-text/lesspipe/lesspipe-1.89.ebuild b/app-text/lesspipe/lesspipe-1.89.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..bc53c82f7b8 |
28 |
--- /dev/null |
29 |
+++ b/app-text/lesspipe/lesspipe-1.89.ebuild |
30 |
@@ -0,0 +1,60 @@ |
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="A preprocessor for less" |
37 |
+HOMEPAGE="https://github.com/wofr06/lesspipe" |
38 |
+SRC_URI="https://github.com/wofr06/${PN}/archive/${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 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
43 |
+ |
44 |
+# Tests are broken in 1.84, 1.85. |
45 |
+# Still fragile in 1.88. Passes when lesspipe is not installed. |
46 |
+# Please check again on bumps! |
47 |
+# bug #734896 |
48 |
+RESTRICT="test" |
49 |
+ |
50 |
+DEPEND="dev-lang/perl" |
51 |
+RDEPEND="${DEPEND} |
52 |
+ !<sys-apps/less-483-r1" |
53 |
+ |
54 |
+src_prepare() { |
55 |
+ default |
56 |
+ |
57 |
+ # Drop a failing test. Not ideal, however: |
58 |
+ # The test suite for this package is pretty fragile; it's more valuable |
59 |
+ # to have _something_ failing/passing overall, than relying on a single |
60 |
+ # test which seems to fail due to an unpredictable external command. |
61 |
+ sed -i -e '/#needs pstotext ps2ascii/d' TESTCMDS || die |
62 |
+} |
63 |
+ |
64 |
+src_configure() { |
65 |
+ # Not an autoconf script. |
66 |
+ ./configure --fixed || die |
67 |
+} |
68 |
+ |
69 |
+src_compile() { |
70 |
+ # Nothing to build (avoids the "all" target) |
71 |
+ : |
72 |
+} |
73 |
+ |
74 |
+src_test() { |
75 |
+ # LC_ALL=C manages to fix one test failure |
76 |
+ LC_ALL=C ./test.pl -d || die "Tests failed!" |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install |
81 |
+ einstalldocs |
82 |
+} |
83 |
+ |
84 |
+pkg_preinst() { |
85 |
+ if [[ -z ${REPLACING_VERSIONS} ]] ; then |
86 |
+ elog "This package installs 'lesspipe.sh' which is distinct from 'lesspipe'." |
87 |
+ elog "The latter is the Gentoo-specific version. Make sure to update your" |
88 |
+ elog "LESSOPEN environment variable if you wish to use this copy." |
89 |
+ fi |
90 |
+} |