blob: 67e40da9a4d81b01234aae09c3f205cfdd5ca71d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/task/task-1.9.3_beta2.ebuild,v 1.1 2010/10/26 06:36:27 radhermit Exp $
EAPI=3
inherit eutils autotools
MY_P="${P/_/.}"
DESCRIPTION="A task management tool with a command-line interface"
HOMEPAGE="http://taskwarrior.org/projects/show/taskwarrior/"
SRC_URI="http://taskwarrior.org/download/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="bash-completion debug lua +ncurses vim-syntax zsh-completion"
DEPEND="lua? ( dev-lang/lua )
ncurses? ( sys-libs/ncurses )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/${MY_P}"
src_prepare() {
epatch "${FILESDIR}"/${PN}-1.9.2-configure.patch
eautoreconf
}
src_configure() {
econf \
--disable-dependency-tracking \
--docdir="/usr/share/doc/${PF}" \
$(use_enable debug ) \
$(use_with lua) \
$(use_with ncurses)
}
src_install() {
emake DESTDIR="${D}" \
bashscriptsdir="" vimscriptsdir="" zshscriptsdir="" \
install || die "emake install failed"
if use bash-completion ; then
insinto /usr/share/bash-completion
doins scripts/bash/*
fi
if use vim-syntax ; then
rm scripts/vim/README
insinto /usr/share/vim/vimfiles
doins -r scripts/vim/*
fi
if use zsh-completion ; then
insinto /usr/share/zsh/site-functions
doins scripts/zsh/*
fi
}
|