diff options
author | Hans de Graaff <graaff@gentoo.org> | 2010-12-15 12:36:46 +0000 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2010-12-15 12:36:46 +0000 |
commit | ea45c13c791df303988e78c8fd62f5f0d4dc0aaf (patch) | |
tree | 41a06da4eb69580ec9eefd8f183890b4129bff7c /eclass/ruby-ng-gnome2.eclass | |
parent | x86 stable wrt bug #348255 (diff) | |
download | gentoo-2-ea45c13c791df303988e78c8fd62f5f0d4dc0aaf.tar.gz gentoo-2-ea45c13c791df303988e78c8fd62f5f0d4dc0aaf.tar.bz2 gentoo-2-ea45c13c791df303988e78c8fd62f5f0d4dc0aaf.zip |
Make ruby-ng-gnome.eclass prefix-aware.
Diffstat (limited to 'eclass/ruby-ng-gnome2.eclass')
-rw-r--r-- | eclass/ruby-ng-gnome2.eclass | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/eclass/ruby-ng-gnome2.eclass b/eclass/ruby-ng-gnome2.eclass index ec3e618a0e46..eaf67aab748f 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.3 2010/08/22 07:28:24 graaff Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng-gnome2.eclass,v 1.4 2010/12/15 12:36:46 graaff Exp $ # # @ECLASS: ruby-ng-gnome2.eclass # @MAINTAINER: @@ -17,6 +17,9 @@ inherit ruby-ng multilib IUSE="" +# Define EPREFIX if needed +has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= + subbinding=${PN#ruby-} ; subbinding=${subbinding%2} S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding} SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" @@ -50,7 +53,8 @@ each_ruby_compile() { # Install the files in the subbinding for each specific ruby target. each_ruby_install() { # Create the directories, or the package will create them as files. - dodir $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitearchdir"]') /usr/$(get_libdir)/pkgconfig + local archdir=ruby_rbconfig_value "sitearchdir" + dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig emake DESTDIR="${D}" install || die "make install failed" } |