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 2/9] ruby-ng-gnome2.eclass: drop support for <EAPI=4
Date: Sat, 15 Feb 2020 12:19:14
Message-Id: 20200215121833.3631177-2-naota@gentoo.org
In Reply to: [gentoo-dev] [PATCH 1/9] 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 | 13 +++----------
4 1 file changed, 3 insertions(+), 10 deletions(-)
5
6 diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass
7 index 4e3c30017e9b..8c8e0c8c0a50 100644
8 --- a/eclass/ruby-ng-gnome2.eclass
9 +++ b/eclass/ruby-ng-gnome2.eclass
10 @@ -6,14 +6,14 @@
11 # Ruby herd <ruby@g.o>
12 # @AUTHOR:
13 # Author: Hans de Graaff <graaff@g.o>
14 -# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6
15 +# @SUPPORTED_EAPIS: 4 5 6
16 # @BLURB: An eclass to simplify handling of various ruby-gnome2 parts.
17 # @DESCRIPTION:
18 # This eclass simplifies installation of the various pieces of
19 # ruby-gnome2 since they share a very common installation procedure.
20
21 case "${EAPI:-0}" in
22 - 0|1|2|3|4|5|6)
23 + 4|5|6)
24 ;;
25 *)
26 die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}"
27 @@ -28,18 +28,11 @@ inherit ruby-fakegem multilib versionator
28
29 IUSE=""
30
31 -# Define EPREFIX if needed
32 -has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
33 -
34 subbinding=${PN#ruby-}
35 subbinding=${subbinding/-/_}
36 DEPEND="virtual/pkgconfig"
37 ruby_add_bdepend "dev-ruby/pkg-config"
38 -if has "${EAPI:-0}" 0 1 2 3 ; then
39 - S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding}
40 -else
41 - RUBY_S=ruby-gnome2-all-${PV}/${subbinding}
42 -fi
43 +RUBY_S=ruby-gnome2-all-${PV}/${subbinding}
44 SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
45 HOMEPAGE="https://ruby-gnome2.osdn.jp/"
46 LICENSE="Ruby"
47 --
48 2.25.0

Replies