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

Contents of /app-misc/task/task-2.0.0_rc1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Mar 18 03:59:07 2012 UTC (8 years, 8 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.0_alpha90/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.0.0_rc1.ebuild,v 1.1 2012/03/06 10:19:04 radhermit Exp $
4
5 EAPI=4
6
7 inherit eutils cmake-utils bash-completion-r1
8
9 MY_P="${P/_rc/.RC}"
10
11 DESCRIPTION="A task management tool with a command-line interface"
12 HOMEPAGE="http://taskwarrior.org/projects/show/taskwarrior/"
13 SRC_URI="http://taskwarrior.org/download/${MY_P}.tar.gz"
14
15 LICENSE="MIT"
16 SLOT="0"
17 KEYWORDS="~amd64 ~x86"
18 IUSE="lua vim-syntax zsh-completion"
19
20 DEPEND="lua? ( dev-lang/lua )"
21 RDEPEND="${DEPEND}"
22
23 S="${WORKDIR}/${MY_P}"
24
25 src_prepare() {
26 # Use the correct directory locations
27 sed -i -e "s:/usr/local/share/doc/task/rc:/usr/share/task/rc:" \
28 doc/man/taskrc.5.in doc/man/task-tutorial.5.in doc/man/task-color.5.in || die
29 sed -i -e "s:/usr/local/bin:/usr/bin:" doc/man/task-faq.5.in scripts/add-ons/* || die
30
31 # Don't automatically install scripts
32 sed -i -e '/scripts/d' CMakeLists.txt || die
33
34 epatch "${FILESDIR}"/${PN}-2.0.0_beta4-rcdir.patch
35 epatch "${FILESDIR}"/${PN}-1.9.4-lua-automagic.patch
36 }
37
38 src_configure() {
39 mycmakeargs=(
40 $(cmake-utils_use_enable lua LUA)
41 -DTASK_DOCDIR=/usr/share/doc/${PF}
42 )
43
44 cmake-utils_src_configure
45 }
46
47 src_install() {
48 cmake-utils_src_install
49
50 newbashcomp scripts/bash/task_completion.sh task
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