1 |
commit: 1cf47b5a6da4f551086eeafe036cff1ee73cfbc3 |
2 |
Author: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea <DOT> de> |
3 |
AuthorDate: Wed Apr 6 19:29:33 2022 +0000 |
4 |
Commit: Ronny Gutbrod <gentoo <AT> tastytea <DOT> de> |
5 |
CommitDate: Wed Apr 6 19:46:42 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1cf47b5a |
7 |
|
8 |
app-shells/zsh-autosuggestions: Don't pull test deps with USE="-test" |
9 |
|
10 |
ruby-fakegem pulls in virtual/rubygems unconditionally, so we use |
11 |
ruby-ng directly and copy each_ruby_test() from ruby-fakegem. |
12 |
|
13 |
Signed-off-by: Ronny (tastytea) Gutbrod <gentoo <AT> tastytea.de> |
14 |
|
15 |
.../zsh-autosuggestions-0.7.0-r1.ebuild | 83 ++++++++++++++++++++++ |
16 |
1 file changed, 83 insertions(+) |
17 |
|
18 |
diff --git a/app-shells/zsh-autosuggestions/zsh-autosuggestions-0.7.0-r1.ebuild b/app-shells/zsh-autosuggestions/zsh-autosuggestions-0.7.0-r1.ebuild |
19 |
new file mode 100644 |
20 |
index 000000000..834a9c1b9 |
21 |
--- /dev/null |
22 |
+++ b/app-shells/zsh-autosuggestions/zsh-autosuggestions-0.7.0-r1.ebuild |
23 |
@@ -0,0 +1,83 @@ |
24 |
+# Copyright 1999-2022 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=8 |
28 |
+ |
29 |
+USE_RUBY="ruby26 ruby27 ruby30" |
30 |
+RUBY_OPTIONAL="yes" |
31 |
+ |
32 |
+inherit readme.gentoo-r1 ruby-ng |
33 |
+ |
34 |
+DESCRIPTION="Fish-like autosuggestions for zsh" |
35 |
+HOMEPAGE="https://github.com/zsh-users/zsh-autosuggestions" |
36 |
+SRC_URI="https://github.com/zsh-users/zsh-autosuggestions/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+S="${WORKDIR}/all/${P}" |
38 |
+ |
39 |
+LICENSE="MIT" |
40 |
+SLOT="0" |
41 |
+KEYWORDS="~amd64" |
42 |
+IUSE="test" |
43 |
+REQUIRED_USE="test? ( || ( $(ruby_get_use_targets) ) )" |
44 |
+ |
45 |
+RDEPEND=">=app-shells/zsh-4.3.11" |
46 |
+DEPEND="" |
47 |
+BDEPEND=" |
48 |
+ test? ( |
49 |
+ ${RDEPEND} |
50 |
+ $(ruby_implementations_depend) |
51 |
+ app-misc/tmux |
52 |
+ dev-ruby/bundler |
53 |
+ dev-ruby/pry |
54 |
+ dev-ruby/pry-byebug |
55 |
+ dev-ruby/rspec:3 |
56 |
+ dev-ruby/rspec-wait |
57 |
+ virtual/rubygems |
58 |
+ ) |
59 |
+" |
60 |
+ |
61 |
+RESTRICT="!test? ( test )" |
62 |
+ |
63 |
+DISABLE_AUTOFORMATTING="true" |
64 |
+DOC_CONTENTS="In order to use ${CATEGORY}/${PN} add |
65 |
+. /usr/share/zsh/site-functions/${PN}.zsh |
66 |
+at the end of your ~/.zshrc" |
67 |
+ |
68 |
+pkg_setup() { |
69 |
+ use test && ruby-ng_pkg_setup |
70 |
+} |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ # FIXME: Disable failing tests |
74 |
+ rm "spec/options/buffer_max_size_spec.rb" \ |
75 |
+ || die "Could not remove tests" |
76 |
+ |
77 |
+ if use test; then |
78 |
+ ruby-ng_src_prepare |
79 |
+ else |
80 |
+ default |
81 |
+ fi |
82 |
+} |
83 |
+ |
84 |
+src_configure() { |
85 |
+ use test && ruby-ng_src_configure |
86 |
+} |
87 |
+ |
88 |
+src_compile() { |
89 |
+ use test && ruby-ng_src_compile |
90 |
+} |
91 |
+ |
92 |
+each_ruby_test() { |
93 |
+ RSPEC_VERSION=3 ruby-ng_rspec |
94 |
+} |
95 |
+ |
96 |
+src_install() { |
97 |
+ insinto "/usr/share/zsh/site-functions/" |
98 |
+ doins "${PN}.zsh" |
99 |
+ |
100 |
+ readme.gentoo_create_doc |
101 |
+ einstalldocs |
102 |
+} |
103 |
+ |
104 |
+pkg_postinst() { |
105 |
+ readme.gentoo_print_elog |
106 |
+} |