diff options
author | Naohiro Aota <naota@gentoo.org> | 2020-02-15 13:05:56 +0900 |
---|---|---|
committer | Naohiro Aota <naota@gentoo.org> | 2020-07-30 16:21:25 +0900 |
commit | 7b7312922b2039d5cc55fc40f7711ac9e192ac8b (patch) | |
tree | d6cee853768f13879b96ec6cf1183a04eb4a74e9 /eclass | |
parent | ruby-ng-gnome2.eclass: drop support for 0.19.x (diff) | |
download | gentoo-7b7312922b2039d5cc55fc40f7711ac9e192ac8b.tar.gz gentoo-7b7312922b2039d5cc55fc40f7711ac9e192ac8b.tar.bz2 gentoo-7b7312922b2039d5cc55fc40f7711ac9e192ac8b.zip |
ruby-ng-gnome2.eclass: drop support for <EAPI=6
All users of ruby-ng-gnome2 in the official tree are on EAPI=6, so we
can drop old EAPI support to reduce "if" branches and make the feature
updates simple.
Signed-off-by: Naohiro Aota <naota@gentoo.org>
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ruby-ng-gnome2.eclass | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass index a6e6fb089c8c..67a5d58fba58 100644 --- a/eclass/ruby-ng-gnome2.eclass +++ b/eclass/ruby-ng-gnome2.eclass @@ -6,14 +6,14 @@ # Ruby herd <ruby@gentoo.org> # @AUTHOR: # Author: Hans de Graaff <graaff@gentoo.org> -# @SUPPORTED_EAPIS: 0 1 2 3 4 5 6 +# @SUPPORTED_EAPIS: 6 7 # @BLURB: An eclass to simplify handling of various ruby-gnome2 parts. # @DESCRIPTION: # This eclass simplifies installation of the various pieces of # ruby-gnome2 since they share a very common installation procedure. case "${EAPI:-0}" in - 0|1|2|3|4|5|6) + 6|7) ;; *) die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" @@ -24,22 +24,15 @@ RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN#ruby-}}" RUBY_FAKEGEM_TASK_TEST="" RUBY_FAKEGEM_TASK_DOC="" -inherit ruby-fakegem multilib +inherit ruby-fakegem IUSE="" -# Define EPREFIX if needed -has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= - subbinding=${PN#ruby-} subbinding=${subbinding/-/_} DEPEND="virtual/pkgconfig" ruby_add_bdepend "dev-ruby/pkg-config" -if has "${EAPI:-0}" 0 1 2 3 ; then - S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding} -else - RUBY_S=ruby-gnome2-all-${PV}/${subbinding} -fi +RUBY_S=ruby-gnome2-all-${PV}/${subbinding} SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" HOMEPAGE="https://ruby-gnome2.osdn.jp/" LICENSE="Ruby" |