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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Thu Oct 4 22:34:09 2012 UTC (8 years, 1 month ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +1 -1 lines
FILE REMOVED
Remove old.

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

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-misc/task/task-2.1.1.ebuild,v 1.4 2012/09/07 19:37:13 johu Exp $
4
5 EAPI=4
6
7 inherit eutils cmake-utils bash-completion-r1
8
9 DESCRIPTION="Taskwarrior is a command-line todo list manager"
10 HOMEPAGE="http://taskwarrior.org/projects/show/taskwarrior/"
11 SRC_URI="http://taskwarrior.org/download/${P}.tar.gz"
12
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS="amd64 x86"
16 IUSE="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:" \
24 doc/man/taskrc.5.in doc/man/task-tutorial.5.in doc/man/task-color.5.in || die
25 sed -i -e "s:/usr/local/bin:/usr/bin:" doc/man/task-faq.5.in scripts/add-ons/* || die
26
27 # Don't automatically install scripts
28 sed -i -e '/scripts/d' CMakeLists.txt || die
29
30 epatch "${FILESDIR}"/${PN}-2.0.0_beta4-rcdir.patch
31 epatch "${FILESDIR}"/${PN}-1.9.4-lua-automagic.patch
32 }
33
34 src_configure() {
35 mycmakeargs=(
36 $(cmake-utils_use_enable lua LUA)
37 -DTASK_DOCDIR=/usr/share/doc/${PF}
38 )
39
40 cmake-utils_src_configure
41 }
42
43 src_install() {
44 cmake-utils_src_install
45
46 newbashcomp scripts/bash/task.sh task
47
48 if use lua ; then
49 insinto /usr/share/${PN}/extensions
50 doins scripts/extensions/*
51 fi
52
53 if use vim-syntax ; then
54 rm scripts/vim/README
55 insinto /usr/share/vim/vimfiles
56 doins -r scripts/vim/*
57 fi
58
59 if use zsh-completion ; then
60 insinto /usr/share/zsh/site-functions
61 doins scripts/zsh/*
62 fi
63
64 exeinto /usr/share/${PN}/scripts
65 doexe scripts/add-ons/*
66 }

  ViewVC Help
Powered by ViewVC 1.1.20