blob: a9d62ddecbc788d223624f7903e3428ebbb2ea0a [file] [log] [blame]
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-vim/colorsel/colorsel-20051121.ebuild,v 1.1 2008/09/20 13:59:45 hawking Exp $
inherit vim-plugin
DESCRIPTION="vim plugin: RGB / HSV color selector"
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=927"
LICENSE="public-domain"
KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~sparc ~x86"
IUSE=""
RDEPEND=">=app-editors/gvim-6.2"
function src_unpack() {
unpack ${A}
# This plugin tests whether the GUI is present and barfs if not. We
# don't want this, since we don't have a gvim-specific plugins
# directory. Instead, we'll do a bit of sed-fu to make it just do
# nothing in non-GUI mode.
sed -i \
-e "s:echoerr 'Color selector needs GUI':\" mmm, cookies':" \
"${S}"/plugin/${PN}.vim \
|| die "d'oh! sed magic didn't work, call an ambulance"
}
VIM_PLUGIN_HELPTEXT=\
"This plugin provides a color selector for vim. Use :ColorSel to start
the selector. This command is only available when vim is run in GUI mode."