/[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.3 Revision 1.8
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.3 2010/08/22 07:28:24 graaff Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng-gnome2.eclass,v 1.8 2011/08/22 04:46:32 vapier 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 15inherit ruby-ng multilib versionator
17 16
18IUSE="" 17IUSE=""
19 18
20subbinding=${PN#ruby-} ; subbinding=${subbinding%2} 19# Define EPREFIX if needed
20has "${EAPI:-0}" 0 1 2 && ! use prefix && EPREFIX=
21
22subbinding=${PN#ruby-}
23if [ $(get_version_component_range "1-2") == "0.19" ]; then
24 subbinding=${subbinding/%2}
25else
26 subbinding=${subbinding/-/_}
27fi
21S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding} 28S=${WORKDIR}/ruby-gnome2-all-${PV}/${subbinding}
22SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz" 29SRC_URI="mirror://sourceforge/ruby-gnome2/ruby-gnome2-all-${PV}.tar.gz"
23HOMEPAGE="http://ruby-gnome2.sourceforge.jp/" 30HOMEPAGE="http://ruby-gnome2.sourceforge.jp/"
24LICENSE="Ruby" 31LICENSE="Ruby"
25SLOT="0" 32SLOT="0"
38 # We have injected --no-undefined in Ruby as a safety precaution 45 # We have injected --no-undefined in Ruby as a safety precaution
39 # against broken ebuilds, but the Ruby-Gnome bindings 46 # against broken ebuilds, but the Ruby-Gnome bindings
40 # unfortunately rely on the lazy load of other extensions; see bug 47 # unfortunately rely on the lazy load of other extensions; see bug
41 # #320545. 48 # #320545.
42 find . -name Makefile -print0 | xargs -0 \ 49 find . -name Makefile -print0 | xargs -0 \
43 sed -i -e 's:-Wl,--no-undefined ::' || die "--no-undefined removal failed" 50 sed -i -e 's:-Wl,--no-undefined ::' \
51 -e "s/^ldflags = /ldflags = $\(LDFLAGS\) /" \
52 || die "--no-undefined removal failed"
44 53
45 emake || die "emake failed" 54 emake || die "emake failed"
46} 55}
47 56
48# @FUNCTION: each_ruby_install 57# @FUNCTION: each_ruby_install
49# @DESCRIPTION: 58# @DESCRIPTION:
50# Install the files in the subbinding for each specific ruby target. 59# Install the files in the subbinding for each specific ruby target.
51each_ruby_install() { 60each_ruby_install() {
52 # Create the directories, or the package will create them as files. 61 # Create the directories, or the package will create them as files.
53 dodir $(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitearchdir"]') /usr/$(get_libdir)/pkgconfig 62 local archdir=$(ruby_rbconfig_value "sitearchdir")
63 dodir ${archdir#${EPREFIX}} /usr/$(get_libdir)/pkgconfig
54 64
55 emake DESTDIR="${D}" install || die "make install failed" 65 emake DESTDIR="${D}" install || die "make install failed"
56} 66}
57 67
58# @FUNCTION: all_ruby_install 68# @FUNCTION: all_ruby_install

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.8

  ViewVC Help
Powered by ViewVC 1.1.20