summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-10-17 19:32:20 +0000
committerTim Harder <radhermit@gentoo.org>2011-10-17 19:32:20 +0000
commite5d70a1457f4a7c3e36c29e3bd3230dfa50ada8d (patch)
tree1bd09f6dc707e9835bf38d31f3da96fd255b017d /app-misc
parentstable amd64, depend on stable linux-headers-2.6.38+ (diff)
downloadgentoo-2-e5d70a1457f4a7c3e36c29e3bd3230dfa50ada8d.tar.gz
gentoo-2-e5d70a1457f4a7c3e36c29e3bd3230dfa50ada8d.tar.bz2
gentoo-2-e5d70a1457f4a7c3e36c29e3bd3230dfa50ada8d.zip
Version bump.
(Portage version: 2.2.0_alpha67/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_beta4-rcdir.patch30
-rw-r--r--app-misc/task/task-2.0.0_beta4.ebuild64
3 files changed, 101 insertions, 1 deletions
diff --git a/app-misc/task/ChangeLog b/app-misc/task/ChangeLog
index c163a9ac301a..1d739df7457d 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.24 2011/10/04 03:41:56 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/task/ChangeLog,v 1.25 2011/10/17 19:32:20 radhermit Exp $
+
+*task-2.0.0_beta4 (17 Oct 2011)
+
+ 17 Oct 2011; Tim Harder <radhermit@gentoo.org> +task-2.0.0_beta4.ebuild,
+ +files/task-2.0.0_beta4-rcdir.patch:
+ Version bump.
04 Oct 2011; Tim Harder <radhermit@gentoo.org> -task-2.0.0_beta1.ebuild,
-task-2.0.0_beta2.ebuild:
diff --git a/app-misc/task/files/task-2.0.0_beta4-rcdir.patch b/app-misc/task/files/task-2.0.0_beta4-rcdir.patch
new file mode 100644
index 000000000000..0a2f1e63bb19
--- /dev/null
+++ b/app-misc/task/files/task-2.0.0_beta4-rcdir.patch
@@ -0,0 +1,30 @@
+Install non-documentation files in the correct directory
+
+--- task-2.0.0.beta4.orig/CMakeLists.txt
++++ task-2.0.0.beta4/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.beta4.orig/doc/CMakeLists.txt
++++ task-2.0.0.beta4/doc/CMakeLists.txt
+@@ -11,6 +11,6 @@
+ 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})
+
+ install (FILES ${CMAKE_CURRENT_SOURCE_DIR}/ref/task-ref.pdf DESTINATION ${TASK_DOCDIR})
+--- task-2.0.0.beta4.orig/i18n/CMakeLists.txt
++++ task-2.0.0.beta4/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_beta4.ebuild b/app-misc/task/task-2.0.0_beta4.ebuild
new file mode 100644
index 000000000000..7f4d04593147
--- /dev/null
+++ b/app-misc/task/task-2.0.0_beta4.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_beta4.ebuild,v 1.1 2011/10/17 19:32:20 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="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
+ 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/*
+}