diff options
author | Tim Harder <radhermit@gentoo.org> | 2012-09-19 22:12:44 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2012-09-19 22:12:44 +0000 |
commit | 11a59ac21154432db9626a3fd0ba85393924d17d (patch) | |
tree | e9a23f6306fa92dcfcbcea7a53f42dde1db0deeb /app-misc/task/task-2.1.2.ebuild | |
parent | stable ppc, bug #435320 (diff) | |
download | gentoo-2-11a59ac21154432db9626a3fd0ba85393924d17d.tar.gz gentoo-2-11a59ac21154432db9626a3fd0ba85393924d17d.tar.bz2 gentoo-2-11a59ac21154432db9626a3fd0ba85393924d17d.zip |
Version bump (bug #435510).
(Portage version: 2.2.0_alpha128/cvs/Linux x86_64)
Diffstat (limited to 'app-misc/task/task-2.1.2.ebuild')
-rw-r--r-- | app-misc/task/task-2.1.2.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/app-misc/task/task-2.1.2.ebuild b/app-misc/task/task-2.1.2.ebuild new file mode 100644 index 000000000000..3cfadbf5b1cc --- /dev/null +++ b/app-misc/task/task-2.1.2.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-misc/task/task-2.1.2.ebuild,v 1.1 2012/09/19 22:12:44 radhermit Exp $ + +EAPI=4 + +inherit eutils cmake-utils bash-completion-r1 + +DESCRIPTION="Taskwarrior is a command-line todo list manager" +HOMEPAGE="http://taskwarrior.org/projects/show/taskwarrior/" +SRC_URI="http://taskwarrior.org/download/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="lua vim-syntax zsh-completion" + +DEPEND="lua? ( dev-lang/lua )" +RDEPEND="${DEPEND}" + +src_prepare() { + # Use the correct directory locations + sed -i -e "s:/usr/local/share/doc/task/rc:/usr/share/task/rc:" \ + doc/man/taskrc.5.in doc/man/task-tutorial.5.in doc/man/task-color.5.in || die + sed -i -e "s:/usr/local/bin:/usr/bin:" doc/man/task-faq.5.in scripts/add-ons/* || die + + # Don't automatically install scripts + sed -i -e '/scripts/d' CMakeLists.txt || die + + epatch "${FILESDIR}"/${PN}-2.0.0_beta4-rcdir.patch + epatch "${FILESDIR}"/${PN}-1.9.4-lua-automagic.patch +} + +src_configure() { + mycmakeargs=( + $(cmake-utils_use_enable lua LUA) + -DTASK_DOCDIR=/usr/share/doc/${PF} + ) + + cmake-utils_src_configure +} + +src_install() { + cmake-utils_src_install + + newbashcomp scripts/bash/task.sh task + + if use lua ; then + insinto /usr/share/${PN}/extensions + doins scripts/extensions/* + fi + + 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/* +} |