dev-vcs/tig: add 2.6.1

Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
This commit is contained in:
Patrick McLean
2026-06-15 11:30:41 -07:00
parent 2d4fcf43c5
commit 5781feb4c7
2 changed files with 69 additions and 0 deletions

View File

@@ -2,3 +2,4 @@ DIST tig-2.5.10.tar.gz 1183631 BLAKE2B a2d58e9a79bf7fdabf74704a04f2d0dee30e8fd34
DIST tig-2.5.12.tar.gz 1190652 BLAKE2B a4abbe97e057c3e658bfafcd4caa186c56ca1a0e51802d1239a58fb0ebd2f6d7786f18dbc74d8888fe9fedb7f8e041872a327c50151e22cd008b4390617a6716 SHA512 b4960f7fcc77469e3941913f2b7cc2b8f13d96db931d73b62d7542f4eaabe792d2b43604f0b5043f910ef50063140982cc6be22b156ced184fc0f20704efd6cd
DIST tig-2.5.8.tar.gz 1179844 BLAKE2B eff20358443bd794de2985e1c76db8be25f4461ac82182a72004ab380156c15c5ed27dc1c66fb347b1f3d1ccddcead0a031638762e48f7e88a3b0593a278d3d7 SHA512 f4e7648ae7c58e936251f69071a092617368a04eabb4ae6726b2de1dbd305c559b7235f7aa70868f4ada02611196593a6e1c241062f57cd05a9c98685385053e
DIST tig-2.6.0.tar.gz 1196658 BLAKE2B 14734c886be092c556cb0df5d52be76f4d865fad21e13db5fd57d9e115e2306803536109cc1382e87c40afd8fb87e36855b81f049f43f3f67f62e64e68c1db45 SHA512 143b78db02b1062f3f75f538dda973b4a618ef6eec5abbbecf0c3056b040564f2c8a072b1ad556dc52755f40fd9d57560a0e7dbe21a10fb5a7ac727d1559e504
DIST tig-2.6.1.tar.gz 1200780 BLAKE2B 2b010a77af42ee3a148ac685567c39aaecdf6c6972666d5c615b8eb39f0ef73a5c0341006083224ef19d8683dec336e74293e32b68fe4bb6d4b81bce40b5735f SHA512 685fe0a5b6db87c3bab7914e47b43ad1c677f84ca1e86a0f9c9e6a86b5b338a9195901d2e07d9031f7cd6da241a238b000447e5e864d816a228847db63534c3e

View File

@@ -0,0 +1,68 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit shell-completion
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/jonas/tig.git"
inherit git-r3 autotools
else
SRC_URI="https://github.com/jonas/tig/releases/download/${P}/${P}.tar.gz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos"
fi
DESCRIPTION="text mode interface for git"
HOMEPAGE="https://jonas.github.io/tig/"
LICENSE="GPL-2"
SLOT="0"
IUSE="pcre test unicode"
REQUIRED_USE="test? ( unicode )"
DEPEND="
sys-libs/ncurses:=[unicode(+)?]
sys-libs/readline:0=
pcre? ( dev-libs/libpcre2:= )
"
RDEPEND="
${DEPEND}
dev-vcs/git
"
[[ ${PV} == "9999" ]] && BDEPEND+=" app-text/asciidoc app-text/xmlto"
# encoding/env issues
RESTRICT="test"
src_prepare() {
default
[[ ${PV} == "9999" ]] && eautoreconf
sed -i -e "s:e=.*:e=$(get_bashcompdir)/${PN}:" contrib/tig-completion.zsh || die
}
src_configure() {
econf \
$(use_with pcre) \
$(use_with unicode ncursesw)
}
src_compile() {
emake V=1
[[ ${PV} == "9999" ]] && emake V=1 doc-man doc-html
}
src_test() {
# workaround parallel test failures
LC_ALL=en_US.UTF-8 emake -j1 test
}
src_install() {
emake DESTDIR="${D}" install install-doc-man
dodoc {doc/manual,README,NEWS}.{adoc,html}
newbashcomp contrib/tig-completion.bash ${PN}
newzshcomp contrib/tig-completion.zsh _${PN}
docinto examples
dodoc contrib/*.tigrc
}