From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1E9CC1382C5 for ; Fri, 4 Jun 2021 05:07:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 66E68E041F; Fri, 4 Jun 2021 05:07:06 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4A846E041F for ; Fri, 4 Jun 2021 05:07:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3A16234100E for ; Fri, 4 Jun 2021 05:07:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BEC8E75B for ; Fri, 4 Jun 2021 05:07:03 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1622783088.f1c78501029dd7b977e43e76b85a038ebdf03a6b.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/tig/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-vcs/tig/tig-2.5.3-r1.ebuild X-VCS-Directories: dev-vcs/tig/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: f1c78501029dd7b977e43e76b85a038ebdf03a6b X-VCS-Branch: master Date: Fri, 4 Jun 2021 05:07:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: ec3570d6-fe35-40b2-acd3-e4d2d2438ddc X-Archives-Hash: 74babe1b1d389369a10eaa43bcb6a5ad commit: f1c78501029dd7b977e43e76b85a038ebdf03a6b Author: Stefan Strogin gentoo org> AuthorDate: Fri Jun 4 04:09:04 2021 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Fri Jun 4 05:04:48 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1c78501 dev-vcs/tig: do not install tig-completion.zsh tig-completion.zsh (installed as /usr/share/zsh/site-functions/_tig) doesn't work and interferes with '_git' from app-shell/zsh, which already adds comletion for tig. Don't install the file to make completion for tig in zsh work. Package-Manager: Portage-3.0.19, Repoman-3.0.3 Signed-off-by: Stefan Strogin gentoo.org> Closes: https://github.com/gentoo/gentoo/pull/21116 Signed-off-by: Georgy Yakovlev gentoo.org> dev-vcs/tig/tig-2.5.3-r1.ebuild | 62 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/dev-vcs/tig/tig-2.5.3-r1.ebuild b/dev-vcs/tig/tig-2.5.3-r1.ebuild new file mode 100644 index 00000000000..9164067a481 --- /dev/null +++ b/dev-vcs/tig/tig-2.5.3-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit bash-completion-r1 + +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 ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +fi + +DESCRIPTION="text mode interface for git" +HOMEPAGE="https://jonas.github.io/tig/" + +LICENSE="GPL-2" +SLOT="0" +IUSE="test unicode" +REQUIRED_USE="test? ( unicode )" + +DEPEND=" + sys-libs/ncurses:0=[unicode?] + sys-libs/readline:0= +" +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 +} + +src_configure() { + econf $(use_with unicode ncursesw) +} + +src_compile() { + emake V=1 + [[ ${PV} == "9999" ]] && emake V=1 doc-man doc-html +} + +src_test() { + # workaround parallel test failures + emake -j1 test +} + +src_install() { + emake DESTDIR="${D}" install install-doc-man + dodoc doc/manual.html README.html NEWS.html + newbashcomp contrib/tig-completion.bash ${PN} + + dodoc contrib/*.tigrc +}