diff options
author | Tim Harder <radhermit@gentoo.org> | 2016-12-09 02:31:55 -0500 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2016-12-09 02:31:55 -0500 |
commit | 1978510740e740764266b6f76ea754f26ae394c7 (patch) | |
tree | a0a634d31e49e19b9483ac5e21eb08fbeb9c2c34 /app-misc/task/task-2.5.1-r1.ebuild | |
parent | media-video/mkvtoolnix: bump to EAPI 6 and drop ruby:2.0 support (diff) | |
download | gentoo-1978510740e740764266b6f76ea754f26ae394c7.tar.gz gentoo-1978510740e740764266b6f76ea754f26ae394c7.tar.bz2 gentoo-1978510740e740764266b6f76ea754f26ae394c7.zip |
app-misc/task: fix unicode issue (bug #601948) and rename gnutls use flag to sync
Diffstat (limited to 'app-misc/task/task-2.5.1-r1.ebuild')
-rw-r--r-- | app-misc/task/task-2.5.1-r1.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/app-misc/task/task-2.5.1-r1.ebuild b/app-misc/task/task-2.5.1-r1.ebuild new file mode 100644 index 000000000000..0d8b558bd2bd --- /dev/null +++ b/app-misc/task/task-2.5.1-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit cmake-utils bash-completion-r1 + +DESCRIPTION="Taskwarrior is a command-line todo list manager" +HOMEPAGE="http://taskwarrior.org/" +SRC_URI="http://taskwarrior.org/download/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86 ~x64-macos" +IUSE="+sync vim-syntax zsh-completion" + +DEPEND="sys-libs/readline:0 + sync? ( net-libs/gnutls:0= ) + elibc_glibc? ( sys-apps/util-linux )" +RDEPEND="${DEPEND}" + +PATCHES=( "${FILESDIR}"/0001-TW-1778-Unicode-strings-are-truncated-in-task-descri.patch ) + +src_prepare() { + default + + # 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-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + newbashcomp scripts/bash/task.sh task + + if use vim-syntax ; then + rm scripts/vim/README + insinto /usr/share/vim/vimfiles + doins -r scripts/vim/* + fi + + if use zsh-completion ; then + insinto /usr/share/zsh/site-functions + doins scripts/zsh/* + fi + + exeinto /usr/share/${PN}/scripts + doexe scripts/add-ons/* +} |