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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Jun 22 15:41:26 2015 UTC (5 years, 5 months ago) by radhermit
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
Stabilize for amd64 and x86.

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

1 # Copyright 1999-2015 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.4.4.ebuild,v 1.2 2015/05/16 19:37:36 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="gnutls vim-syntax zsh-completion"
17
18 DEPEND="sys-libs/readline:0
19 gnutls? ( net-libs/gnutls )
20 elibc_glibc? ( sys-apps/util-linux )"
21 RDEPEND="${DEPEND}"
22
23 src_prepare() {
24 # use the correct directory locations
25 sed -i "s:/usr/local/bin:${EPREFIX}/usr/bin:" \
26 scripts/add-ons/* || die
27
28 # don't automatically install scripts
29 sed -i '/scripts/d' CMakeLists.txt || die
30 }
31
32 src_configure() {
33 mycmakeargs=(
34 $(cmake-utils_use_use gnutls GNUTLS)
35 -DTASK_DOCDIR=share/doc/${PF}
36 -DTASK_RCDIR=share/${PN}/rc
37 )
38 cmake-utils_src_configure
39 }
40
41 src_install() {
42 cmake-utils_src_install
43
44 newbashcomp scripts/bash/task.sh task
45
46 if use vim-syntax ; then
47 rm scripts/vim/README
48 insinto /usr/share/vim/vimfiles
49 doins -r scripts/vim/*
50 fi
51
52 if use zsh-completion ; then
53 insinto /usr/share/zsh/site-functions
54 doins scripts/zsh/*
55 fi
56
57 exeinto /usr/share/${PN}/scripts
58 doexe scripts/add-ons/*
59 }

  ViewVC Help
Powered by ViewVC 1.1.20