blob: 2a73e44bb30f6440815107747991bbcaf3ab4f74 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# 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-1.9.4-r1.ebuild,v 1.3 2011/09/13 09:54:22 hwoarang Exp $
EAPI=4
inherit eutils cmake-utils bash-completion-r1
DESCRIPTION="A task management tool with a command-line interface"
HOMEPAGE="http://taskwarrior.org/projects/show/taskwarrior/"
SRC_URI="http://taskwarrior.org/download/${P}.tar.gz"
LICENSE="GPL-2"
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:" src/Config.cpp \
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}"/${P}-lua-automagic.patch \
"${FILESDIR}"/${P}-remove-ncurses.patch \
"${FILESDIR}"/0001-Merge-Uri-support.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/*
}
|