blob: 5bdc1e65a1e881685f530d6054fe37009820f90e (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-vim/vcscommand/vcscommand-0.1_beta28.ebuild,v 1.1 2008/10/16 16:51:10 hawking Exp $
VIM_PLUGIN_VIM_VERSION="7.0"
inherit vim-plugin
DESCRIPTION="vim plugin: CVS/SVN/SVK integration plugin"
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=90"
LICENSE="public-domain"
KEYWORDS="~amd64 ~x86"
IUSE="cvs git subversion svk"
RDEPEND="cvs? ( dev-util/cvs )
git? ( dev-util/git )
subversion? ( dev-util/subversion )
svk? ( dev-util/svk )
!app-vim/cvscommand
!app-vim/calendar" # conflict, bug 62677
VIM_PLUGIN_HELPFILES="vcscommand"
no_flags_die() {
eerror "Please choose at least one VCS system"
eerror "to be supported by this plugin."
die "No vcs systems set"
}
pkg_setup() {
elog "Note: Support for all VCS systems are enabled by use flags."
elog " Make sure you've enabled the flags you want."
use cvs || use git || use subversion || use svk || no_flags_die
}
src_unpack() {
unpack ${A}
cd "${S}"
use cvs || rm syntax/CVSAnnotate.vim plugin/vcscvs.vim
use git || rm plugin/vcsgit.vim
use subversion || rm syntax/SVNAnnotate.vim plugin/vcssvn.vim
use svk || rm syntax/SVKAnnotate.vim plugin/vcssvk.vim
}
|