guru/app-vim/css-color/css-color-20210530.ebuild
Anna (cybertailor) Vyalkova 5faa6f0819
app-vim/css-color: initial import
Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
2021-08-18 01:34:18 +05:00

28 lines
702 B
Bash

# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit vim-plugin
COMMIT="7337c35588e9027b516f80f03c3b9621a271e168"
DESCRIPTION="vim plugin: preview colours in source code while editing"
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=5056
https://github.com/ap/vim-css-color"
SRC_URI="https://github.com/ap/vim-${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/vim-${PN}-${COMMIT}"
LICENSE="MIT"
KEYWORDS="~amd64 ~x86"
src_prepare() {
default
# avoid collision with other packages
cd after/syntax || die
for file in *.vim; do
mkdir "${file%.vim}" || die
mv "${file}" "${file%.vim}/${PN}.vim" || die
done
}