diff options
author | 2017-09-08 09:29:10 -0400 | |
---|---|---|
committer | 2017-09-08 09:29:51 -0400 | |
commit | 16b5b559cc4f24e7b4b41a72e2e05caa6c225d93 (patch) | |
tree | 2b92f4da5731da33b93ed23aab2656f03dc41dac /app-vim/command-t/command-t-5.0.2.ebuild | |
parent | app-admin/ansible: correct ebuild name (diff) | |
download | gentoo-16b5b559cc4f24e7b4b41a72e2e05caa6c225d93.tar.gz gentoo-16b5b559cc4f24e7b4b41a72e2e05caa6c225d93.tar.bz2 gentoo-16b5b559cc4f24e7b4b41a72e2e05caa6c225d93.zip |
app-vim/command-t: version bump to 5.0.2
Diffstat (limited to 'app-vim/command-t/command-t-5.0.2.ebuild')
-rw-r--r-- | app-vim/command-t/command-t-5.0.2.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/app-vim/command-t/command-t-5.0.2.ebuild b/app-vim/command-t/command-t-5.0.2.ebuild new file mode 100644 index 000000000000..82f1973dda57 --- /dev/null +++ b/app-vim/command-t/command-t-5.0.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +USE_RUBY="ruby22 ruby23 ruby24" + +inherit vim-plugin ruby-ng + +DESCRIPTION="vim plugin: fast file navigation for vim" +HOMEPAGE="https://vim.sourceforge.io/scripts/script.php?script_id=3025 https://github.com/wincent/command-t" +SRC_URI="https://github.com/wincent/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD-2" +KEYWORDS="~amd64 ~x86" + +VIM_PLUGIN_HELPFILES="${PN}.txt" + +RDEPEND="|| ( app-editors/vim[ruby] app-editors/gvim[ruby] )" + +all_ruby_prepare() { + find "${S}" -name .gitignore -delete || die +} + +each_ruby_configure() { + cd ruby/${PN}/ext/${PN} || die + ${RUBY} extconf.rb || die "extconf.rb failed" +} + +each_ruby_compile() { + cd ruby/${PN}/ext/${PN} || die + emake V=1 + rm *.o *.c *.h *.log extconf.rb depend Makefile || die +} + +each_ruby_install() { + local sitelibdir=$(ruby_rbconfig_value "sitelibdir") + insinto "${sitelibdir}" + doins -r ruby/${PN}/{ext,lib}/* +} + +all_ruby_install() { + rm Gemfile* Rakefile LICENSE README.md || die + rm -r appstream bin fixtures data ruby/${PN}/{ext,lib,*.gemspec} spec vendor || die + + vim-plugin_src_install + + # make sure scripts are executable + chmod +x "${ED}"/usr/share/vim/vimfiles/ruby/${PN}/bin/* || die +} |