1 |
commit: 7c6431a4bb19a5c5090e58556891f7463eca3dca |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri May 6 06:23:18 2022 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 6 06:53:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c6431a4 |
7 |
|
8 |
dev-ruby/highline: update EAPI 7 -> 8, add ruby31 |
9 |
|
10 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
11 |
|
12 |
dev-ruby/highline/highline-2.0.3-r1.ebuild | 34 ++++++++++++++++++++++++++++++ |
13 |
1 file changed, 34 insertions(+) |
14 |
|
15 |
diff --git a/dev-ruby/highline/highline-2.0.3-r1.ebuild b/dev-ruby/highline/highline-2.0.3-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..7c6ab702d0ab |
18 |
--- /dev/null |
19 |
+++ b/dev-ruby/highline/highline-2.0.3-r1.ebuild |
20 |
@@ -0,0 +1,34 @@ |
21 |
+# Copyright 1999-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+USE_RUBY="ruby26 ruby27 ruby30 ruby31" |
27 |
+ |
28 |
+RUBY_FAKEGEM_EXTRADOC="Changelog.md README.md TODO" |
29 |
+ |
30 |
+RUBY_FAKEGEM_GEMSPEC="highline.gemspec" |
31 |
+ |
32 |
+inherit ruby-fakegem |
33 |
+ |
34 |
+DESCRIPTION="Highline is a high-level command-line IO library for ruby" |
35 |
+HOMEPAGE="https://github.com/JEG2/highline" |
36 |
+SRC_URI="https://github.com/JEG2/highline/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
37 |
+ |
38 |
+IUSE="" |
39 |
+LICENSE="|| ( GPL-2 Ruby )" |
40 |
+SLOT="$(ver_cut 1)" |
41 |
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" |
42 |
+ |
43 |
+all_ruby_prepare() { |
44 |
+ # fix up gemspec file not to call git |
45 |
+ sed -i -e 's/git ls-files -z/find * -print0/' highline.gemspec || die |
46 |
+ |
47 |
+ # Avoid unneeded dependencies |
48 |
+ sed -i -e '/\(bundler\|code_statistics\)/ s:^:#:' \ |
49 |
+ -e '/PackageTask/,/end/ s:^:#:' Rakefile || die |
50 |
+ sed -i -e '/simplecov/ s:^:#:' test/test_helper.rb || die |
51 |
+ |
52 |
+ # Remove almost empty doc directory to allow rdoc recipe to work |
53 |
+ rm -rf doc || die |
54 |
+} |