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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2D0E2158086 for ; Mon, 22 Nov 2021 09:27:38 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 17134E0841; Mon, 22 Nov 2021 09:27:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 01BE4E0841 for ; Mon, 22 Nov 2021 09:27:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id F16FD34329B for ; Mon, 22 Nov 2021 09:27:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 47D7C1C0 for ; Mon, 22 Nov 2021 09:27:33 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1637573241.969dc791923bb646665807c09da907d68b0b3714.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/task/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/task/task-2.6.1-r1.ebuild X-VCS-Directories: app-misc/task/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 969dc791923bb646665807c09da907d68b0b3714 X-VCS-Branch: master Date: Mon, 22 Nov 2021 09:27:33 +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: 83b37549-4f83-4a19-8d5c-69ae16794acb X-Archives-Hash: baf3f295418ac21b3a065a46b6f73b1e commit: 969dc791923bb646665807c09da907d68b0b3714 Author: David Denoncin gmail com> AuthorDate: Thu Nov 18 20:58:50 2021 +0000 Commit: Sam James gentoo org> CommitDate: Mon Nov 22 09:27:21 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=969dc791 app-misc/task: add fish completions Closes: https://bugs.gentoo.org/823978 Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: David Denoncin gmail.com> Closes: https://github.com/gentoo/gentoo/pull/22990 Signed-off-by: Sam James gentoo.org> app-misc/task/task-2.6.1-r1.ebuild | 70 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/app-misc/task/task-2.6.1-r1.ebuild b/app-misc/task/task-2.6.1-r1.ebuild new file mode 100644 index 000000000000..d4f6942da292 --- /dev/null +++ b/app-misc/task/task-2.6.1-r1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_MAKEFILE_GENERATOR="emake" +inherit bash-completion-r1 cmake + +DESCRIPTION="Taskwarrior is a command-line todo list manager" +HOMEPAGE="https://taskwarrior.org/" +SRC_URI="https://github.com/GothenburgBitFactory/taskwarrior/releases/download/v${PV}/${P}.tar.gz + https://github.com/GothenburgBitFactory/taskwarrior/releases/download/v${PV}/tests-${PV}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~x64-macos" +IUSE="+sync" + +DEPEND=" + sync? ( net-libs/gnutls ) +" +RDEPEND="${DEPEND}" + +src_prepare() { + # move test directory into source directory + mv "${WORKDIR}"/test "${WORKDIR}"/${P} || die + + cmake_src_prepare + + # don't automatically install scripts + sed -i '/scripts/d' CMakeLists.txt || die +} + +src_configure() { + mycmakeargs=( + -DENABLE_SYNC=$(usex sync) + -DTASK_DOCDIR=share/doc/${PF} + -DTASK_RCDIR=share/${PN}/rc + ) + + cmake_src_configure +} + +src_test() { + cd "${WORKDIR}"/"${P}"_build || die + + emake test +} + +src_install() { + cmake_src_install + + newbashcomp scripts/bash/task.sh task + + # vim syntax + rm scripts/vim/README || die + insinto /usr/share/vim/vimfiles + doins -r scripts/vim/* + + # zsh-completions + insinto /usr/share/zsh/site-functions + doins scripts/zsh/* + + # fish-completions + insinto /usr/share/fish/completions + doins scripts/fish/* + + exeinto "/usr/share/${PN}/scripts" + doexe scripts/add-ons/* +}