summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorNaohiro Aota <naota@gentoo.org>2020-02-06 20:58:26 +0900
committerNaohiro Aota <naota@gentoo.org>2020-07-30 16:21:27 +0900
commit272344cb4a5ca7977a888a2690bdc3746960032b (patch)
treec8f178cc0e9d5b08bc5a8a7b0339b1b080aa5c31 /eclass
parentruby-ng-gnome2.eclass: fold common all_ruby_prepare (diff)
downloadgentoo-272344cb4a5ca7977a888a2690bdc3746960032b.tar.gz
gentoo-272344cb4a5ca7977a888a2690bdc3746960032b.tar.bz2
gentoo-272344cb4a5ca7977a888a2690bdc3746960032b.zip
ruby-ng-gnome2.eclass: add support for 3.4.x
Update SRC_URI since the primary release site is moved to github. Signed-off-by: Naohiro Aota <naota@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r--eclass/ruby-ng-gnome2.eclass12
1 files changed, 9 insertions, 3 deletions
diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
index 3b4092c86091..5b4d9c9d1d94 100644
--- a/eclass/ruby-ng-gnome2.eclass
+++ b/eclass/ruby-ng-gnome2.eclass
@@ -13,8 +13,8 @@
# ruby-gnome2 since they share a very common installation procedure.
case "${EAPI:-0}" in
- 6|7)
- ;;
+ 6) inherit eapi7-ver ;;
+ 7) ;;
*)
die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
;;
@@ -43,11 +43,17 @@ DEPEND="virtual/pkgconfig"
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/"
LICENSE="LGPL-2.1+"
SLOT="0"
+if ver_test -ge "3.4.0"; then
+ SRC_URI="https://github.com/ruby-gnome/ruby-gnome/archive/${PV}.tar.gz -> ruby-gnome2-${PV}.tar.gz"
+ RUBY_S=ruby-gnome-${PV}/${RUBY_FAKEGEM_NAME}
+else
+ SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
+ RUBY_S=ruby-gnome2-all-${PV}/${RUBY_FAKEGEM_NAME}
+fi
ruby-ng-gnome2_all_ruby_prepare() {
# Avoid compilation of dependencies during test.