Gentoo Archives: gentoo-dev

From: Naohiro Aota <naota@g.o>
To: gentoo-dev@l.g.o
Cc: ruby@g.o, Naohiro Aota <naota@g.o>
Subject: [gentoo-dev] [PATCH v2 06/10] ruby-ng-gnome2.eclass: add test dependency
Date: Mon, 04 May 2020 02:26:53
Message-Id: 20200504022243.2439148-6-naota@gentoo.org
In Reply to: [gentoo-dev] [PATCH v2 01/10] ruby-ng-gnome2.eclass: drop support for 0.19.x by Naohiro Aota
1 Signed-off-by: Naohiro Aota <naota@g.o>
2 ---
3 eclass/ruby-ng-gnome2.eclass | 7 +++++--
4 1 file changed, 5 insertions(+), 2 deletions(-)
5
6 diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
7 index ac112e006205..a1a84f3045ed 100644
8 --- a/eclass/ruby-ng-gnome2.eclass
9 +++ b/eclass/ruby-ng-gnome2.eclass
10 @@ -26,10 +26,13 @@ RUBY_FAKEGEM_TASK_DOC=""
11
12 inherit ruby-fakegem
13
14 -IUSE=""
15 +IUSE="test"
16 +RESTRICT="!test? ( test )"
17
18 DEPEND="virtual/pkgconfig"
19 -ruby_add_bdepend "dev-ruby/pkg-config"
20 +ruby_add_bdepend "
21 + dev-ruby/pkg-config
22 + test? ( >=dev-ruby/test-unit-2 )"
23 RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
24 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
25 HOMEPAGE="https://ruby-gnome2.osdn.jp/"
26 --
27 2.26.2

Replies