You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/app-misc/task/task-2.5.1-r2.ebuild

62 lines
1.1 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit bash-completion-r1 cmake
DESCRIPTION="Taskwarrior is a command-line todo list manager"
HOMEPAGE="https://taskwarrior.org/"
SRC_URI="https://taskwarrior.org/download/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm x86 ~x64-macos"
IUSE="+sync"
DEPEND="
sync? ( net-libs/gnutls )
"
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/0001-TW-1778-Unicode-strings-are-truncated-in-task-descri.patch"
"${FILESDIR}/${P}-clang-build-system.patch"
)
src_prepare() {
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_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/*
exeinto "/usr/share/${PN}/scripts"
doexe scripts/add-ons/*
}