/[gentoo-x86]/app-misc/task/task-1.9.4.ebuild
Gentoo

Contents of /app-misc/task/task-1.9.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Mon Oct 17 19:47:11 2011 UTC (9 years, 1 month ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha67/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/task/task-1.9.4.ebuild,v 1.5 2011/06/14 19:29:57 maekke Exp $
4
5 EAPI=4
6
7 inherit eutils cmake-utils
8
9 DESCRIPTION="A task management tool with a command-line interface"
10 HOMEPAGE="http://taskwarrior.org/projects/show/taskwarrior/"
11 SRC_URI="http://taskwarrior.org/download/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE="bash-completion lua vim-syntax zsh-completion"
17
18 DEPEND="lua? ( dev-lang/lua )"
19 RDEPEND="${DEPEND}"
20
21 src_prepare() {
22 # Use the correct directory locations
23 sed -i -e "s:/usr/local/share/doc/task/rc:/usr/share/task/rc:" src/Config.cpp \
24 doc/man/taskrc.5.in doc/man/task-tutorial.5.in doc/man/task-color.5.in
25 sed -i -e "s:/usr/local/bin:/usr/bin:" doc/man/task-faq.5.in scripts/add-ons/*
26
27 # Don't automatically install scripts
28 sed -i -e '/scripts/d' CMakeLists.txt
29
30 epatch "${FILESDIR}"/${P}-rcdir.patch \
31 "${FILESDIR}"/${P}-lua-automagic.patch \
32 "${FILESDIR}"/${P}-remove-ncurses.patch
33 }
34
35 src_configure() {
36 mycmakeargs=(
37 $(cmake-utils_use_enable lua LUA)
38 -DTASK_DOCDIR=/usr/share/doc/${PF}
39 )
40
41 cmake-utils_src_configure
42 }
43
44 src_install() {
45 cmake-utils_src_install
46
47 if use bash-completion ; then
48 insinto /usr/share/bash-completion
49 newins scripts/bash/task_completion.sh task
50 fi
51
52 if use vim-syntax ; then
53 rm scripts/vim/README
54 insinto /usr/share/vim/vimfiles
55 doins -r scripts/vim/*
56 fi
57
58 if use zsh-completion ; then
59 insinto /usr/share/zsh/site-functions
60 doins scripts/zsh/*
61 fi
62
63 exeinto /usr/share/${PN}/scripts
64 doexe scripts/add-ons/*
65 }

  ViewVC Help
Powered by ViewVC 1.1.20