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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jun 22 15:42:26 2015 UTC (5 years, 5 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Remove old.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 4F064CA3)

1 # Copyright 1999-2014 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.3.0.ebuild,v 1.2 2014/11/28 17:16:35 radhermit Exp $
4
5 EAPI=5
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/"
11 SRC_URI="http://taskwarrior.org/download/${P}.tar.gz"
12
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS="~amd64 ~arm ~x86 ~x64-macos"
16 IUSE="vim-syntax zsh-completion"
17
18 DEPEND="net-libs/gnutls
19 sys-libs/readline
20 elibc_glibc? ( sys-apps/util-linux )"
21 RDEPEND="${DEPEND}"
22
23 src_prepare() {
24 # use the correct directory locations
25 sed -i -e "s:/usr/local/bin:${EPREFIX}/usr/bin:" \
26 scripts/add-ons/* || die
27
28 # don't automatically install scripts
29 sed -i -e '/scripts/d' CMakeLists.txt || die
30
31 epatch "${FILESDIR}"/${P}-issue-1473-rcdir-fix.patch
32 }
33
34 src_configure() {
35 mycmakeargs=(
36 -DTASK_DOCDIR=share/doc/${PF}
37 -DTASK_RCDIR=share/${PN}/rc
38 )
39 cmake-utils_src_configure
40 }
41
42 src_install() {
43 cmake-utils_src_install
44
45 newbashcomp scripts/bash/task.sh task
46
47 if use vim-syntax ; then
48 rm scripts/vim/README
49 insinto /usr/share/vim/vimfiles
50 doins -r scripts/vim/*
51 fi
52
53 if use zsh-completion ; then
54 insinto /usr/share/zsh/site-functions
55 doins scripts/zsh/*
56 fi
57
58 exeinto /usr/share/${PN}/scripts
59 doexe scripts/add-ons/*
60 }

  ViewVC Help
Powered by ViewVC 1.1.20