/[gentoo-x86]/eclass/ruby-ng-gnome2.eclass
Gentoo

Diff of /eclass/ruby-ng-gnome2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.2 Revision 1.5
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng-gnome2.eclass,v 1.2 2010/05/21 16:54:25 flameeyes Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng-gnome2.eclass,v 1.5 2010/12/15 12:38:47 graaff Exp $
4# 4#
5# @ECLASS: ruby-ng-gnome2.eclass 5# @ECLASS: ruby-ng-gnome2.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Ruby herd <ruby@gentoo.org> 7# Ruby herd <ruby@gentoo.org>
8# 8#
9# Author: Hans de Graaff <graaff@gentoo.org> 9# Author: Hans de Graaff <graaff@gentoo.org>
10# 10#
11# @BLURB: 11# @BLURB: An eclass to simplify handling of various ruby-gnome2 parts.
12# @DESCRIPTION:
12# This eclass simplifies installation of the various pieces of 13# This eclass simplifies installation of the various pieces of
13# ruby-gnome2 since they share a very common installation procedure. 14# ruby-gnome2 since they share a very common installation procedure.
14 15
15inherit ruby-ng multilib 16inherit ruby-ng multilib
16 17
17IUSE="" 18IUSE=""
19
20# Define EPREFIX if needed
21has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
18 22
19subbinding=${PN#ruby-} ; subbinding=${subbinding%2} 23subbinding=${PN#ruby-} ; subbinding=${subbinding%2}
20S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding} 24S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding}
21SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" 25SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
22HOMEPAGE="http://ruby-gnome2.sourceforge.jp/" 26HOMEPAGE="http://ruby-gnome2.sourceforge.jp/"
47# @FUNCTION: each_ruby_install 51# @FUNCTION: each_ruby_install
48# @DESCRIPTION: 52# @DESCRIPTION:
49# Install the files in the subbinding for each specific ruby target. 53# Install the files in the subbinding for each specific ruby target.
50each_ruby_install() { 54each_ruby_install() {
51 # Create the directories, or the package will create them as files. 55 # Create the directories, or the package will create them as files.
52 dodir $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitearchdir"]') /usr/$(get_libdir)/pkgconfig 56 local archdir=$(ruby_rbconfig_value "sitearchdir")
57 dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig
53 58
54 emake DESTDIR="${D}" install || die "make install failed" 59 emake DESTDIR="${D}" install || die "make install failed"
55} 60}
56 61
57# @FUNCTION: all_ruby_install 62# @FUNCTION: all_ruby_install

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20