/[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.7 Revision 1.10
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2011 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.7 2011/05/29 13:47:14 naota Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng-gnome2.eclass,v 1.10 2011/09/18 03:45:21 naota 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# @AUTHOR:
9# Author: Hans de Graaff <graaff@gentoo.org> 9# Author: Hans de Graaff <graaff@gentoo.org>
10#
11# @BLURB: An eclass to simplify handling of various ruby-gnome2 parts. 10# @BLURB: An eclass to simplify handling of various ruby-gnome2 parts.
12# @DESCRIPTION: 11# @DESCRIPTION:
13# This eclass simplifies installation of the various pieces of 12# This eclass simplifies installation of the various pieces of
14# ruby-gnome2 since they share a very common installation procedure. 13# ruby-gnome2 since they share a very common installation procedure.
15 14
15RUBY_FAKEGEM_NAME="${PN#ruby-}"
16RUBY_FAKEGEM_TASK_TEST=""
17
16inherit ruby-ng multilib versionator 18inherit ruby-fakegem multilib versionator
17 19
18IUSE="" 20IUSE=""
19 21
20# Define EPREFIX if needed 22# Define EPREFIX if needed
21has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= 23has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
29S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding} 31S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding}
30SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" 32SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
31HOMEPAGE="http://ruby-gnome2.sourceforge.jp/" 33HOMEPAGE="http://ruby-gnome2.sourceforge.jp/"
32LICENSE="Ruby" 34LICENSE="Ruby"
33SLOT="0" 35SLOT="0"
36
37DEPEND="dev-util/pkgconfig"
38ruby_add_bdepend "dev-ruby/pkg-config
39 dev-ruby/rubygems"
34 40
35# @FUNCTION: each_ruby_configure 41# @FUNCTION: each_ruby_configure
36# @DESCRIPTION: 42# @DESCRIPTION:
37# Run the configure script in the subbinding for each specific ruby target. 43# Run the configure script in the subbinding for each specific ruby target.
38each_ruby_configure() { 44each_ruby_configure() {
62 # Create the directories, or the package will create them as files. 68 # Create the directories, or the package will create them as files.
63 local archdir=$(ruby_rbconfig_value "sitearchdir") 69 local archdir=$(ruby_rbconfig_value "sitearchdir")
64 dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig 70 dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig
65 71
66 emake DESTDIR="${D}" install || die "make install failed" 72 emake DESTDIR="${D}" install || die "make install failed"
73
74 each_fakegem_install
67} 75}
68 76
69# @FUNCTION: all_ruby_install 77# @FUNCTION: all_ruby_install
70# @DESCRIPTION: 78# @DESCRIPTION:
71# Install the files common to all ruby targets. 79# Install the files common to all ruby targets.
75 done 83 done
76 if [[ -d sample ]]; then 84 if [[ -d sample ]]; then
77 insinto /usr/share/doc/${PF} 85 insinto /usr/share/doc/${PF}
78 doins -r sample || die "sample install failed" 86 doins -r sample || die "sample install failed"
79 fi 87 fi
88
89 all_fakegem_install
80} 90}

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20