/[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.6 Revision 1.15
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2012 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.6 2011/05/29 13:43:16 naota Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng-gnome2.eclass,v 1.15 2012/05/02 18:31:45 jdhore 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
16inherit ruby-ng multilib 15RUBY_FAKEGEM_NAME="${RUBY_FAKEGEM_NAME:-${PN#ruby-}}"
16RUBY_FAKEGEM_TASK_TEST=""
17RUBY_FAKEGEM_TASK_DOC=""
18
19inherit ruby-fakegem multilib versionator
17 20
18IUSE="" 21IUSE=""
19 22
20# Define EPREFIX if needed 23# Define EPREFIX if needed
21has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX= 24has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
22 25
23subbinding=${PN#ruby-} ; subbinding=${subbinding%2} 26subbinding=${PN#ruby-}
27if [ $(get_version_component_range "1-2") == "0.19" ]; then
28 subbinding=${subbinding/%2}
29else
30 subbinding=${subbinding/-/_}
31 DEPEND="virtual/pkgconfig"
32 ruby_add_bdepend "dev-ruby/pkg-config"
33fi
24S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding} 34S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding}
25SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" 35SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
26HOMEPAGE="http://ruby-gnome2.sourceforge.jp/" 36HOMEPAGE="http://ruby-gnome2.sourceforge.jp/"
27LICENSE="Ruby" 37LICENSE="Ruby"
28SLOT="0" 38SLOT="0"
57 # Create the directories, or the package will create them as files. 67 # Create the directories, or the package will create them as files.
58 local archdir=$(ruby_rbconfig_value "sitearchdir") 68 local archdir=$(ruby_rbconfig_value "sitearchdir")
59 dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig 69 dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig
60 70
61 emake DESTDIR="${D}" install || die "make install failed" 71 emake DESTDIR="${D}" install || die "make install failed"
72
73 each_fakegem_install
62} 74}
63 75
64# @FUNCTION: all_ruby_install 76# @FUNCTION: all_ruby_install
65# @DESCRIPTION: 77# @DESCRIPTION:
66# Install the files common to all ruby targets. 78# Install the files common to all ruby targets.
70 done 82 done
71 if [[ -d sample ]]; then 83 if [[ -d sample ]]; then
72 insinto /usr/share/doc/${PF} 84 insinto /usr/share/doc/${PF}
73 doins -r sample || die "sample install failed" 85 doins -r sample || die "sample install failed"
74 fi 86 fi
87
88 all_fakegem_install
75} 89}

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20