dev-ruby/hoe: add 4.0.4

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2023-07-18 06:46:41 +02:00
parent 37cd6a9b1f
commit 7cd6f1346d
2 changed files with 54 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST hoe-3.26.0.gem 194560 BLAKE2B a47ebe54374c04e739112c99c3eaa968c6048df639e5ee8a4cad60659a50a4a4ea85e9a11a77ad824ae511d28634241255ec323938a4b9da6a8dd38aec022ac5 SHA512 0b069b0b2b181b81770568186f9d81b0f8fe48644a4b29bb2dd8084dc60886c7a06fa0e7be81854b5b653afc38c908622f08066656d9b625ab595615ef2918c3
DIST hoe-4.0.4.gem 190976 BLAKE2B 82e017351700a376f7e497a2e65b5e3e8331f25d5b083934f710272184016264e9b21ae4e2d25154affe901d6f426108ad29cb281cd68b30eba0910323a22544 SHA512 a7f03c171f77127d442070947193536421395a609536c45efb639c75f24605dfccb9bcf8ec6ec202956f888a3110cffa99c56bb924f7e1b982864d38673b6a4c
+53
View File
@@ -0,0 +1,53 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby30 ruby31 ruby32"
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="History.rdoc Manifest.txt README.rdoc"
RUBY_FAKEGEM_EXTRAINSTALL="template"
inherit ruby-fakegem
DESCRIPTION="Hoe extends rake to provide full project automation"
HOMEPAGE="https://www.zenspider.com/projects/hoe.html"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
IUSE="doc"
ruby_add_bdepend "test? ( >=dev-ruby/minitest-5.9:5 )"
ruby_add_rdepend ">=dev-ruby/rake-0.8.7 <dev-ruby/rake-15.0"
all_ruby_prepare() {
# Skip isolation
sed -i -e '/isolate/ s:^:#:' Rakefile || die
# Skip test depending on specifics of gem command name
sed -i -e '/test_nosudo/,/^ end/ s:^:#:' test/test_hoe.rb || die
# Avoid test with random sort order
sed -i -e '/test_possibly_better/askip "ordering issues"' test/test_hoe.rb || die
# Avoid test that depends on specifics of merged packages
sed -i -e '/test_make_rdoc_cmd/askip "dependent on merged packages"' test/test_hoe_publish.rb || die
}
all_ruby_compile() {
all_fakegem_compile
if use doc; then
rdoc --title "seattlerb's hoe-${PV} Documentation" -o doc --main README.rdoc \
lib History.rdoc Manifest.txt README.doc || die
rm -f doc/js/*.gz || die
fi
}
each_ruby_test() {
export -n A
each_fakegem_test
}