diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-07-15 21:33:02 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-07-15 21:33:19 +0200 |
commit | 3611a5f88e54519f2ae758102b39cdc5d32e7d0f (patch) | |
tree | 8f231d8dc9b11c2610b7e9a0e3a792dfebc2ab75 /dev-ruby/yard | |
parent | games-emulation/yabause: metadata: Update upstream remote-id (diff) | |
download | gentoo-3611a5f88e54519f2ae758102b39cdc5d32e7d0f.tar.gz gentoo-3611a5f88e54519f2ae758102b39cdc5d32e7d0f.tar.bz2 gentoo-3611a5f88e54519f2ae758102b39cdc5d32e7d0f.zip |
dev-ruby/yard: fix tests without redcarpet installed
Closes: https://bugs.gentoo.org/660558
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'dev-ruby/yard')
-rw-r--r-- | dev-ruby/yard/yard-0.9.11.ebuild | 5 | ||||
-rw-r--r-- | dev-ruby/yard/yard-0.9.14.ebuild | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/dev-ruby/yard/yard-0.9.11.ebuild b/dev-ruby/yard/yard-0.9.11.ebuild index b70b4dd17ad5..7b65c6ec5446 100644 --- a/dev-ruby/yard/yard-0.9.11.ebuild +++ b/dev-ruby/yard/yard-0.9.11.ebuild @@ -28,7 +28,7 @@ IUSE="" ruby_add_bdepend "doc? ( || ( dev-ruby/maruku dev-ruby/rdiscount dev-ruby/bluecloth dev-ruby/kramdown ) )" -ruby_add_bdepend "test? ( >=dev-ruby/ruby-gettext-2.3.8 dev-ruby/rack dev-ruby/redcloth )" +ruby_add_bdepend "test? ( >=dev-ruby/ruby-gettext-2.3.8 dev-ruby/rack )" all_ruby_prepare() { sed -i -e '/[Bb]undler/ s:^:#:' spec/spec_helper.rb || die @@ -37,4 +37,7 @@ all_ruby_prepare() { # true for us. This may be related to how we install in Gentoo. This # also drops a test requirement on dev-ruby/rack. rm -f spec/cli/server_spec.rb || die + + # Avoid redcarpet-specific spec that is not optional + sed -i -e '/autolinks URLs/askip "make redcarpet optional"' spec/templates/helpers/html_helper_spec.rb || die } diff --git a/dev-ruby/yard/yard-0.9.14.ebuild b/dev-ruby/yard/yard-0.9.14.ebuild index 878b62659879..4270103786c4 100644 --- a/dev-ruby/yard/yard-0.9.14.ebuild +++ b/dev-ruby/yard/yard-0.9.14.ebuild @@ -28,7 +28,7 @@ IUSE="" ruby_add_bdepend "doc? ( || ( dev-ruby/maruku dev-ruby/rdiscount dev-ruby/bluecloth dev-ruby/kramdown ) )" -ruby_add_bdepend "test? ( >=dev-ruby/ruby-gettext-2.3.8 dev-ruby/rack dev-ruby/redcloth )" +ruby_add_bdepend "test? ( >=dev-ruby/ruby-gettext-2.3.8 dev-ruby/rack )" all_ruby_prepare() { sed -i -e '/[Bb]undler/ s:^:#:' spec/spec_helper.rb || die @@ -40,4 +40,7 @@ all_ruby_prepare() { # Avoid specs that only work with bundler sed -i -e '/#initialize/,/^ end/ s:^:#:' spec/cli/yri_spec.rb || die + + # Avoid redcarpet-specific spec that is not optional + sed -i -e '/autolinks URLs/askip "make redcarpet optional"' spec/templates/helpers/html_helper_spec.rb || die } |