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 84587139694 for ; Sat, 8 Apr 2017 21:58:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 679D721C08B; Sat, 8 Apr 2017 21:57:50 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 44A9C21C08B for ; Sat, 8 Apr 2017 21:57:50 +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 C12D83416A1 for ; Sat, 8 Apr 2017 21:57:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D0B04743D for ; Sat, 8 Apr 2017 21:57:43 +0000 (UTC) From: "Patrice Clement" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Patrice Clement" Message-ID: <1491688571.3ab41e097caa4a39f508aee73da35d51bb9d69c4.monsieurp@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/todo/, app-misc/todo/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/todo/files/todo-2.10-fix-bash-completion.patch app-misc/todo/todo-2.10-r1.ebuild X-VCS-Directories: app-misc/todo/ app-misc/todo/files/ X-VCS-Committer: monsieurp X-VCS-Committer-Name: Patrice Clement X-VCS-Revision: 3ab41e097caa4a39f508aee73da35d51bb9d69c4 X-VCS-Branch: master Date: Sat, 8 Apr 2017 21:57:43 +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-Archives-Salt: 90360b79-4a61-458b-b5b9-19e11857edd6 X-Archives-Hash: ee67cf7a6c4846fbaf0c7b04bd9749c5 commit: 3ab41e097caa4a39f508aee73da35d51bb9d69c4 Author: Patrice Clement gentoo org> AuthorDate: Sat Apr 8 21:56:11 2017 +0000 Commit: Patrice Clement gentoo org> CommitDate: Sat Apr 8 21:56:11 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3ab41e09 app-misc/todo: add patch to fix bash completion. Courtesy of Ferenc Erki gmail.com>. Gentoo-Bug: https://bugs.gentoo.org/614400 Package-Manager: Portage-2.3.3, Repoman-2.3.1 .../todo/files/todo-2.10-fix-bash-completion.patch | 12 ++++++++ app-misc/todo/todo-2.10-r1.ebuild | 35 ++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/app-misc/todo/files/todo-2.10-fix-bash-completion.patch b/app-misc/todo/files/todo-2.10-fix-bash-completion.patch new file mode 100644 index 00000000000..7e6de2f1056 --- /dev/null +++ b/app-misc/todo/files/todo-2.10-fix-bash-completion.patch @@ -0,0 +1,12 @@ +--- ./todo_completion 2017-04-08 15:18:23.102736966 +0200 ++++ ./todo_completion 2017-04-08 15:18:56.839725605 +0200 +@@ -85,6 +85,9 @@ + } + complete -F _todo todo.sh + ++# Gentoo bug 614400 ++complete -F _todo todotxt ++ + # If you define an alias (e.g. "t") to todo.sh, you need to explicitly enable + # completion for it, too: + #complete -F _todo t diff --git a/app-misc/todo/todo-2.10-r1.ebuild b/app-misc/todo/todo-2.10-r1.ebuild new file mode 100644 index 00000000000..5fa2cd242a9 --- /dev/null +++ b/app-misc/todo/todo-2.10-r1.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit bash-completion-r1 + +DESCRIPTION="A CLI-based TODO list manager" +HOMEPAGE="http://todotxt.com/" +SRC_URI="https://github.com/ginatrapani/${PN}.txt-cli/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" + +RDEPEND="app-shells/bash" + +PATCHES=( "${FILESDIR}/${P}-fix-bash-completion.patch" ) + +S="${WORKDIR}/${PN}.txt-cli-${PV}" + +DOCS=( README.textile CONTRIBUTING.md LICENSE todo.cfg ) + +src_test() { + make test || die "tests failed" +} + +src_install() { + dobin "${PN}.sh" + dosym "/usr/bin/${PN}.sh" "/usr/bin/${PN}txt" + newbashcomp "${PN}_completion" "${PN}.sh" + bashcomp_alias "${PN}.sh" "${PN}txt" + einstalldocs +}