Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/hoe/
Date: Fri, 28 Dec 2018 11:13:14
Message-Id: 1545995569.7c0a1fe6806d7f82b3b988331d08b5fe8816bafc.graaff@gentoo
1 commit: 7c0a1fe6806d7f82b3b988331d08b5fe8816bafc
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Fri Dec 28 11:11:46 2018 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Fri Dec 28 11:12:49 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c0a1fe6
7
8 dev-ruby/hoe: add 3.17.1
9
10 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 dev-ruby/hoe/Manifest | 1 +
14 dev-ruby/hoe/hoe-3.17.1.ebuild | 48 ++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 49 insertions(+)
16
17 diff --git a/dev-ruby/hoe/Manifest b/dev-ruby/hoe/Manifest
18 index bc4c1eb97bd..dc7b7d8dd49 100644
19 --- a/dev-ruby/hoe/Manifest
20 +++ b/dev-ruby/hoe/Manifest
21 @@ -1 +1,2 @@
22 DIST hoe-3.16.0.gem 188416 BLAKE2B 48383c46512a359a269ca3475ec701b1443e0ef71b31d1ca1604de391ed4df6b0ad27dd1c5f6ed04751047d211f2c6299245361cf131e2418f224324ac9934c3 SHA512 66cefb5a24906e19bbf0c82c8539d6d101b84d0dc1d3ce1910e4117357639489968271e76e86bd3c432b9ef7e3b24a78294c06210cbef280860f7dac18100606
23 +DIST hoe-3.17.1.gem 188416 BLAKE2B 0fef6dd9ae4bda93f527d7451d0d591cdc4ba1361aaec531f82e0d7ff03575845c3d5ff85189d76f9ecec17797774fd0ca82f7332a4588d086a494095af99a9d SHA512 5e4b83309ed88da098a5ae8698f9686cea1657f4554fff72446bac46bc567125232a3c5a5b941bd6d5ea18dc53f3cbf5b329f2f0623ef74e81d81586edc63ca3
24
25 diff --git a/dev-ruby/hoe/hoe-3.17.1.ebuild b/dev-ruby/hoe/hoe-3.17.1.ebuild
26 new file mode 100644
27 index 00000000000..97eae8a9094
28 --- /dev/null
29 +++ b/dev-ruby/hoe/hoe-3.17.1.ebuild
30 @@ -0,0 +1,48 @@
31 +# Copyright 1999-2018 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=5
35 +USE_RUBY="ruby23 ruby24 ruby25"
36 +
37 +RUBY_FAKEGEM_RECIPE_DOC="rdoc"
38 +
39 +RUBY_FAKEGEM_DOCDIR="doc"
40 +RUBY_FAKEGEM_EXTRADOC="History.rdoc Manifest.txt README.rdoc"
41 +
42 +RUBY_FAKEGEM_EXTRAINSTALL="template"
43 +
44 +inherit ruby-fakegem
45 +
46 +DESCRIPTION="Hoe extends rake to provide full project automation"
47 +HOMEPAGE="https://www.zenspider.com/projects/hoe.html"
48 +
49 +LICENSE="MIT"
50 +SLOT="0"
51 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
52 +IUSE="doc"
53 +
54 +ruby_add_bdepend "test? ( >=dev-ruby/minitest-5.9:5 )"
55 +
56 +ruby_add_rdepend ">=dev-ruby/rake-0.8.7 <dev-ruby/rake-13.0"
57 +
58 +all_ruby_prepare() {
59 + # Skip isolation
60 + sed -i -e '/isolate/ s:^:#:' Rakefile || die
61 +
62 + # Skip test depending on specifics of gem command name
63 + sed -i -e '/test_nosudo/,/^ end/ s:^:#:' test/test_hoe.rb || die
64 +
65 + # Gem.bin_wrapper does not work as expected on Gentoo.
66 + sed -i -e 's/#{Gem.bin_wrapper "rdoc"}/-S rdoc/' lib/hoe/rcov.rb lib/hoe/publish.rb test/test_hoe_publish.rb || die
67 +
68 + # Avoid test with random sort order
69 + sed -i -e '/test_possibly_better/askip "ordering issues"' test/test_hoe.rb || die
70 +}
71 +
72 +all_ruby_compile() {
73 + all_fakegem_compile
74 +
75 + if use doc; then
76 + rdoc --title "seattlerb's hoe-3.5.1 Documentation" -o doc --main README.txt lib History.txt Manifest.txt README.txt || die
77 + fi
78 +}