commit:     64758ae5fbe4825442c9da818eb8c7410e1cb2d4
Author:     Naohiro Aota <naota <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 15 04:31:27 2020 +0000
Commit:     Naohiro Aota <naota <AT> gentoo <DOT> org>
CommitDate: Thu Jul 30 07:21:26 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64758ae5

ruby-ng-gnome2.eclass: add test dependency

Signed-off-by: Naohiro Aota <naota <AT> gentoo.org>

 eclass/ruby-ng-gnome2.eclass | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 7391ef14069..df14f40d83a 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -26,10 +26,13 @@ RUBY_FAKEGEM_TASK_DOC=""
 
 inherit ruby-fakegem
 
-IUSE=""
+IUSE="test"
+RESTRICT+=" !test? ( test )"
 
 DEPEND="virtual/pkgconfig"
-ruby_add_bdepend "dev-ruby/pkg-config"
+ruby_add_bdepend "
+       dev-ruby/pkg-config
+       test? ( >=dev-ruby/test-unit-2 )"
 RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
 HOMEPAGE="https://ruby-gnome2.osdn.jp/";

Reply via email to