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

Contents of /app-misc/task/task-1.9.3-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Aug 3 17:18:56 2011 UTC (9 years, 3 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Revision bump and remove old. Apply upstream patch to fix ssh syncing issue (bug #377451).

(Portage version: 2.2.0_alpha47/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.3-r1.ebuild,v 1.3 2011/02/11 00:06:38 hwoarang Exp $
4
5 EAPI=3
6
7 inherit eutils autotools
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 debug lua +ncurses vim-syntax zsh-completion"
17
18 DEPEND="lua? ( dev-lang/lua )
19 ncurses? ( sys-libs/ncurses )"
20 RDEPEND="${DEPEND}"
21
22 src_prepare() {
23 epatch "${FILESDIR}"/${PN}-1.9.2-configure.patch
24
25 # Use the correct directory locations
26 sed -i -e "s:/usr/local/share/doc/task/rc:/usr/share/task/rc:" src/Config.cpp \
27 doc/man/taskrc.5 doc/man/task-tutorial.5 doc/man/task-color.5 || die "sed failed"
28 sed -i -e "s:/usr/local/bin:/usr/bin:" doc/man/task-faq.5 || die "sed failed"
29
30 eautoreconf
31 }
32
33 src_configure() {
34 econf \
35 --disable-dependency-tracking \
36 --docdir="/usr/share/doc/${PF}" \
37 $(use_enable debug ) \
38 $(use_with lua) \
39 $(use_with ncurses)
40 }
41
42 src_install() {
43 emake DESTDIR="${D}" rcfiledir="/usr/share/task/rc" i18ndir="/usr/share/task" \
44 bashscriptsdir="" vimscriptsdir="" zshscriptsdir="" \
45 install || die "emake install failed"
46
47 if use bash-completion ; then
48 insinto /usr/share/bash-completion
49 doins scripts/bash/*
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 }

  ViewVC Help
Powered by ViewVC 1.1.20