Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/tig/
Date: Fri, 26 Aug 2022 06:03:30
Message-Id: 1661493795.6f6351833107ff717b0d8717672c27079b2697c2.chutzpah@gentoo
1 commit: 6f6351833107ff717b0d8717672c27079b2697c2
2 Author: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
3 AuthorDate: Fri Aug 26 06:03:15 2022 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Fri Aug 26 06:03:15 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f635183
7
8 dev-vcs/tig: add 2.5.7
9
10 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
11
12 dev-vcs/tig/Manifest | 1 +
13 dev-vcs/tig/tig-2.5.7.ebuild | 66 ++++++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 67 insertions(+)
15
16 diff --git a/dev-vcs/tig/Manifest b/dev-vcs/tig/Manifest
17 index 3b6da3c15916..a16b08f9cb40 100644
18 --- a/dev-vcs/tig/Manifest
19 +++ b/dev-vcs/tig/Manifest
20 @@ -1,2 +1,3 @@
21 DIST tig-2.5.5.tar.gz 1175752 BLAKE2B c77ff0990e5984df6a247cddb1729532719617178fb89143f1f78817f686cb357bc80678e8a1c245c338a40c20c69473b554d8af83381386821358495ed26f29 SHA512 63f617dfcbd89de715573caa92ca83906cefa6a5229876f1d5390b4b58442b0bec958065b798d4e81729dc87bf6dcd2a392fbbab2cd66ca16df6e2e9d6362ca3
22 DIST tig-2.5.6.tar.gz 1176006 BLAKE2B eda766b32022fd6d849048107d9de90cb668ac594db1f46ee94984a5487f1a01c3109e3279c2c9e2260ef04ad7687b8c5eeb52ecf0b5e9d5c4b1f649aa23d46f SHA512 4d55061db43d64be9c97589d37305f6dcd85f1e7381012a9d61d21226dad456a86b16401fffe7763808dab62f07e17b2bcd17b9a30e1349e252be85f479e3741
23 +DIST tig-2.5.7.tar.gz 1176146 BLAKE2B e67847741469a776f5cfb9c7f51fd651c81ed2c03e4627e708481eca3a47dfdebb3ef1d827cccb01ec0b5de7514bfe4b6e9e5dcfc1d39469d21eb6297e4c3086 SHA512 26adbb8dc43ef7ec1eaf5d6def29a8b6dcf5e30825242fc489208139c8720805a265dd1ba412601df692f6d0438ee9e3171a3f8a3cc4599841d82dfc08a9ea1f
24
25 diff --git a/dev-vcs/tig/tig-2.5.7.ebuild b/dev-vcs/tig/tig-2.5.7.ebuild
26 new file mode 100644
27 index 000000000000..656ca0a2e20b
28 --- /dev/null
29 +++ b/dev-vcs/tig/tig-2.5.7.ebuild
30 @@ -0,0 +1,66 @@
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 +if [[ ${PV} == "9999" ]] ; then
39 + EGIT_REPO_URI="https://github.com/jonas/tig.git"
40 + inherit git-r3 autotools
41 +else
42 + SRC_URI="https://github.com/jonas/tig/releases/download/${P}/${P}.tar.gz"
43 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
44 +fi
45 +
46 +DESCRIPTION="text mode interface for git"
47 +HOMEPAGE="https://jonas.github.io/tig/"
48 +
49 +LICENSE="GPL-2"
50 +SLOT="0"
51 +IUSE="pcre test unicode"
52 +REQUIRED_USE="test? ( unicode )"
53 +
54 +DEPEND="
55 + sys-libs/ncurses:=[unicode(+)?]
56 + sys-libs/readline:0=
57 + pcre? ( dev-libs/libpcre2:= )
58 +"
59 +RDEPEND="
60 + ${DEPEND}
61 + dev-vcs/git
62 +"
63 +[[ ${PV} == "9999" ]] && BDEPEND+=" app-text/asciidoc app-text/xmlto"
64 +
65 +# encoding/env issues
66 +RESTRICT="test"
67 +
68 +src_prepare() {
69 + default
70 + [[ ${PV} == "9999" ]] && eautoreconf
71 +}
72 +
73 +src_configure() {
74 + econf \
75 + $(use_with pcre) \
76 + $(use_with unicode ncursesw)
77 +}
78 +
79 +src_compile() {
80 + emake V=1
81 + [[ ${PV} == "9999" ]] && emake V=1 doc-man doc-html
82 +}
83 +
84 +src_test() {
85 + # workaround parallel test failures
86 + LC_ALL=en_US.utf8 emake -j1 test
87 +}
88 +
89 +src_install() {
90 + emake DESTDIR="${D}" install install-doc-man
91 + dodoc doc/manual.html README.html NEWS.html
92 + newbashcomp contrib/tig-completion.bash ${PN}
93 +
94 + docinto examples
95 + dodoc contrib/*.tigrc
96 +}