Gentoo Archives: gentoo-commits

From: Naohiro Aota <naota@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Thu, 30 Jul 2020 07:21:49
Message-Id: 1596093687.272344cb4a5ca7977a888a2690bdc3746960032b.naota@gentoo
1 commit: 272344cb4a5ca7977a888a2690bdc3746960032b
2 Author: Naohiro Aota <naota <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 6 11:58:26 2020 +0000
4 Commit: Naohiro Aota <naota <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 30 07:21:27 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=272344cb
7
8 ruby-ng-gnome2.eclass: add support for 3.4.x
9
10 Update SRC_URI since the primary release site is moved to github.
11
12 Signed-off-by: Naohiro Aota <naota <AT> gentoo.org>
13
14 eclass/ruby-ng-gnome2.eclass | 12 +++++++++---
15 1 file changed, 9 insertions(+), 3 deletions(-)
16
17 diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
18 index 3b4092c8609..5b4d9c9d1d9 100644
19 --- a/eclass/ruby-ng-gnome2.eclass
20 +++ b/eclass/ruby-ng-gnome2.eclass
21 @@ -13,8 +13,8 @@
22 # ruby-gnome2 since they share a very common installation procedure.
23
24 case "${EAPI:-0}" in
25 - 6|7)
26 - ;;
27 + 6) inherit eapi7-ver ;;
28 + 7) ;;
29 *)
30 die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
31 ;;
32 @@ -43,11 +43,17 @@ DEPEND="virtual/pkgconfig"
33 ruby_add_bdepend "
34 dev-ruby/pkg-config
35 test? ( >=dev-ruby/test-unit-2 )"
36 -RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
37 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
38 HOMEPAGE="https://ruby-gnome2.osdn.jp/"
39 LICENSE="LGPL-2.1+"
40 SLOT="0"
41 +if ver_test -ge "3.4.0"; then
42 + SRC_URI="https://github.com/ruby-gnome/ruby-gnome/archive/${PV}.tar.gz -> ruby-gnome2-${PV}.tar.gz"
43 + RUBY_S=ruby-gnome-${PV}/${RUBY_FAKEGEM_NAME}
44 +else
45 + SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
46 + RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
47 +fi
48
49 ruby-ng-gnome2_all_ruby_prepare() {
50 # Avoid compilation of dependencies during test.