1 |
commit: c08b3736776549d2a78a50b6372066e0f7a0d19c |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Jul 6 08:37:10 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jul 6 08:37:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c08b3736 |
7 |
|
8 |
app-vim/command-t: add ruby27, ruby30; EAPI 7 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
app-vim/command-t/command-t-5.0.3-r1.ebuild | 47 +++++++++++++++++++++++++++++ |
14 |
1 file changed, 47 insertions(+) |
15 |
|
16 |
diff --git a/app-vim/command-t/command-t-5.0.3-r1.ebuild b/app-vim/command-t/command-t-5.0.3-r1.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..88a26579c20 |
19 |
--- /dev/null |
20 |
+++ b/app-vim/command-t/command-t-5.0.3-r1.ebuild |
21 |
@@ -0,0 +1,47 @@ |
22 |
+# Copyright 1999-2021 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+USE_RUBY="ruby25 ruby26 ruby27 ruby30" |
27 |
+ |
28 |
+inherit vim-plugin ruby-ng |
29 |
+ |
30 |
+DESCRIPTION="vim plugin: fast file navigation for vim" |
31 |
+HOMEPAGE="https://vim.sourceforge.io/scripts/script.php?script_id=3025 https://github.com/wincent/command-t" |
32 |
+SRC_URI="https://github.com/wincent/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
33 |
+LICENSE="BSD-2" |
34 |
+KEYWORDS="~amd64 ~x86" |
35 |
+ |
36 |
+VIM_PLUGIN_HELPFILES="${PN}.txt" |
37 |
+ |
38 |
+RDEPEND="|| ( app-editors/vim[ruby] app-editors/gvim[ruby] )" |
39 |
+ |
40 |
+all_ruby_prepare() { |
41 |
+ find "${S}" -name .gitignore -delete || die |
42 |
+} |
43 |
+ |
44 |
+each_ruby_configure() { |
45 |
+ cd ruby/${PN}/ext/${PN} || die |
46 |
+ ${RUBY} extconf.rb || die "extconf.rb failed" |
47 |
+} |
48 |
+ |
49 |
+each_ruby_compile() { |
50 |
+ cd ruby/${PN}/ext/${PN} || die |
51 |
+ emake V=1 |
52 |
+ rm *.o *.c *.h *.log extconf.rb depend Makefile || die |
53 |
+} |
54 |
+ |
55 |
+each_ruby_install() { |
56 |
+ local sitelibdir=$(ruby_rbconfig_value "sitelibdir") |
57 |
+ insinto "${sitelibdir}" |
58 |
+ doins -r ruby/${PN}/{ext,lib}/* |
59 |
+} |
60 |
+ |
61 |
+all_ruby_install() { |
62 |
+ rm -r appstream bin fixtures data ruby/${PN}/{ext,lib,*.gemspec} spec vendor || die |
63 |
+ |
64 |
+ vim-plugin_src_install |
65 |
+ |
66 |
+ # make sure scripts are executable |
67 |
+ chmod +x "${ED}"/usr/share/vim/vimfiles/ruby/${PN}/bin/* || die |
68 |
+} |