diff options
author | Naohiro Aota <naota@gentoo.org> | 2011-05-29 13:47:14 +0000 |
---|---|---|
committer | Naohiro Aota <naota@gentoo.org> | 2011-05-29 13:47:14 +0000 |
commit | ec92fda64b28e6671bd02d22b04ce95ae7771075 (patch) | |
tree | b0220285c4548734005fd2a6c61a834c4844f717 /eclass | |
parent | Ensure LDFLAGS usage (diff) | |
download | gentoo-2-ec92fda64b28e6671bd02d22b04ce95ae7771075.tar.gz gentoo-2-ec92fda64b28e6671bd02d22b04ce95ae7771075.tar.bz2 gentoo-2-ec92fda64b28e6671bd02d22b04ce95ae7771075.zip |
Support >=ruby-gnome2-0.90 file structure. Based on a code from Shunsuke Shimizu.
Diffstat (limited to 'eclass')
-rw-r--r-- | eclass/ruby-ng-gnome2.eclass | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass index 1d9b69c09ccf..7813c41ef297 100644 --- a/eclass/ruby-ng-gnome2.eclass +++ b/eclass/ruby-ng-gnome2.eclass @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng-gnome2.eclass,v 1.6 2011/05/29 13:43:16 naota Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng-gnome2.eclass,v 1.7 2011/05/29 13:47:14 naota Exp $ # # @ECLASS: ruby-ng-gnome2.eclass # @MAINTAINER: @@ -13,14 +13,19 @@ # This eclass simplifies installation of the various pieces of # ruby-gnome2 since they share a very common installation procedure. -inherit ruby-ng multilib +inherit ruby-ng multilib versionator IUSE="" # Define EPREFIX if needed has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= -subbinding=${PN#ruby-} ; subbinding=${subbinding%2} +subbinding=${PN#ruby-} +if [ $(get_version_component_range "1-2") == "0.19" ]; then + subbinding=${subbinding/%2} +else + subbinding=${subbinding/-/_} +fi S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding} SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" HOMEPAGE="http://ruby-gnome2.sourceforge.jp/" |