/[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.1 Revision 1.3
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.1 2010/01/13 18:33:32 graaff Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/ruby-ng-gnome2.eclass,v 1.3 2010/08/22 07:28:24 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
32 33
33# @FUNCTION: each_ruby_compile 34# @FUNCTION: each_ruby_compile
34# @DESCRIPTION: 35# @DESCRIPTION:
35# Compile the C bindings in the subbinding for each specific ruby target. 36# Compile the C bindings in the subbinding for each specific ruby target.
36each_ruby_compile() { 37each_ruby_compile() {
38 # We have injected --no-undefined in Ruby as a safety precaution
39 # against broken ebuilds, but the Ruby-Gnome bindings
40 # unfortunately rely on the lazy load of other extensions; see bug
41 # #320545.
42 find . -name Makefile -print0 | xargs -0 \
43 sed -i -e 's:-Wl,--no-undefined ::' || die "--no-undefined removal failed"
44
37 emake || die "emake failed" 45 emake || die "emake failed"
38} 46}
39 47
40# @FUNCTION: each_ruby_install 48# @FUNCTION: each_ruby_install
41# @DESCRIPTION: 49# @DESCRIPTION:
53all_ruby_install() { 61all_ruby_install() {
54 for doc in ../AUTHORS ../NEWS ChangeLog README; do 62 for doc in ../AUTHORS ../NEWS ChangeLog README; do
55 [ -s "$doc" ] && dodoc $doc 63 [ -s "$doc" ] && dodoc $doc
56 done 64 done
57 if [[ -d sample ]]; then 65 if [[ -d sample ]]; then
58 dodir /usr/share/doc/${PF} 66 insinto /usr/share/doc/${PF}
59 cp -a sample "${D}"/usr/share/doc/${PF} || die "cp failed" 67 doins -r sample || die "sample install failed"
60 fi 68 fi
61} 69}

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

  ViewVC Help
Powered by ViewVC 1.1.20