summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2012-03-06 10:19:04 +0000
committerTim Harder <radhermit@gentoo.org>2012-03-06 10:19:04 +0000
commitc2e633835676b56693f98ff760ab08d12e09be5f (patch)
tree9bb6e48bd252e4f0fb4f96c0f70f65b0a8db7007 /app-misc
parentAdd missing dependency dev-util/intltool (diff)
downloadgentoo-2-c2e633835676b56693f98ff760ab08d12e09be5f.tar.gz
gentoo-2-c2e633835676b56693f98ff760ab08d12e09be5f.tar.bz2
gentoo-2-c2e633835676b56693f98ff760ab08d12e09be5f.zip
Version bump.
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64)
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/task/ChangeLog7
-rw-r--r--app-misc/task/task-2.0.0_rc1.ebuild65
2 files changed, 71 insertions, 1 deletions
diff --git a/app-misc/task/ChangeLog b/app-misc/task/ChangeLog
index 3af75134ed93..52d717ce565d 100644
--- a/app-misc/task/ChangeLog
+++ b/app-misc/task/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-misc/task
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/task/ChangeLog,v 1.27 2012/02/23 04:31:03 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/task/ChangeLog,v 1.28 2012/03/06 10:19:04 radhermit Exp $
+
+*task-2.0.0_rc1 (06 Mar 2012)
+
+ 06 Mar 2012; Tim Harder <radhermit@gentoo.org> +task-2.0.0_rc1.ebuild:
+ Version bump.
*task-2.0.0_beta5 (23 Feb 2012)
diff --git a/app-misc/task/task-2.0.0_rc1.ebuild b/app-misc/task/task-2.0.0_rc1.ebuild
new file mode 100644
index 000000000000..4defa63d98d6
--- /dev/null
+++ b/app-misc/task/task-2.0.0_rc1.ebuild
@@ -0,0 +1,65 @@
+# 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.0.0_rc1.ebuild,v 1.1 2012/03/06 10:19:04 radhermit Exp $
+
+EAPI=4
+
+inherit eutils cmake-utils bash-completion-r1
+
+MY_P="${P/_rc/.RC}"
+
+DESCRIPTION="A task management tool with a command-line interface"
+HOMEPAGE="http://taskwarrior.org/projects/show/taskwarrior/"
+SRC_URI="http://taskwarrior.org/download/${MY_P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="lua vim-syntax zsh-completion"
+
+DEPEND="lua? ( dev-lang/lua )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+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_completion.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/*
+}