| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/app-vim/cctree/cctree-1.60.ebuild,v 1.1 2011/07/15 18:48:09 radhermit Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
|
| 7 |
inherit vim-plugin
|
| 8 |
|
| 9 |
MY_PN="CCTree"
|
| 10 |
DESCRIPTION="vim plugin: Cscope based source-code browser and code flow analysis tool"
|
| 11 |
HOMEPAGE="http://sites.google.com/site/vimcctree/"
|
| 12 |
SRC_URI="https://github.com/vim-scripts/${MY_PN}/tarball/${PV} -> ${P}.tar.gz"
|
| 13 |
LICENSE="bufexplorer.vim"
|
| 14 |
KEYWORDS="~amd64 ~x86"
|
| 15 |
IUSE=""
|
| 16 |
|
| 17 |
VIM_PLUGIN_HELPFILES="cctree.txt"
|
| 18 |
|
| 19 |
RDEPEND="dev-util/cscope"
|
| 20 |
|
| 21 |
src_unpack() {
|
| 22 |
unpack ${A}
|
| 23 |
mv *-${MY_PN}-* "${S}"
|
| 24 |
}
|
| 25 |
|
| 26 |
src_prepare() {
|
| 27 |
# There's good documentation included with the script, but it's not
|
| 28 |
# in a helpfile. Since there's rather too much information to include
|
| 29 |
# in a VIM_PLUGIN_HELPTEXT, we'll sed ourselves a help doc.
|
| 30 |
mkdir doc
|
| 31 |
sed -e '/" Name Of File/,/".\+Community/!d' -e 's/^" \?//' \
|
| 32 |
-e 's/\(Name Of File: \)\([^.]\+\)\.vim/\1*\L\2.txt*/' \
|
| 33 |
ftplugin/cctree.vim > doc/cctree.txt
|
| 34 |
|
| 35 |
rm README
|
| 36 |
}
|