dev-ruby/rexical: fix tests
authorHans de Graaff <graaff@gentoo.org>
Sun, 27 Oct 2019 09:43:02 +0000 (10:43 +0100)
committerHans de Graaff <graaff@gentoo.org>
Sun, 27 Oct 2019 09:43:23 +0000 (10:43 +0100)
Avoid a dependency on unpackaged rubocop.

Fixes: https://bugs.gentoo.org/697642
Package-Manager: Portage-2.3.76, Repoman-2.3.16
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
dev-ruby/rexical/rexical-1.0.7.ebuild

index 3b435e81161c3e3c6fe4d650f703c21ebd2ca38a..c05c5bf02ccaa4ed33d4a07a788cdfbe37abfa74 100644 (file)
@@ -27,6 +27,11 @@ ruby_add_bdepend "
                dev-ruby/minitest
        )"
 
+all_ruby_prepare() {
+       # Avoid dependency on unpackaged rubocop
+       sed -i -e '/test_rubocop_security/askip "not packaged"' test/test_generator.rb || die
+}
+
 all_ruby_install() {
        all_fakegem_install