1 |
Signed-off-by: David Seifert <soap@g.o> |
2 |
--- |
3 |
eclass/ruby-ng-gnome2.eclass | 18 ++++++++++-------- |
4 |
1 file changed, 10 insertions(+), 8 deletions(-) |
5 |
|
6 |
diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass |
7 |
index 487e3268e36..4c48e94df70 100644 |
8 |
--- a/eclass/ruby-ng-gnome2.eclass |
9 |
+++ b/eclass/ruby-ng-gnome2.eclass |
10 |
@@ -6,21 +6,21 @@ |
11 |
# Ruby herd <ruby@g.o> |
12 |
# @AUTHOR: |
13 |
# Author: Hans de Graaff <graaff@g.o> |
14 |
-# @SUPPORTED_EAPIS: 6 7 |
15 |
+# @SUPPORTED_EAPIS: 7 |
16 |
# @PROVIDES: ruby-ng |
17 |
# @BLURB: An eclass to simplify handling of various ruby-gnome2 parts. |
18 |
# @DESCRIPTION: |
19 |
# This eclass simplifies installation of the various pieces of |
20 |
# ruby-gnome2 since they share a very common installation procedure. |
21 |
|
22 |
-case "${EAPI:-0}" in |
23 |
- 6) inherit eapi7-ver ;; |
24 |
- 7) ;; |
25 |
- *) |
26 |
- die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" |
27 |
- ;; |
28 |
+case ${EAPI} in |
29 |
+ 7) ;; |
30 |
+ *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; |
31 |
esac |
32 |
|
33 |
+if [[ ! ${_RUBY_NG_GNOME2_ECLASS} ]]; then |
34 |
+_RUBY_NG_GNOME2_ECLASS=1 |
35 |
+ |
36 |
RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN#ruby-}}" |
37 |
RUBY_FAKEGEM_TASK_TEST="" |
38 |
RUBY_FAKEGEM_TASK_DOC="" |
39 |
@@ -40,7 +40,7 @@ fi |
40 |
IUSE="test" |
41 |
RESTRICT+=" !test? ( test )" |
42 |
|
43 |
-DEPEND="virtual/pkgconfig" |
44 |
+BDEPEND="virtual/pkgconfig" |
45 |
ruby_add_bdepend " |
46 |
dev-ruby/pkg-config |
47 |
test? ( >=dev-ruby/test-unit-2 )" |
48 |
@@ -157,3 +157,5 @@ each_ruby_test() { |
49 |
${RUBY} test/run-test.rb || die |
50 |
fi |
51 |
} |
52 |
+ |
53 |
+fi |
54 |
-- |
55 |
2.39.0 |