diff --git a/app-vim/rainbow/Manifest b/app-vim/rainbow/Manifest new file mode 100644 index 0000000000..e4db4d297b --- /dev/null +++ b/app-vim/rainbow/Manifest @@ -0,0 +1 @@ +DIST rainbow-3.4.0_p20200528.tar.gz 14901 BLAKE2B c6e5f2ab3fc16fe0cf2e00429027416d516a08ada49fb24207f8f0a410b3b29ffee6f6eab74f8f8f8be6425e28dc61fe52d994dc020b457c10aa0b4524b6ab68 SHA512 e91e0b969d46dc2507cfcdfd8e9ceea26e863ecf2a532b51129744e961c383c24d63e2a213cfffbad22c278d65652aff9c97afcfe6f271ffd60d9a57305a0948 diff --git a/app-vim/rainbow/files/README.gentoo b/app-vim/rainbow/files/README.gentoo new file mode 100644 index 0000000000..bccf810dda --- /dev/null +++ b/app-vim/rainbow/files/README.gentoo @@ -0,0 +1,8 @@ +CMakeLists.txt syntax highlighting is broken with rainbow enabled. +Add this to your vimrc to work around the bug: + +let g:rainbow_conf = { +\ 'separately': { +\ 'cmake': 0, +\ } +\} diff --git a/app-vim/rainbow/metadata.xml b/app-vim/rainbow/metadata.xml new file mode 100644 index 0000000000..c8b0192e7e --- /dev/null +++ b/app-vim/rainbow/metadata.xml @@ -0,0 +1,8 @@ + + + + + cyber+gentoo@sysrq.in + Anna + + diff --git a/app-vim/rainbow/rainbow-3.4.0_p20200528.ebuild b/app-vim/rainbow/rainbow-3.4.0_p20200528.ebuild new file mode 100644 index 0000000000..99ee0ff978 --- /dev/null +++ b/app-vim/rainbow/rainbow-3.4.0_p20200528.ebuild @@ -0,0 +1,29 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit readme.gentoo-r1 vim-plugin + +COMMIT="4d15633cdaf61602e1d9fd216a77fc02e0881b2d" +DESCRIPTION="vim plugin: Rainbow Parentheses Improved" +HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=4176 +https://github.com/luochen1990/rainbow" +SRC_URI="https://github.com/luochen1990/${PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${COMMIT}" + +LICENSE="Apache-2.0" +KEYWORDS="~amd64 ~x86" + +VIM_PLUGIN_HELPFILES="rainbow" + +src_install() { + rm -r tests || die + vim-plugin_src_install + readme.gentoo_create_doc +} + +pkg_postinst() { + vim-plugin_pkg_postinst + readme.gentoo_print_elog +}