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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Tue Oct 4 03:41:56 2011 UTC (9 years, 2 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_alpha60/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-2.0.0_beta2.ebuild,v 1.1 2011/09/22 06:27:48 radhermit Exp $
4
5 EAPI=4
6
7 inherit eutils cmake-utils bash-completion-r1
8
9 MY_P="${P/_/.}"
10 DESCRIPTION="A task management tool with a command-line interface"
11 HOMEPAGE="http://taskwarrior.org/projects/show/taskwarrior/"
12 SRC_URI="http://taskwarrior.org/download/${MY_P}.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="lua vim-syntax zsh-completion"
18
19 DEPEND="lua? ( dev-lang/lua )"
20 RDEPEND="${DEPEND}"
21
22 S="${WORKDIR}/${MY_P}"
23
24 src_prepare() {
25 # Use the correct directory locations
26 sed -i -e "s:/usr/local/share/doc/task/rc:/usr/share/task/rc:" \
27 doc/man/taskrc.5.in doc/man/task-tutorial.5.in doc/man/task-color.5.in
28 sed -i -e "s:/usr/local/bin:/usr/bin:" doc/man/task-faq.5.in scripts/add-ons/*
29
30 # Don't automatically install scripts
31 sed -i -e '/scripts/d' CMakeLists.txt
32
33 epatch "${FILESDIR}"/${PN}-2.0.0_beta1-rcdir.patch \
34 "${FILESDIR}"/${PN}-1.9.4-lua-automagic.patch
35 }
36
37 src_configure() {
38 mycmakeargs=(
39 $(cmake-utils_use_enable lua LUA)
40 -DTASK_DOCDIR=/usr/share/doc/${PF}
41 )
42
43 cmake-utils_src_configure
44 }
45
46 src_install() {
47 cmake-utils_src_install
48
49 newbashcomp scripts/bash/task_completion.sh task
50
51 if use vim-syntax ; then
52 rm scripts/vim/README
53 insinto /usr/share/vim/vimfiles
54 doins -r scripts/vim/*
55 fi
56
57 if use zsh-completion ; then
58 insinto /usr/share/zsh/site-functions
59 doins scripts/zsh/*
60 fi
61
62 exeinto /usr/share/${PN}/scripts
63 doexe scripts/add-ons/*
64 }

  ViewVC Help
Powered by ViewVC 1.1.20