summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-09-19 05:59:13 +0000
committerTim Harder <radhermit@gentoo.org>2011-09-19 05:59:13 +0000
commit3e6839cf09db3ab0a42065240131b868668df6d7 (patch)
tree89f6bfc90d9a95e672d20b4695e424a1008c1b6c /app-misc
parentMask development releases of app-misc/task. (diff)
downloadgentoo-2-3e6839cf09db3ab0a42065240131b868668df6d7.tar.gz
gentoo-2-3e6839cf09db3ab0a42065240131b868668df6d7.tar.bz2
gentoo-2-3e6839cf09db3ab0a42065240131b868668df6d7.zip
Version bump.
(Portage version: 2.2.0_alpha58/cvs/Linux x86_64)
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/task/ChangeLog8
-rw-r--r--app-misc/task/files/task-2.0.0_beta1-rcdir.patch26
-rw-r--r--app-misc/task/task-2.0.0_beta1.ebuild64
3 files changed, 97 insertions, 1 deletions
diff --git a/app-misc/task/ChangeLog b/app-misc/task/ChangeLog
index 901ca2fa49b4..6912690570be 100644
--- a/app-misc/task/ChangeLog
+++ b/app-misc/task/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-misc/task
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/task/ChangeLog,v 1.20 2011/09/14 20:25:29 nativemad Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/task/ChangeLog,v 1.21 2011/09/19 05:59:12 radhermit Exp $
+
+*task-2.0.0_beta1 (19 Sep 2011)
+
+ 19 Sep 2011; Tim Harder <radhermit@gentoo.org> +task-2.0.0_beta1.ebuild,
+ +files/task-2.0.0_beta1-rcdir.patch:
+ Version bump.
15 Sep 2011; Andreas Schuerch <nativemad@gentoo.org> task-1.9.4-r1.ebuild:
x86 stable, thanks JD. Bug 382513
diff --git a/app-misc/task/files/task-2.0.0_beta1-rcdir.patch b/app-misc/task/files/task-2.0.0_beta1-rcdir.patch
new file mode 100644
index 000000000000..0139f9cacb3d
--- /dev/null
+++ b/app-misc/task/files/task-2.0.0_beta1-rcdir.patch
@@ -0,0 +1,26 @@
+--- task-2.0.0.beta1.orig/CMakeLists.txt
++++ task-2.0.0.beta1/CMakeLists.txt
+@@ -9,6 +9,7 @@
+ SET (TASK_MAN1DIR share/man/man1 CACHE STRING "Installation directory for man pages, section 1")
+ SET (TASK_MAN5DIR share/man/man5 CACHE STRING "Installation directory for man pages, section 5")
+ SET (TASK_DOCDIR share/doc/task CACHE STRING "Installation directory for doc files")
++SET (TASK_RCDIR share/task CACHE STRING "Installation directory for rc files")
+ SET (TASK_BINDIR bin CACHE STRING "Installation directory for the binary")
+
+ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+--- task-2.0.0.beta1.orig/doc/CMakeLists.txt
++++ task-2.0.0.beta1/doc/CMakeLists.txt
+@@ -11,4 +11,4 @@
+ FILES_MATCHING PATTERN "*.1")
+ install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/man/ DESTINATION ${TASK_MAN5DIR}
+ FILES_MATCHING PATTERN "*.5")
+-install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/rc DESTINATION ${TASK_DOCDIR})
++install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/rc DESTINATION ${TASK_RCDIR})
+--- task-2.0.0.beta1.orig/i18n/CMakeLists.txt
++++ task-2.0.0.beta1/i18n/CMakeLists.txt
+@@ -1,4 +1,4 @@
+ cmake_minimum_required (VERSION 2.8)
+-install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${TASK_DOCDIR}/i18n
++install (DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/ DESTINATION ${TASK_RCDIR}/i18n
+ FILES_MATCHING REGEX "tips.*"
+ PATTERN "CMakeFiles" EXCLUDE)
diff --git a/app-misc/task/task-2.0.0_beta1.ebuild b/app-misc/task/task-2.0.0_beta1.ebuild
new file mode 100644
index 000000000000..67c60d238228
--- /dev/null
+++ b/app-misc/task/task-2.0.0_beta1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2011 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_beta1.ebuild,v 1.1 2011/09/19 05:59:13 radhermit Exp $
+
+EAPI=4
+
+inherit eutils cmake-utils bash-completion-r1
+
+MY_P="${P/_/.}"
+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="GPL-2"
+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
+ sed -i -e "s:/usr/local/bin:/usr/bin:" doc/man/task-faq.5.in scripts/add-ons/*
+
+ # Don't automatically install scripts
+ sed -i -e '/scripts/d' CMakeLists.txt
+
+ epatch "${FILESDIR}"/${P}-rcdir.patch \
+ "${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/*
+}